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, read
public 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 FilterInputStream
public int read() throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class FilterInputStream
IOException
public void reset() throws IOException
reset
in class FilterInputStream
IOException
public long skip(long n) throws IOException
skip
in class FilterInputStream
IOException
Copyright © 2014-2017 Konik.io. All Rights Reserved.