-
- All Implemented Interfaces:
-
java.io.Closeable,java.lang.AutoCloseable
public final class CountedInputStream extends FilterInputStream
InputStream which counts the number of bytes read.
-
-
Constructor Summary
Constructors Constructor Description CountedInputStream(InputStream input)
-
Method Summary
Modifier and Type Method Description final IntegergetBytesRead()Number of bytes read. Integerread()Integerread(ByteArray b)Integerread(ByteArray b, Integer offset, Integer len)Longskip(Long n)BooleanmarkSupported()-
Methods inherited from class java.io.FilterInputStream
available, close, mark, reset -
Methods inherited from class java.io.InputStream
readAllBytes, readNBytes, readNBytes, transferTo -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
CountedInputStream
CountedInputStream(InputStream input)
-
-
-
-