ReadCounter
LimitInputStream
public class CountingInputStream extends java.io.FilterInputStream implements ReadCounter
修飾子とタイプ | フィールド | 説明 |
---|---|---|
protected long |
count |
コンストラクタ | 説明 |
---|---|
CountingInputStream(java.io.InputStream in) |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
long |
getRead() |
The total number of bytes that have been read or skipped
|
int |
read() |
|
int |
read(byte[] buf,
int off,
int len) |
|
long |
skip(long n) |
public long skip(long n) throws java.io.IOException
skip
クラス内 java.io.FilterInputStream
java.io.IOException
public long getRead()
ReadCounter
getRead
インタフェース内 ReadCounter
public int read() throws java.io.IOException
read
クラス内 java.io.FilterInputStream
java.io.IOException
public int read(byte[] buf, int off, int len) throws java.io.IOException
read
クラス内 java.io.FilterInputStream
java.io.IOException