public class LimitedInputStream extends FilterInputStream implements Closeable
in| Constructor and Description |
|---|
LimitedInputStream(InputStream inputStream,
long limitSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
raiseError(long pSizeMax,
long pCount) |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
available, mark, markSupported, read, reset, skippublic LimitedInputStream(InputStream inputStream, long limitSize)
protected void raiseError(long pSizeMax,
long pCount)
throws IOException
IOExceptionpublic int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterInputStreamIOExceptionCopyright © 2025. All rights reserved.