WARNING: This class will be REMOVED in the next version.
@Deprecated public class StreamedMultipart extends Object implements Iterator<Multipart.Part>
StreamedMultipart| Constructor and Description |
|---|
StreamedMultipart(Map<String,String> headers,
InputStream stream)
Deprecated.
Parses a multipart message or a multipart subpart of a multipart message.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getHeaders()
Deprecated.
Return the map of document headers that this object was constructed with.
|
boolean |
hasNext()
Deprecated.
See
Iterator.hasNext(). |
Multipart.Part |
next()
Deprecated.
See
Iterator.next(). |
void |
remove()
Deprecated.
|
public StreamedMultipart(Map<String,String> headers, InputStream stream) throws IOException, EOFException
headers - The headers from the original message, which contains the
Content-Type header including the boundary stringstream - The input stream to read fromIOException - There was a communication error reading the input stream while
looking for the initial boundaryEOFException - The initial boundary was not foundpublic Map<String,String> getHeaders()
public boolean hasNext()
Iterator.hasNext().hasNext in interface Iterator<Multipart.Part>RuntimeException - (IOException) if there is an error reading the next part from
the input streampublic Multipart.Part next()
Iterator.next().next in interface Iterator<Multipart.Part>RuntimeException - (IOException) if there is an error reading the next part from
the input streampublic void remove()
remove in interface Iterator<Multipart.Part>Copyright © 2014. All Rights Reserved.