public class CountInputStream
extends java.io.FilterInputStream
Constructor and Description |
---|
CountInputStream(java.io.InputStream in)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
getReadCount()
Returns the number of bytes successfully read so far from this stream.
|
long |
getSkipCount()
Returns the number of bytes skipped from this stream.
|
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
long |
skip(long n) |
public CountInputStream(java.io.InputStream in)
in
- base input streampublic int read() throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class java.io.FilterInputStream
java.io.IOException
public long getReadCount()
public long getSkipCount()