public class ByteCountingInputStream
extends org.apache.commons.io.input.ProxyInputStream
Modifier and Type | Field and Description |
---|---|
private Counter |
byteCounter |
Constructor and Description |
---|
ByteCountingInputStream(java.io.InputStream streamToWrap,
Counter counter) |
Modifier and Type | Method and Description |
---|---|
private void |
eosSafeCountingRead(int numRead) |
int |
read() |
int |
read(byte[] bts) |
int |
read(byte[] bts,
int st,
int end) |
private final Counter byteCounter
public ByteCountingInputStream(java.io.InputStream streamToWrap, Counter counter)
public int read(byte[] bts, int st, int end) throws java.io.IOException
read
in class org.apache.commons.io.input.ProxyInputStream
java.io.IOException
public int read(byte[] bts) throws java.io.IOException
read
in class org.apache.commons.io.input.ProxyInputStream
java.io.IOException
public int read() throws java.io.IOException
read
in class org.apache.commons.io.input.ProxyInputStream
java.io.IOException
private void eosSafeCountingRead(int numRead)