public class LimitedInputStream
extends java.io.FilterInputStream
Constructor and Description |
---|
LimitedInputStream(java.io.InputStream in,
int readLimit) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
mark(int readLimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
protected int |
remainingLimit() |
void |
reset() |
long |
skip(long n) |
public LimitedInputStream(java.io.InputStream in, int readLimit)
public boolean markSupported()
markSupported
in class java.io.FilterInputStream
public 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 int available() throws java.io.IOException
available
in class java.io.FilterInputStream
java.io.IOException
protected int remainingLimit()
public void mark(int readLimit)
mark
in class java.io.FilterInputStream
public void reset() throws java.io.IOException
reset
in class java.io.FilterInputStream
java.io.IOException