ReadCounter
public class LimitInputStream extends CountingInputStream
count
コンストラクタ | 説明 |
---|---|
LimitInputStream(java.io.InputStream in,
long max) |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
int |
available() |
|
int |
read() |
|
int |
read(byte[] buf,
int off,
int len) |
|
long |
skip(long n) |
getRead
public LimitInputStream(java.io.InputStream in, long max)
max
- max number of bytes to readpublic int available() throws java.io.IOException
available
クラス内 java.io.FilterInputStream
java.io.IOException
public long skip(long n) throws java.io.IOException
skip
クラス内 CountingInputStream
java.io.IOException
public int read() throws java.io.IOException
read
クラス内 CountingInputStream
java.io.IOException
public int read(byte[] buf, int off, int len) throws java.io.IOException
read
クラス内 CountingInputStream
java.io.IOException