public final class LimitedInputStream extends FilterInputStream
in| Constructor and Description |
|---|
LimitedInputStream(InputStream in) |
LimitedInputStream(InputStream in,
int limit) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
long |
skip(long n) |
close, mark, markSupported, read, resetpublic LimitedInputStream(InputStream in)
public LimitedInputStream(InputStream in, int limit)
public int available()
throws IOException
available in class FilterInputStreamIOExceptionpublic int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class FilterInputStreamIOExceptionCopyright © 2009–2022. All rights reserved.