public class LengthLimitedInputStream extends FilterInputStream
in| Constructor and Description |
|---|
LengthLimitedInputStream(InputStream is, long length) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
long |
getContentLength() |
void |
mark(int readlimit) |
int |
read() |
int |
read(byte[] b, int off, int len) |
void |
reset() |
long |
skip(long n) |
close, markSupported, readpublic LengthLimitedInputStream(InputStream is, long length)
public long getContentLength()
public int read(byte[] b,
int off,
int len)
throws IOException
read in class FilterInputStreamIOException
public int read()
throws IOException
read in class FilterInputStreamIOException
public int available()
throws IOException
available in class FilterInputStreamIOException
public long skip(long n)
throws IOException
skip in class FilterInputStreamIOExceptionpublic void mark(int readlimit)
mark in class FilterInputStream
public void reset()
throws IOException
reset in class FilterInputStreamIOException