Package com.morpheusdata.core.util
Class ProgressInputStream
java.lang.Object
java.io.InputStream
com.morpheusdata.core.util.ProgressInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Constructor Summary
ConstructorDescriptionProgressInputStream
(InputStream sourceStream, Long totalCount, Integer totalFiles, Integer currentFile) ProgressInputStream
(InputStream sourceStream, Long totalCount, Integer totalFiles, Integer currentFile, String updateStr) -
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
ProgressInputStream
public ProgressInputStream(InputStream sourceStream, Long totalCount, Integer totalFiles, Integer currentFile) -
ProgressInputStream
public ProgressInputStream(InputStream sourceStream, Long totalCount, Integer totalFiles, Integer currentFile, String updateStr)
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-
updateProgress
public void updateProgress()
-