public class ContentLengthValidationInputStream extends FilterInputStream
in| Constructor and Description |
|---|
ContentLengthValidationInputStream(InputStream in,
long expectedLength) |
| Modifier and Type | Method and Description |
|---|---|
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 in class FilterInputStreamIOExceptionpublic int read(byte[] arg0,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class FilterInputStreamIOExceptionpublic void mark(int readlimit)
mark in class FilterInputStreampublic void reset()
throws IOException
reset in class FilterInputStreamIOExceptionCopyright © 2016. All rights reserved.