public class CountInputStream extends FilterInputStream
in
Constructor and Description |
---|
CountInputStream(InputStream in)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
getReadCount()
Returns the number of bytes successfully read so far from this stream.
|
long |
getSkipCount()
Returns the number of bytes skipped from this stream.
|
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
long |
skip(long n) |
available, close, mark, markSupported, reset
public CountInputStream(InputStream in)
in
- base input streampublic int read() throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] b) throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class FilterInputStream
IOException
public long skip(long n) throws IOException
skip
in class FilterInputStream
IOException
public long getReadCount()
public long getSkipCount()
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.