public final class ByteCountingInputStream extends FilterInputStream
Input Stream that also counting Byte Bytes.
in| Constructor and Description |
|---|
ByteCountingInputStream(InputStream in)
Instantiates a new byte counting input stream.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getByteCount()
Returns bytes read.
|
void |
mark(int readlimit) |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
available, close, markSupported, readpublic ByteCountingInputStream(InputStream in)
Instantiates a new byte counting input stream.
in - the inpublic int getByteCount()
Returns bytes read.
public void mark(int readlimit)
mark in class FilterInputStreampublic int read() throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b, int off, int len) throws IOException
read in class FilterInputStreamIOExceptionpublic void reset() throws IOException
reset in class FilterInputStreamIOExceptionpublic long skip(long n) throws IOException
skip in class FilterInputStreamIOExceptionCopyright © 2014-2017 Konik.io. All Rights Reserved.