public class CountingInputStream
extends java.io.InputStream
| Constructor and Description |
|---|
CountingInputStream(java.io.InputStream downstream)
Construct a CountingInputStream that reads from another stream.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getByteCount()
Get the number of bytes read so far.
|
int |
read() |
java.lang.String |
toString() |
public CountingInputStream(java.io.InputStream downstream)
downstream - The downstream InputStream to read from.public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic int getByteCount()