public class CountedInputStream extends FilterInputStream
in
Constructor and Description |
---|
CountedInputStream(InputStream in)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getBytesRead()
Get the number of bytes read.
|
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int offset,
int len) |
long |
skip(long n) |
available, close, mark, reset
public CountedInputStream(InputStream in)
in
- the input stream.public int read() throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] b) throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] b, int offset, int len) throws IOException
read
in class FilterInputStream
IOException
public long skip(long n) throws IOException
skip
in class FilterInputStream
IOException
public boolean markSupported()
markSupported
in class FilterInputStream
public int getBytesRead()