|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xml.ws.message.MimeAttachmentSet
public final class MimeAttachmentSet
AttachmentSet
backed by MimeMultipartParser
Constructor Summary | |
---|---|
MimeAttachmentSet(MimeMultipartParser mpp)
|
Method Summary | |
---|---|
void |
add(Attachment att)
Adds an attachment to this set. |
Attachment |
get(String contentId)
Gets the attachment by the content ID. |
boolean |
isEmpty()
This is expensive operation, its going to to read all the underlying attachments in MimeMultipartParser . |
Iterator<Attachment> |
iterator()
Expensive operation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MimeAttachmentSet(MimeMultipartParser mpp)
Method Detail |
---|
@Nullable public Attachment get(String contentId)
AttachmentSet
get
in interface AttachmentSet
contentId
- The content ID like "foo-bar-zot@abc.com", without
surrounding '<' and '>' used as the transfer syntax.
public boolean isEmpty()
MimeMultipartParser
.
isEmpty
in interface AttachmentSet
public void add(Attachment att)
AttachmentSet
Note that it's OK for an Attachment
to belong to
more than one AttachmentSet
(which is in fact
necessary when you wrap a Message
into another.
add
in interface AttachmentSet
att
- must not be null.public Iterator<Attachment> iterator()
iterator
in interface Iterable<Attachment>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |