public class FlowMeterInputStream extends FilterInputStream
in
Constructor and Description |
---|
FlowMeterInputStream(InputStream in)
An InputStream that measures the number of bytes that pass through.
|
Modifier and Type | Method and Description |
---|---|
long |
getNumBytes() |
int |
read() |
int |
read(byte[] inBytes,
int inOffset,
int inLength) |
void |
reset() |
long |
skip(long inBytesToSkip) |
long |
skipTo(long inBytesOffset) |
available, close, mark, markSupported, read
public FlowMeterInputStream(InputStream in)
public int read() throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] inBytes, int inOffset, int inLength) throws IOException
read
in class FilterInputStream
IOException
public void reset()
reset
in class FilterInputStream
public long getNumBytes()
public long skip(long inBytesToSkip) throws IOException
skip
in class FilterInputStream
IOException
public long skipTo(long inBytesOffset) throws IOException
IOException
jataylor@hairyfatguy.com