java.lang.Objectjavax.mail.Multipart
Direct Known Subclasses:
MimeMultipart
Multipart also acts as the base class for the content object returned by most Multipart DataContentHandlers. For example, invoking getContent() on a DataHandler whose source is a "multipart/signed" data source may return an appropriate subclass of Multipart.
Some messaging systems provide different subtypes of Multiparts. For example, MIME specifies a set of subtypes that include "alternative", "mixed", "related", "parallel", "signed", etc.
Multipart is an abstract class. Subclasses provide actual implementations.
1.16
- , 07/05/04John
- ManiField Summary | ||
---|---|---|
protected Vector | parts | Vector of BodyPart objects. |
protected String | contentType | This field specifies the content-type of this multipart object. It defaults to "multipart/mixed". |
protected Part | parent | The Part containing this Multipart ,
if known.
|
Constructor: |
---|
|
Method from javax.mail.Multipart Summary: |
---|
addBodyPart, addBodyPart, getBodyPart, getContentType, getCount, getParent, removeBodyPart, removeBodyPart, setMultipartDataSource, setParent, writeTo |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from javax.mail.Multipart Detail: |
---|
|
index .
If index is not the last one in the list,
the subsequent parts are shifted up. If index
is larger than the number of parts present, the
BodyPart is appended to the end. |
|
This implementation just returns the value of the
|
|
Part that contains this Multipart
object, or null if not known. |
|
|
The method adds the MultipartDataSource's BodyPart objects into this Multipart. This Multipart's contentType is set to that of the MultipartDataSource. This method is typically used in those cases where one has a multipart data source that has already been pre-parsed into the individual body parts (for example, an IMAP datasource), but needs to create an appropriate Multipart subclass that represents a specific multipart subtype. |
Multipart to be the specified
Part . Normally called by the Message
or BodyPart setContent(Multipart) method.
parent may be null if the
Multipart is being removed from its containing
Part . |
|