|
|||||||||||
| 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
| Nested Class Summary | |
private class |
MimeMultipart.MimeBodyPartInputStream
|
| Field Summary | |
private static byte[] |
crlf
|
private static byte[] |
dash
|
protected DataSource |
ds
DataSource that provides our InputStream. |
protected boolean |
parsed
Indicates if the data has been parsed. |
private static int |
part
|
private ContentType |
type
|
| Fields inherited from class javax.mail.Multipart |
contentType, parent, parts |
| Constructor Summary | |
MimeMultipart()
Create an empty MimeMultipart with content type "multipart/mixed" |
|
MimeMultipart(java.lang.String subtype)
Create an empty MimeMultipart with the subtype supplied. |
|
| Method Summary | |
protected InternetHeaders |
createInternetHeaders(java.io.InputStream in)
|
protected MimeBodyPart |
createMimeBodyPart(java.io.InputStream in)
|
protected MimeBodyPart |
createMimeBodyPart(InternetHeaders headers,
byte[] data)
|
BodyPart |
getBodyPart(int part)
Get the specified part; numbering starts at zero. |
BodyPart |
getBodyPart(java.lang.String cid)
|
private static java.lang.String |
getBoundary()
|
int |
getCount()
Return the number of enclosed parts |
protected void |
parse()
|
private boolean |
readTillFirstBoundary(java.io.PushbackInputStream pushbackInStream,
byte[] boundary)
Move the read pointer to the begining of the first part read till the end of first boundary |
void |
setSubType(java.lang.String subtype)
|
protected void |
updateHeaders()
|
void |
writeTo(java.io.OutputStream out)
Encode and write this multipart to the supplied OutputStream; the encoding used is determined by the implementation. |
| Methods inherited from class javax.mail.Multipart |
addBodyPart, addBodyPart, getContentType, getParent, removeBodyPart, removeBodyPart, setMultipartDataSource, setParent |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected DataSource ds
protected boolean parsed
private transient ContentType type
private static byte[] dash
private static byte[] crlf
private static int part
| Constructor Detail |
public MimeMultipart()
public MimeMultipart(java.lang.String subtype)
subtype - the subtype| Method Detail |
public void setSubType(java.lang.String subtype)
throws MessagingException
MessagingException
public int getCount()
throws MessagingException
Multipart
getCount in class MultipartMessagingException
public BodyPart getBodyPart(int part)
throws MessagingException
Multipart
getBodyPart in class Multipartpart - the part to get
MessagingException
public BodyPart getBodyPart(java.lang.String cid)
throws MessagingException
MessagingException
protected void updateHeaders()
throws MessagingException
MessagingException
public void writeTo(java.io.OutputStream out)
throws java.io.IOException,
MessagingException
Multipart
writeTo in class Multipartout - the stream to write to
MessagingException
java.io.IOException
protected void parse()
throws MessagingException
MessagingException
private boolean readTillFirstBoundary(java.io.PushbackInputStream pushbackInStream,
byte[] boundary)
throws MessagingException
pushbackInStream - boundary -
MessagingException
protected InternetHeaders createInternetHeaders(java.io.InputStream in)
throws MessagingException
MessagingException
protected MimeBodyPart createMimeBodyPart(InternetHeaders headers,
byte[] data)
throws MessagingException
MessagingException
protected MimeBodyPart createMimeBodyPart(java.io.InputStream in)
throws MessagingException
MessagingExceptionprivate static java.lang.String getBoundary()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||