public class HttpMultipartInputStream extends FilterInputStream
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
boundary |
protected byte[] |
buf |
static byte[] |
CRLF |
protected int |
end |
protected int |
head |
protected int |
len |
protected int |
state |
protected int |
tail |
in| Modifier | Constructor and Description |
|---|---|
protected |
HttpMultipartInputStream(InputStream in,
byte[] boundary) |
| Modifier and Type | Method and Description |
|---|---|
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) |
close, mark, read, resetpublic 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(InputStream in, byte[] boundary)
public int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionpublic long skip(long len)
throws IOException
skip in class FilterInputStreamIOExceptionpublic int available()
throws IOException
available in class FilterInputStreamIOExceptionpublic boolean markSupported()
markSupported in class FilterInputStreampublic boolean nextPart()
throws IOException
IOException - if an error occursprotected boolean fill()
throws IOException
IOException - if an error occurs or the input format is invalidprotected void findBoundary()
throws IOException
IOException - if an error occurs or the input format is invalidCopyright © 2025. All rights reserved.