Package com.pixelmed.transfermonitor
Class MonitoredInputStream
java.lang.Object
java.io.InputStream
com.pixelmed.transfermonitor.MonitoredInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
A class that extends InputStream to
track statistics on the transfers.
-
Constructor Summary
ConstructorsConstructorDescriptionMonitoredInputStream(InputStream in, TransferMonitoringContext transferMonitoringContext) -
Method Summary
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, skipNBytes, transferTo
-
Constructor Details
-
MonitoredInputStream
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
skip
- Overrides:
skipin classInputStream- Throws:
IOException
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-
mark
public final void mark(int readlimit) - Overrides:
markin classInputStream
-
markSupported
public final boolean markSupported()- Overrides:
markSupportedin classInputStream
-
reset
- Overrides:
resetin classInputStream- Throws:
IOException
-