|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
java.io.FilterInputStream
org.apache.commons.io.input.ProxyInputStream
org.apache.commons.io.input.CountingInputStream
public class CountingInputStream
Used in debugging, it counts the number of bytes that pass through it.
Field Summary |
---|
Fields inherited from class java.io.FilterInputStream |
---|
in |
Constructor Summary | |
---|---|
CountingInputStream(InputStream in)
Constructs a new CountingInputStream. |
Method Summary | |
---|---|
int |
getCount()
The number of bytes that have passed through this stream. |
int |
read()
Increases the count by 1. |
int |
read(byte[] b)
Increases the count by super.read(b)'s return count |
int |
read(byte[] b,
int off,
int len)
Increases the count by super.read(b, off, len)'s return count |
Methods inherited from class org.apache.commons.io.input.ProxyInputStream |
---|
available, close, mark, markSupported, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CountingInputStream(InputStream in)
in
- InputStream to delegate toMethod Detail |
---|
public int read(byte[] b) throws IOException
read
in class ProxyInputStream
IOException
InputStream.read(byte[])
public int read(byte[] b, int off, int len) throws IOException
read
in class ProxyInputStream
IOException
InputStream.read(byte[], int, int)
public int read() throws IOException
read
in class ProxyInputStream
IOException
InputStream.read()
public int getCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |