java.io.Closeable
, java.lang.AutoCloseable
public class CountInputStream
extends java.io.FilterInputStream
Constructor | Description |
---|---|
CountInputStream(java.io.InputStream in) |
Constructor.
|
Modifier and Type | Method | 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) |
public CountInputStream(java.io.InputStream in)
in
- base input streampublic int read() throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public int read(byte[] b) throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
in class java.io.FilterInputStream
java.io.IOException
public long getReadCount()
public long getSkipCount()
Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.