Class ProgressBarWrappedInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
me.tongfei.progressbar.wrapped.ProgressBarWrappedInputStream
- All Implemented Interfaces:
Closeable, AutoCloseable
Any input stream whose progress is tracked by a progress bar.
- Since:
- 0.7.0
-
Field Summary
FieldsFields inherited from class FilterInputStream
in -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class FilterInputStream
available, markSupportedMethods inherited from class InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Field Details
-
pb
-
mark
private long mark
-
-
Constructor Details
-
ProgressBarWrappedInputStream
-
-
Method Details
-
getProgressBar
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classFilterInputStream- Throws:
IOException
-
mark
public void mark(int readLimit) - Overrides:
markin classFilterInputStream
-
reset
- Overrides:
resetin classFilterInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classFilterInputStream- Throws:
IOException
-