public class CountedInputStream
extends FilterInputStream
| Modifier and Type | Field and Description |
|---|---|
private long |
nRead
Count of the number of bytes read from the stream so far
|
| Constructor and Description |
|---|
CountedInputStream(InputStream in)
Wrap an input stream
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
markSupported() |
long |
nRead()
Find out how many bytes have been read so far
|
int |
read() |
int |
read(byte[] b,
int off,
int len) |
long |
skip(long n) |
public CountedInputStream(InputStream in)
public long nRead()
public int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class FilterInputStreamIOExceptionpublic boolean markSupported()
markSupported in class FilterInputStream