Package com.sun.xml.ws.message
Class MimeAttachmentSet
java.lang.Object
com.sun.xml.ws.message.MimeAttachmentSet
- All Implemented Interfaces:
AttachmentSet,Iterable<Attachment>
AttachmentSet backed by MimeMultipartParser- Author:
- Vivek Pandey
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Attachment att) Adds an attachment to this set.Gets the attachment by the content ID.booleanisEmpty()This is expensive operation, its going to to read all the underlying attachments inMimeMultipartParser.iterator()Expensive operation.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
MimeAttachmentSet
-
-
Method Details
-
get
Description copied from interface:AttachmentSetGets the attachment by the content ID.- Specified by:
getin interfaceAttachmentSet- Parameters:
contentId- The content ID like "foo-bar-zot@abc.com", without surrounding '<' and '>' used as the transfer syntax.- Returns:
- null if no such attachment exist.
-
isEmpty
public boolean isEmpty()This is expensive operation, its going to to read all the underlying attachments inMimeMultipartParser.- Specified by:
isEmptyin interfaceAttachmentSet
-
add
Description copied from interface:AttachmentSetAdds an attachment to this set.Note that it's OK for an
Attachmentto belong to more than oneAttachmentSet(which is in fact necessary when you wrap aMessageinto another.- Specified by:
addin interfaceAttachmentSet- Parameters:
att- must not be null.
-
iterator
Expensive operation.- Specified by:
iteratorin interfaceIterable<Attachment>
-