public class BodyMimePart
extends javax.mail.internet.MimeBodyPart
Constructor and Description |
---|
BodyMimePart(Body body) |
Modifier and Type | Method and Description |
---|---|
void |
attachFile(java.io.File file) |
void |
attachFile(java.lang.String file) |
java.lang.Object |
getContent() |
protected java.io.InputStream |
getContentStream() |
javax.activation.DataHandler |
getDataHandler() |
java.io.InputStream |
getInputStream() |
int |
getLineCount() |
int |
getSize() |
void |
setContent(javax.mail.Multipart mp) |
void |
setContent(java.lang.Object obj,
java.lang.String type) |
void |
setDataHandler(javax.activation.DataHandler dh) |
void |
setText(java.lang.String text) |
void |
writeTo(java.io.OutputStream os) |
addHeader, addHeaderLine, getAllHeaderLines, getAllHeaders, getContentID, getContentLanguage, getContentMD5, getContentType, getDescription, getDisposition, getEncoding, getFileName, getHeader, getHeader, getMatchingHeaderLines, getMatchingHeaders, getNonMatchingHeaderLines, getNonMatchingHeaders, getRawInputStream, isMimeType, removeHeader, saveFile, saveFile, setContentID, setContentLanguage, setContentMD5, setDescription, setDescription, setDisposition, setFileName, setHeader, setText, setText, updateHeaders
public BodyMimePart(Body body)
public java.lang.Object getContent() throws java.io.IOException, javax.mail.MessagingException
getContent
in interface javax.mail.Part
getContent
in class javax.mail.internet.MimeBodyPart
java.io.IOException
javax.mail.MessagingException
public javax.activation.DataHandler getDataHandler() throws javax.mail.MessagingException
getDataHandler
in interface javax.mail.Part
getDataHandler
in class javax.mail.internet.MimeBodyPart
javax.mail.MessagingException
public java.io.InputStream getInputStream() throws java.io.IOException, javax.mail.MessagingException
getInputStream
in interface javax.mail.Part
getInputStream
in class javax.mail.internet.MimeBodyPart
java.io.IOException
javax.mail.MessagingException
public void attachFile(java.io.File file) throws java.io.IOException, javax.mail.MessagingException
attachFile
in class javax.mail.internet.MimeBodyPart
java.io.IOException
javax.mail.MessagingException
public void attachFile(java.lang.String file) throws java.io.IOException, javax.mail.MessagingException
attachFile
in class javax.mail.internet.MimeBodyPart
java.io.IOException
javax.mail.MessagingException
protected java.io.InputStream getContentStream() throws javax.mail.MessagingException
getContentStream
in class javax.mail.internet.MimeBodyPart
javax.mail.MessagingException
public int getLineCount() throws javax.mail.MessagingException
getLineCount
in interface javax.mail.Part
getLineCount
in class javax.mail.internet.MimeBodyPart
javax.mail.MessagingException
public int getSize() throws javax.mail.MessagingException
getSize
in interface javax.mail.Part
getSize
in class javax.mail.internet.MimeBodyPart
javax.mail.MessagingException
public void setContent(javax.mail.Multipart mp) throws javax.mail.MessagingException
setContent
in interface javax.mail.Part
setContent
in class javax.mail.internet.MimeBodyPart
javax.mail.MessagingException
public void setContent(java.lang.Object obj, java.lang.String type) throws javax.mail.MessagingException
setContent
in interface javax.mail.Part
setContent
in class javax.mail.internet.MimeBodyPart
javax.mail.MessagingException
public void setDataHandler(javax.activation.DataHandler dh) throws javax.mail.MessagingException
setDataHandler
in interface javax.mail.Part
setDataHandler
in class javax.mail.internet.MimeBodyPart
javax.mail.MessagingException
public void setText(java.lang.String text) throws javax.mail.MessagingException
setText
in interface javax.mail.internet.MimePart
setText
in interface javax.mail.Part
setText
in class javax.mail.internet.MimeBodyPart
javax.mail.MessagingException
public void writeTo(java.io.OutputStream os) throws java.io.IOException, javax.mail.MessagingException
writeTo
in interface javax.mail.Part
writeTo
in class javax.mail.internet.MimeBodyPart
java.io.IOException
javax.mail.MessagingException
This documentation and all its contents and graphics, copyright © 1999 - 2011 Vordel