ReadCounterLimitInputStreampublic 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.FilterInputStreamjava.io.IOExceptionpublic long getRead()
ReadCountergetRead インタフェース内 ReadCounterpublic int read()
throws java.io.IOException
read クラス内 java.io.FilterInputStreamjava.io.IOExceptionpublic int read(byte[] buf,
int off,
int len)
throws java.io.IOException
read クラス内 java.io.FilterInputStreamjava.io.IOException