Package com.atlassian.jira.task
Class ProgressMonitoringFileInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
com.atlassian.jira.task.ProgressMonitoringFileInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
A FileInputStream that can log progress when the inputstream is being read. The passed in task progress sink should
have been provided with the overall file size to be read already to provide meaningful updates since the underlying
inputstream implementation may not return the overall size of the data to be read reliably.
- Since:
- v4.4
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in -
Constructor Summary
ConstructorsConstructorDescriptionProgressMonitoringFileInputStream(InputStream in, TaskProgressSink taskProgressSink, String subTask, String message) -
Method Summary
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, reset, skipMethods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
ProgressMonitoringFileInputStream
public ProgressMonitoringFileInputStream(InputStream in, TaskProgressSink taskProgressSink, String subTask, String message)
-
-
Method Details
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-