@InterfaceStability.Unstable public final class LimitInputStream extends FilterInputStream
in| Constructor and Description |
|---|
LimitInputStream(InputStream in,
long limit) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
mark(int readLimit) |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
close, markSupported, readpublic LimitInputStream(InputStream in, long limit)
public int available()
throws IOException
available in class FilterInputStreamIOExceptionpublic void mark(int readLimit)
mark in class FilterInputStreampublic int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionpublic void reset()
throws IOException
reset in class FilterInputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class FilterInputStreamIOExceptionCopyright © 2019 Apache Software Foundation. All Rights Reserved.