public class ContentLengthValidationInputStream
extends java.io.FilterInputStream
| コンストラクタと説明 |
|---|
ContentLengthValidationInputStream(java.io.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.
|
public ContentLengthValidationInputStream(java.io.InputStream in,
long expectedLength)
public int read()
throws java.io.IOException
read クラス内 java.io.FilterInputStreamjava.io.IOExceptionpublic int read(byte[] arg0,
int off,
int len)
throws java.io.IOException
read クラス内 java.io.FilterInputStreamjava.io.IOExceptionpublic long skip(long n)
throws java.io.IOException
skip クラス内 java.io.FilterInputStreamjava.io.IOExceptionpublic void mark(int readlimit)
mark クラス内 java.io.FilterInputStreampublic void reset()
throws java.io.IOException
reset クラス内 java.io.FilterInputStreamjava.io.IOException