|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.vxart.net.MultipartMessage
public class MultipartMessage
Parses Multipart MIME Messages as defined in RFC 2046 with the exception that it relies on optional headers to parse the size of the data payload of each MIME part ("Content-Length" or "Content-Range") which are usually present in HTTP responses.
Nested Class Summary | |
---|---|
class |
MultipartMessage.Part
|
Constructor Summary | |
---|---|
MultipartMessage(java.io.InputStream input,
java.lang.String boundary)
Constructs a MultipartMessage that parses from the given stream using the specified boundary to separate parts. |
Method Summary | |
---|---|
boolean |
hasNext()
Returns true if there's a next part available. |
java.util.Iterator<MultipartMessage.Part> |
iterator()
Returns an Iterator over all parts of this multipart message. |
MultipartMessage.Part |
next()
Returns the next part from this multipart message. |
void |
remove()
This method is unsupported for MultipartMessages. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultipartMessage(java.io.InputStream input, java.lang.String boundary)
input
- the stream to read the multipart MIME message fromboundary
- the boundary used to delimit the MIME partsMethod Detail |
---|
public java.util.Iterator<MultipartMessage.Part> iterator()
iterator
in interface java.lang.Iterable<MultipartMessage.Part>
public boolean hasNext()
hasNext
in interface java.util.Iterator<MultipartMessage.Part>
public MultipartMessage.Part next()
next
in interface java.util.Iterator<MultipartMessage.Part>
public void remove()
remove
in interface java.util.Iterator<MultipartMessage.Part>
java.lang.UnsupportedOperationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |