java.lang.Object
javax.mail.Multipart
javax.mail.internet.MimeMultipart
- public class MimeMultipart
- extends javax.mail.Multipart
- Version:
- $Rev: 154541 $ $Date: 2005-02-20 10:01:49 -0800 (Sun, 20 Feb 2005) $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ds
protected javax.activation.DataSource ds
- DataSource that provides our InputStream.
parsed
protected boolean parsed
- Indicates if the data has been parsed.
type
private transient ContentType type
dash
private static byte[] dash
crlf
private static byte[] crlf
part
private static int part
MimeMultipart
public MimeMultipart()
- Create an empty MimeMultipart with content type "multipart/mixed"
MimeMultipart
public MimeMultipart(java.lang.String subtype)
- Create an empty MimeMultipart with the subtype supplied.
MimeMultipart
public MimeMultipart(javax.activation.DataSource dataSource)
throws javax.mail.MessagingException
- Create a MimeMultipart from the supplied DataSource.
setSubType
public void setSubType(java.lang.String subtype)
throws javax.mail.MessagingException
getCount
public int getCount()
throws javax.mail.MessagingException
- Description copied from class:
javax.mail.Multipart
- Return the number of enclosed parts
getBodyPart
public javax.mail.BodyPart getBodyPart(int part)
throws javax.mail.MessagingException
- Description copied from class:
javax.mail.Multipart
- Get the specified part; numbering starts at zero.
getBodyPart
public javax.mail.BodyPart getBodyPart(java.lang.String cid)
throws javax.mail.MessagingException
updateHeaders
protected void updateHeaders()
throws javax.mail.MessagingException
writeTo
public void writeTo(java.io.OutputStream out)
throws java.io.IOException,
javax.mail.MessagingException
- Description copied from class:
javax.mail.Multipart
- Encode and write this multipart to the supplied OutputStream; the encoding
used is determined by the implementation.
parse
protected void parse()
throws javax.mail.MessagingException
createInternetHeaders
protected InternetHeaders createInternetHeaders(java.io.InputStream in)
throws javax.mail.MessagingException
createMimeBodyPart
protected MimeBodyPart createMimeBodyPart(InternetHeaders headers,
byte[] data)
throws javax.mail.MessagingException
createMimeBodyPart
protected MimeBodyPart createMimeBodyPart(java.io.InputStream in)
throws javax.mail.MessagingException
getBoundary
private static java.lang.String getBoundary()