@InterfaceAudience.Private public final class LimitInputStream extends FilterInputStream
in| 构造器和说明 |
|---|
LimitInputStream(InputStream in,
long limit) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在类中 FilterInputStreamIOExceptionpublic void mark(int readLimit)
mark 在类中 FilterInputStreampublic int read()
throws IOException
read 在类中 FilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read 在类中 FilterInputStreamIOExceptionpublic void reset()
throws IOException
reset 在类中 FilterInputStreamIOExceptionpublic long skip(long n)
throws IOException
skip 在类中 FilterInputStreamIOExceptionCopyright © 2007–2021 The Apache Software Foundation. All rights reserved.