-
- All Implemented Interfaces:
-
java.io.Closeable,java.lang.AutoCloseable
public final class CountingInputStream extends FilterInputStream
An InputStream counting the number of bytes read from a wrapped inputStream.
-
-
Constructor Summary
Constructors Constructor Description CountingInputStream(InputStream inputStream)
-
Method Summary
Modifier and Type Method Description final LonggetCount()Integerread()Integerread(ByteArray b, Integer off, Integer len)Longskip(Long n)Unitmark(Integer readlimit)Unitreset()final ByteArrayreadRange(LongRange range)-
Methods inherited from class java.io.FilterInputStream
available, close, markSupported, read -
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
-
CountingInputStream
CountingInputStream(InputStream inputStream)
-
-
-
-