Class MonitoredInputStream
java.lang.Object
java.io.InputStream
net.thevpc.common.io.MonitoredInputStream
- All Implemented Interfaces:
Closeable, AutoCloseable
- Author:
- thevpc
-
Constructor Summary
ConstructorsConstructorDescriptionMonitoredInputStream(InputStream base, Object source, String sourceName, long length, InputStreamMonitor monitor) -
Method Summary
Methods inherited from class InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
MonitoredInputStream
public MonitoredInputStream(InputStream base, Object source, String sourceName, long length, InputStreamMonitor monitor)
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
markSupported
public boolean markSupported()- Overrides:
markSupportedin classInputStream
-
reset
- Overrides:
resetin classInputStream- Throws:
IOException
-
mark
public void mark(int readlimit) - Overrides:
markin classInputStream
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-