public class MultipartInputStream extends FilterInputStream
| Modifier and Type | Class and Description |
|---|---|
private static class |
MultipartInputStream.Field |
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
boundary |
private boolean |
boundarySeen |
private byte[] |
buffer |
private int |
rpos |
in| Modifier | Constructor and Description |
|---|---|
protected |
MultipartInputStream(InputStream in,
String boundary) |
| Modifier and Type | Method and Description |
|---|---|
private boolean |
isBoundary() |
boolean |
isZIP() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
private static void |
readFully(InputStream in,
byte[] b,
int off,
int len) |
private boolean |
readHeaderParam(MultipartInputStream.Field field) |
Map<String,List<String>> |
readHeaderParams() |
private int |
remaining() |
long |
skip(long n) |
void |
skipAll() |
private static String |
unquote(String s) |
available, close, mark, markSupported, read, resetprivate final byte[] boundary
private final byte[] buffer
private int rpos
private boolean boundarySeen
protected MultipartInputStream(InputStream in, String 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 n) throws IOException
skip in class FilterInputStreamIOExceptionpublic void skipAll() throws IOException
IOExceptionpublic boolean isZIP() throws IOException
IOExceptionprivate boolean isBoundary() throws IOException
IOExceptionprivate static void readFully(InputStream in, byte[] b, int off, int len) throws IOException
IOExceptionprivate int remaining()
public Map<String,List<String>> readHeaderParams() throws IOException
IOExceptionprivate boolean readHeaderParam(MultipartInputStream.Field field) throws IOException
IOExceptionCopyright © 2017 dcm4che.org. All rights reserved.