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, read
public ContentLengthValidationInputStream(InputStream in, long expectedLength)
public int read() throws IOException
read
在类中 FilterInputStream
IOException
public int read(byte[] arg0, int off, int len) throws IOException
read
在类中 FilterInputStream
IOException
public long skip(long n) throws IOException
skip
在类中 FilterInputStream
IOException
public void mark(int readlimit)
mark
在类中 FilterInputStream
public void reset() throws IOException
reset
在类中 FilterInputStream
IOException
Copyright © 2016. All rights reserved.