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, reset
private 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 FilterInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class FilterInputStream
IOException
public long skip(long n) throws IOException
skip
in class FilterInputStream
IOException
public void skipAll() throws IOException
IOException
public boolean isZIP() throws IOException
IOException
private boolean isBoundary() throws IOException
IOException
private static void readFully(InputStream in, byte[] b, int off, int len) throws IOException
IOException
private int remaining()
public Map<String,List<String>> readHeaderParams() throws IOException
IOException
private boolean readHeaderParam(MultipartInputStream.Field field) throws IOException
IOException
Copyright © 2017 dcm4che.org. All rights reserved.