public class MediaBodyPart
extends javax.mail.internet.MimeBodyPart
DataHandler implementation that keeps the data in raw stream format.GDataContentHandler,
MediaSource,
MediaMultipart| Constructor and Description |
|---|
MediaBodyPart() |
MediaBodyPart(IEntry entry) |
MediaBodyPart(java.io.InputStream is) |
MediaBodyPart(javax.mail.internet.InternetHeaders headers,
byte[] content) |
MediaBodyPart(MediaSource mediaSource) |
| Modifier and Type | Method and Description |
|---|---|
MediaSource |
getMediaSource()
Returns the media source associated with the body part.
|
boolean |
isAtomPart()
Returns
true if the body part contains Atom data. |
addHeader, addHeaderLine, attachFile, attachFile, getAllHeaderLines, getAllHeaders, getContent, getContentID, getContentLanguage, getContentMD5, getContentStream, getContentType, getDataHandler, getDescription, getDisposition, getEncoding, getFileName, getHeader, getHeader, getInputStream, getLineCount, getMatchingHeaderLines, getMatchingHeaders, getNonMatchingHeaderLines, getNonMatchingHeaders, getRawInputStream, getSize, isMimeType, removeHeader, saveFile, saveFile, setContent, setContent, setContentID, setContentLanguage, setContentMD5, setDataHandler, setDescription, setDescription, setDisposition, setFileName, setHeader, setText, setText, setText, updateHeaders, writeTopublic MediaBodyPart()
public MediaBodyPart(java.io.InputStream is)
throws javax.mail.MessagingException
javax.mail.MessagingExceptionpublic MediaBodyPart(IEntry entry) throws javax.mail.MessagingException
javax.mail.MessagingExceptionpublic MediaBodyPart(MediaSource mediaSource) throws javax.mail.MessagingException
javax.mail.MessagingExceptionpublic MediaBodyPart(javax.mail.internet.InternetHeaders headers,
byte[] content)
throws javax.mail.MessagingException
javax.mail.MessagingExceptionpublic boolean isAtomPart()
throws javax.mail.MessagingException
true if the body part contains Atom data.javax.mail.MessagingExceptionpublic MediaSource getMediaSource()