public class CountingInputStream extends FilterInputStream implements ReadCounter
| Modifier and Type | Field and Description |
|---|---|
protected long |
count |
in| Constructor and Description |
|---|
CountingInputStream(InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
long |
getRead()
The total number of bytes that have been read or skipped
|
int |
read() |
int |
read(byte[] buf,
int off,
int len) |
long |
skip(long n) |
available, close, mark, markSupported, read, resetpublic CountingInputStream(InputStream in)
public long getRead()
ReadCountergetRead in interface ReadCounterpublic int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] buf,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class FilterInputStreamIOException