public class LimitInputStream extends FilterInputStream implements Channel
InputStream up to specified max. lengthin| Constructor and Description |
|---|
LimitInputStream(InputStream in,
long length) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
boolean |
isOpen() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
long |
skip(long n) |
mark, markSupported, read, resetpublic LimitInputStream(InputStream in, long length)
public 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 FilterInputStreamIOExceptionpublic int available()
throws IOException
available in class FilterInputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface Channelclose in class FilterInputStreamIOExceptionCopyright © 2018–2021 The Apache Software Foundation. All rights reserved.