public class MultipartRelatedDecoder extends Object
| Constructor and Description |
|---|
MultipartRelatedDecoder(javax.mail.internet.ContentType contentType)
Constructs a
MultipartRelatedDecoder. |
| Modifier and Type | Method and Description |
|---|---|
void |
decodeMultipartRelatedMessage(InputStream stream) |
Collection<AttachmentPart> |
getRelatedParts()
Returns a collection of
AttachmentPart objects that represent the attachments on this message. |
AttachmentPart |
getRootPart()
Returns an
AttachmentPart representing the root part of this multipart/related message. |
public MultipartRelatedDecoder(javax.mail.internet.ContentType contentType)
throws IOException,
javax.mail.MessagingException
MultipartRelatedDecoder. This will block until the message
has been decoded.contentType - the mime Content-Type header provided by the transportstream - The stream to pull the multipart message fromIOExceptionjavax.mail.MessagingExceptionpublic void decodeMultipartRelatedMessage(InputStream stream) throws IOException, javax.mail.MessagingException
IOExceptionjavax.mail.MessagingExceptionpublic AttachmentPart getRootPart()
AttachmentPart representing the root part of this multipart/related message.public Collection<AttachmentPart> getRelatedParts()
AttachmentPart objects that represent the attachments on this message.
If there are no attachments, an empty collection is returned.Copyright © 2013 JBoss, by Red Hat. All Rights Reserved.