public class ContentLengthValidationInputStream extends FilterInputStream
in| 构造器和说明 |
|---|
ContentLengthValidationInputStream(InputStream in,
long expectedLength) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
mark(int readlimit)
Marks the current position in this input stream.
|
int |
read()
Reads the next byte of data from the input stream.
|
int |
read(byte[] arg0,
int off,
int len)
Reads up to len bytes of data from the input stream into an array of
bytes.
|
void |
reset()
Repositions this stream to the position at the time the mark method was
last called on this input stream if and only if mark is supported by the
input stream.
|
long |
skip(long n)
Skips over and discards n bytes of data from this input stream.
|
available, close, markSupported, readpublic ContentLengthValidationInputStream(InputStream in, long expectedLength)
public int read()
throws IOException
read 在类中 FilterInputStreamIOExceptionpublic int read(byte[] arg0,
int off,
int len)
throws IOException
read 在类中 FilterInputStreamIOExceptionpublic long skip(long n)
throws IOException
skip 在类中 FilterInputStreamIOExceptionpublic void mark(int readlimit)
mark 在类中 FilterInputStreampublic void reset()
throws IOException
reset 在类中 FilterInputStreamIOExceptionCopyright © 2016. All rights reserved.