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, readpublic FlowMeterInputStream(InputStream in)
public int read() throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] inBytes, int inOffset, int inLength) throws IOException
read in class FilterInputStreamIOExceptionpublic void reset()
reset in class FilterInputStreampublic long getNumBytes()
public long skip(long inBytesToSkip) throws IOException
skip in class FilterInputStreamIOExceptionpublic long skipTo(long inBytesOffset) throws IOException
IOException
jataylor@hairyfatguy.com