Class MeasuredSizeInputStream
java.lang.Object
java.io.InputStream
com.coreoz.plume.file.services.data.MeasuredSizeInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
An input stream wrapper that exposes a method to know
the number of bytes that has been read in the stream.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
MeasuredSizeInputStream
-
-
Method Details
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
getInputStreamTotalSize
public long getInputStreamTotalSize()Returns the number of bytes that has been read -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-