public class CountedInputStream
extends java.io.FilterInputStream
| Constructor and Description |
|---|
CountedInputStream(java.io.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) |
public CountedInputStream(java.io.InputStream in)
in - the input stream.public int read()
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read(byte[] b)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read(byte[] b,
int offset,
int len)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip in class java.io.FilterInputStreamjava.io.IOExceptionpublic boolean markSupported()
markSupported in class java.io.FilterInputStreampublic int getBytesRead()