public class ByteCountInputStream extends FilterInputStream
in| Constructor and Description |
|---|
ByteCountInputStream(InputStream in)
Instantiates a new byte count input stream.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getBytesRead()
Get the bytesRead of this ByteCountInputStream.
|
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
resetBytesRead()
Reset the number of bytes read count.
|
long |
skip(long n) |
available, close, mark, markSupported, read, resetpublic ByteCountInputStream(InputStream in)
in - the InputStream.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 long getBytesRead()
public void resetBytesRead()
Copyright © 2018. All rights reserved.