public class HttpMultipartInputStream
extends java.io.FilterInputStream
| 限定符和类型 | 字段和说明 |
|---|---|
protected byte[] |
boundary |
protected byte[] |
buf |
static byte[] |
CRLF |
protected int |
end |
protected int |
head |
protected int |
len |
protected int |
state |
protected int |
tail |
| 限定符 | 构造器和说明 |
|---|---|
protected |
HttpMultipartInputStream(java.io.InputStream in,
byte[] boundary) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
available() |
protected boolean |
fill()
Fills the buffer with more data from the underlying stream.
|
protected void |
findBoundary()
Finds the first (potential) boundary within the buffer's remaining data.
|
boolean |
markSupported() |
boolean |
nextPart()
Advances the stream position to the beginning of the next part.
|
int |
read() |
int |
read(byte[] b,
int off,
int len) |
long |
skip(long len) |
public static final byte[] CRLF
protected final byte[] boundary
protected final byte[] buf
protected int head
protected int tail
protected int end
protected int len
protected int state
protected HttpMultipartInputStream(java.io.InputStream in,
byte[] boundary)
public int read()
throws java.io.IOException
read 在类中 java.io.FilterInputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read 在类中 java.io.FilterInputStreamjava.io.IOExceptionpublic long skip(long len)
throws java.io.IOException
skip 在类中 java.io.FilterInputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available 在类中 java.io.FilterInputStreamjava.io.IOExceptionpublic boolean markSupported()
markSupported 在类中 java.io.FilterInputStreampublic boolean nextPart()
throws java.io.IOException
java.io.IOException - if an error occursprotected boolean fill()
throws java.io.IOException
java.io.IOException - if an error occurs or the input format is invalidprotected void findBoundary()
throws java.io.IOException
java.io.IOException - if an error occurs or the input format is invalid