|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.mail.Multipart
javax.mail.internet.MimeMultipart
com.sun.mail.mbox.SunV3Multipart
public class SunV3Multipart
The SunV3Multipart class is an implementation of the abstract Multipart class that uses SunV3 conventions for the multipart data.
Field Summary |
---|
Fields inherited from class javax.mail.internet.MimeMultipart |
---|
ds, parsed |
Fields inherited from class javax.mail.Multipart |
---|
contentType, parent, parts |
Constructor Summary | |
---|---|
SunV3Multipart(javax.activation.DataSource ds)
Constructs a SunV3Multipart object and its bodyparts from the given DataSource. |
Method Summary | |
---|---|
javax.mail.BodyPart |
getBodyPart(java.lang.String CID)
Get the BodyPart referred to by the given ContentID (CID). |
protected void |
parse()
Parse the InputStream from our DataSource, constructing the appropriate MimeBodyParts. |
void |
setSubType(java.lang.String subtype)
Set the subtype. |
protected void |
updateHeaders()
Update headers. |
void |
writeTo(java.io.OutputStream os)
Iterates through all the parts and outputs each SunV3 part separated by a boundary. |
Methods inherited from class javax.mail.internet.MimeMultipart |
---|
addBodyPart, addBodyPart, createInternetHeaders, createMimeBodyPart, createMimeBodyPart, getBodyPart, getCount, getPreamble, isComplete, removeBodyPart, removeBodyPart, setPreamble |
Methods inherited from class javax.mail.Multipart |
---|
getContentType, getParent, setMultipartDataSource, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SunV3Multipart(javax.activation.DataSource ds) throws javax.mail.MessagingException
ds
- DataSource, can be a MultipartDataSource
javax.mail.MessagingException
Method Detail |
---|
public void setSubType(java.lang.String subtype) throws javax.mail.MessagingException
setSubType
in class javax.mail.internet.MimeMultipart
subtype
- Subtype
javax.mail.MessagingException
public javax.mail.BodyPart getBodyPart(java.lang.String CID) throws javax.mail.MessagingException
getBodyPart
in class javax.mail.internet.MimeMultipart
CID
- the ContentID of the desired part
javax.mail.MessagingException
protected void updateHeaders() throws javax.mail.MessagingException
updateHeaders
in class javax.mail.internet.MimeMultipart
javax.mail.MessagingException
public void writeTo(java.io.OutputStream os) throws java.io.IOException, javax.mail.MessagingException
writeTo
in class javax.mail.internet.MimeMultipart
java.io.IOException
- if an IO related exception occurs
javax.mail.MessagingException
protected void parse() throws javax.mail.MessagingException
javax.mail.internet.MimeMultipart
parsed
flag is
set to true, and if true on entry nothing is done. This
method is called by all other methods that need data for
the body parts, to make sure the data has been parsed.
parse
in class javax.mail.internet.MimeMultipart
javax.mail.MessagingException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |