public class LimitedInputStream extends FilterInputStream
Modifier and Type | Field and Description |
---|---|
protected int |
m_index |
protected int |
m_limit |
protected int |
m_mark |
in
Constructor and Description |
---|
LimitedInputStream(InputStream in,
int limit) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
mark(int readlimit) |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
close, markSupported
protected int m_index
protected int m_limit
protected int m_mark
public LimitedInputStream(InputStream in, int limit)
public 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 int available() throws IOException
available
in class FilterInputStream
IOException
public void mark(int readlimit)
mark
in class FilterInputStream
public void reset() throws IOException
reset
in class FilterInputStream
IOException