Example usage for Java org.apache.commons.io.input CountingInputStream fields, constructors, methods, implement or subclass
The text is from its open source code.
CountingInputStream(InputStream in) Constructs a new CountingInputStream. |
void | close() Invokes the delegate's close() method. |
long | getByteCount() The number of bytes that have passed through this stream. |
int | getCount() The number of bytes that have passed through this stream. |
int | read(byte[] b) Reads a number of bytes into the byte array, keeping count of the number read. |
long | skip(final long length) Skips the stream over the specified number of bytes, adding the skipped amount to the count. |