public class DBMimeMultipart
extends javax.mail.Multipart
Constructor and Description |
---|
DBMimeMultipart(javax.mail.Part oMessage) |
Modifier and Type | Method and Description |
---|---|
void |
addBodyPart(javax.mail.internet.MimePart part) |
javax.mail.BodyPart |
getBodyPart(int index) |
javax.mail.BodyPart |
getBodyPart(java.lang.String cid)
Get body part given its Content-Id
|
int |
getCount() |
javax.mail.Part |
getParent() |
void |
removeBodyPart(int iPart) |
void |
writeTo(java.io.OutputStream os) |
public javax.mail.Part getParent()
getParent
in class javax.mail.Multipart
public void addBodyPart(javax.mail.internet.MimePart part) throws javax.mail.MessagingException
javax.mail.MessagingException
public int getCount()
getCount
in class javax.mail.Multipart
public javax.mail.BodyPart getBodyPart(int index) throws javax.mail.MessagingException
getBodyPart
in class javax.mail.Multipart
javax.mail.MessagingException
public javax.mail.BodyPart getBodyPart(java.lang.String cid) throws javax.mail.MessagingException
Get body part given its Content-Id
cid
- String Content-Idjavax.mail.MessagingException
public void removeBodyPart(int iPart) throws javax.mail.MessagingException, java.lang.ArrayIndexOutOfBoundsException
removeBodyPart
in class javax.mail.Multipart
javax.mail.MessagingException
java.lang.ArrayIndexOutOfBoundsException
public void writeTo(java.io.OutputStream os) throws java.io.IOException, javax.mail.MessagingException
writeTo
in class javax.mail.Multipart
java.io.IOException
javax.mail.MessagingException