|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.basho.riak.client.http.util.StreamedMultipart
public class StreamedMultipart
Constructor Summary | |
---|---|
StreamedMultipart(Map<String,String> headers,
InputStream stream)
Parses a multipart message or a multipart subpart of a multipart message. |
Method Summary | |
---|---|
Map<String,String> |
getHeaders()
Return the map of document headers that this object was constructed with. |
boolean |
hasNext()
See Iterator.hasNext() . |
Multipart.Part |
next()
See Iterator.next() . |
void |
remove()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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 from
IOException
- There was a communication error reading the input stream while
looking for the initial boundary
EOFException
- The initial boundary was not foundMethod Detail |
---|
public 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>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |