Class ProgressInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
io.goobi.viewer.model.files.external.ProgressInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in
-
Constructor Summary
ConstructorDescriptionProgressInputStream
(InputStream in, long streamLength, Optional<Consumer<Progress>> callback) -
Method Summary
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, reset, skip
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
ProgressInputStream
public ProgressInputStream(InputStream in, long streamLength, Optional<Consumer<Progress>> callback)
-
-
Method Details
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classFilterInputStream
- Throws:
IOException
-
getMonitor
-