public class LimitedInputStream extends FilterInputStream implements Closeable
in| 构造器和说明 |
|---|
LimitedInputStream(InputStream inputStream,
long limitSize) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在类中 FilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read 在类中 FilterInputStreamIOExceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 FilterInputStreamIOExceptionCopyright © 2023. All rights reserved.