public class CountingInputStream
extends java.io.FilterInputStream
| Constructor and Description |
|---|
CountingInputStream(java.io.InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
long |
getByteCount() |
int |
read() |
int |
read(byte[] buffer,
int offset,
int length)
Note: we must not override the read(byte[] buffer) method!
|
long |
resetByteCount() |
long |
skip(long length) |
public int read(byte[] buffer,
int offset,
int length)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic long skip(long length)
throws java.io.IOException
skip in class java.io.FilterInputStreamjava.io.IOExceptionpublic long getByteCount()
public long resetByteCount()
Copyright © 2014 EsprIT-Systems. All Rights Reserved.