Package de.mediathekview.mlib.tool
Class ProgressMonitorInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
de.mediathekview.mlib.tool.ProgressMonitorInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
User: Christian F. Date: 15.06.16 Time: 14:03
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in -
Constructor Summary
ConstructorsConstructorDescriptionProgressMonitorInputStream(InputStream in, long maxSize, InputStreamProgressMonitor mon) Creates aFilterInputStreamby assigning the argumentinto the fieldthis.inso as to remember it for later use. -
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
-
ProgressMonitorInputStream
public ProgressMonitorInputStream(InputStream in, long maxSize, InputStreamProgressMonitor mon) throws IOException Creates aFilterInputStreamby assigning the argumentinto the fieldthis.inso as to remember it for later use.- Parameters:
in- the underlying input stream, ornullif this instance is to be created without an underlying stream.maxSize- The maximum stream sizemon- The progress monitor which should be used- Throws:
IOException- Will be thrown if the max size isn't greater then one
-
-
Method Details
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-