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.ProxyInputStreamjava.io.IOExceptionpublic int read(byte[] bts)
throws java.io.IOException
read in class org.apache.commons.io.input.ProxyInputStreamjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class org.apache.commons.io.input.ProxyInputStreamjava.io.IOExceptionprivate void eosSafeCountingRead(int numRead)