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.FilterInputStream
java.io.IOException
public int read() throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public long skip(long length) throws java.io.IOException
skip
in class java.io.FilterInputStream
java.io.IOException
public long getByteCount()
public long resetByteCount()
Copyright © 2014 EsprIT-Systems. All Rights Reserved.