Package org.duracloud.sync.endpoint
Class MonitoredInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.duracloud.sync.endpoint.MonitoredInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
-
Field Summary
Fields inherited from class java.io.FilterInputStream
in -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongintread()intread(byte[] b) intread(byte[] b, int off, int len) intupdateBytesRead(int byteCount) 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
-
MonitoredInputStream
- Throws:
FileNotFoundException
-
MonitoredInputStream
-
-
Method Details
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
read
- Overrides:
readin classFilterInputStream- Throws:
IOException
-
updateBytesRead
public int updateBytesRead(int byteCount) -
getBytesRead
public long getBytesRead()
-