Example usage for Java javax.mail.internet MimeMultipart fields, constructors, methods, implement or subclass
The text is from its open source code.
MimeMultipart() Default constructor. | |
MimeMultipart(String subtype) Construct a MimeMultipart object of the given subtype. | |
MimeMultipart(BodyPart... parts) Construct a MimeMultipart object of the default "mixed" subtype, and with the given body parts. | |
MimeMultipart(DataSource ds) Constructs a MimeMultipart object and its bodyparts from the given DataSource. |
void | addBodyPart(BodyPart part) Adds a Part to the multipart. |
void | addBodyPart(BodyPart part, int index) Adds a BodyPart at position index . |
BodyPart | getBodyPart(int index) Get the specified BodyPart. |
BodyPart | getBodyPart(String CID) Get the MimeBodyPart referred to by the given ContentID (CID). |
String | getContentType() Return the content-type of this Multipart. |
int | getCount() Return the number of enclosed BodyPart objects. |
String | getPreamble() Get the preamble text, if any, that appears before the first body part of this multipart. |
void | setPreamble(String preamble) Set the preamble text to be included before the first body part. |
void | setSubType(String subtype) Set the subtype. |
void | writeTo(OutputStream os) Iterates through all the parts and outputs each MIME part separated by a boundary. |