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, 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, writeTo
public MediaBodyPart()
public MediaBodyPart(java.io.InputStream is) throws javax.mail.MessagingException
javax.mail.MessagingException
public MediaBodyPart(IEntry entry) throws javax.mail.MessagingException
javax.mail.MessagingException
public MediaBodyPart(MediaSource mediaSource) throws javax.mail.MessagingException
javax.mail.MessagingException
public MediaBodyPart(javax.mail.internet.InternetHeaders headers, byte[] content) throws javax.mail.MessagingException
javax.mail.MessagingException
public boolean isAtomPart() throws javax.mail.MessagingException
true
if the body part contains Atom data.javax.mail.MessagingException
public MediaSource getMediaSource()