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
public class ProgressMonitorInputStream extends FilterInputStream
User: Christian F. Date: 15.06.16 Time: 14:03
-
-
Field Summary
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description ProgressMonitorInputStream(InputStream in, long maxSize, InputStreamProgressMonitor mon)Creates aFilterInputStreamby assigning the argumentinto the fieldthis.inso as to remember it for later use.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intread()intread(byte[] b)intread(byte[] b, int off, int len)-
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, reset, skip
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
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 Detail
-
read
public int read() throws IOException- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
public int read(byte[] b) throws IOException- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
public int read(byte[] b, int off, int len) throws IOException- Overrides:
readin classFilterInputStream- Throws:
IOException
-
-