public class CountingInputStream
extends java.io.InputStream
Constructor and Description |
---|
CountingInputStream(java.io.InputStream in)
Constructs a new
CountingInputStream wrapping the supplied
input stream. |
Modifier and Type | Method and Description |
---|---|
int |
getCounter()
Returns the number of bytes read since the last reset.
|
int |
read() |
void |
resetCounter()
Resets the counter to zero.
|