javax.mail.internet
public class MimeMultipart extends Multipart
Field Summary | |
---|---|
protected DataSource | ds
DataSource that provides our InputStream. |
protected boolean | parsed
Indicates if the data has been parsed. |
Constructor Summary | |
---|---|
MimeMultipart()
Create an empty MimeMultipart with content type "multipart/mixed" | |
MimeMultipart(String subtype)
Create an empty MimeMultipart with the subtype supplied.
| |
MimeMultipart(DataSource dataSource)
Create a MimeMultipart from the supplied DataSource.
|
Method Summary | |
---|---|
protected InternetHeaders | createInternetHeaders(InputStream in) |
protected MimeBodyPart | createMimeBodyPart(InternetHeaders headers, byte[] data) |
protected MimeBodyPart | createMimeBodyPart(InputStream in) |
BodyPart | getBodyPart(int part) |
BodyPart | getBodyPart(String cid) |
int | getCount() |
protected void | parse() |
void | setSubType(String subtype) |
protected void | updateHeaders() |
void | writeTo(OutputStream out) |
Parameters: subtype the subtype
Parameters: dataSource the DataSource to use
Throws: MessagingException