com.vordel.mime
Class BodyMimePart
java.lang.Object
javax.mail.BodyPart
javax.mail.internet.MimeBodyPart
com.vordel.mime.BodyMimePart
- All Implemented Interfaces:
- javax.mail.internet.MimePart, javax.mail.Part
public class BodyMimePart
- extends javax.mail.internet.MimeBodyPart
Fields inherited from class javax.mail.internet.MimeBodyPart |
content, contentStream, dh, headers |
Fields inherited from class javax.mail.BodyPart |
parent |
Fields inherited from interface javax.mail.Part |
ATTACHMENT, INLINE |
Methods inherited from class javax.mail.internet.MimeBodyPart |
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 |
Methods inherited from class javax.mail.BodyPart |
getParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BodyMimePart
public BodyMimePart(Body body)
getContent
public java.lang.Object getContent()
throws java.io.IOException,
javax.mail.MessagingException
- Specified by:
getContent
in interface javax.mail.Part
- Overrides:
getContent
in class javax.mail.internet.MimeBodyPart
- Throws:
java.io.IOException
javax.mail.MessagingException
getDataHandler
public javax.activation.DataHandler getDataHandler()
throws javax.mail.MessagingException
- Specified by:
getDataHandler
in interface javax.mail.Part
- Overrides:
getDataHandler
in class javax.mail.internet.MimeBodyPart
- Throws:
javax.mail.MessagingException
getInputStream
public java.io.InputStream getInputStream()
throws java.io.IOException,
javax.mail.MessagingException
- Specified by:
getInputStream
in interface javax.mail.Part
- Overrides:
getInputStream
in class javax.mail.internet.MimeBodyPart
- Throws:
java.io.IOException
javax.mail.MessagingException
attachFile
public void attachFile(java.io.File file)
throws java.io.IOException,
javax.mail.MessagingException
- Overrides:
attachFile
in class javax.mail.internet.MimeBodyPart
- Throws:
java.io.IOException
javax.mail.MessagingException
attachFile
public void attachFile(java.lang.String file)
throws java.io.IOException,
javax.mail.MessagingException
- Overrides:
attachFile
in class javax.mail.internet.MimeBodyPart
- Throws:
java.io.IOException
javax.mail.MessagingException
getContentStream
protected java.io.InputStream getContentStream()
throws javax.mail.MessagingException
- Overrides:
getContentStream
in class javax.mail.internet.MimeBodyPart
- Throws:
javax.mail.MessagingException
getLineCount
public int getLineCount()
throws javax.mail.MessagingException
- Specified by:
getLineCount
in interface javax.mail.Part
- Overrides:
getLineCount
in class javax.mail.internet.MimeBodyPart
- Throws:
javax.mail.MessagingException
getSize
public int getSize()
throws javax.mail.MessagingException
- Specified by:
getSize
in interface javax.mail.Part
- Overrides:
getSize
in class javax.mail.internet.MimeBodyPart
- Throws:
javax.mail.MessagingException
setContent
public void setContent(javax.mail.Multipart mp)
throws javax.mail.MessagingException
- Specified by:
setContent
in interface javax.mail.Part
- Overrides:
setContent
in class javax.mail.internet.MimeBodyPart
- Throws:
javax.mail.MessagingException
setContent
public void setContent(java.lang.Object obj,
java.lang.String type)
throws javax.mail.MessagingException
- Specified by:
setContent
in interface javax.mail.Part
- Overrides:
setContent
in class javax.mail.internet.MimeBodyPart
- Throws:
javax.mail.MessagingException
setDataHandler
public void setDataHandler(javax.activation.DataHandler dh)
throws javax.mail.MessagingException
- Specified by:
setDataHandler
in interface javax.mail.Part
- Overrides:
setDataHandler
in class javax.mail.internet.MimeBodyPart
- Throws:
javax.mail.MessagingException
setText
public void setText(java.lang.String text)
throws javax.mail.MessagingException
- Specified by:
setText
in interface javax.mail.internet.MimePart
- Specified by:
setText
in interface javax.mail.Part
- Overrides:
setText
in class javax.mail.internet.MimeBodyPart
- Throws:
javax.mail.MessagingException
writeTo
public void writeTo(java.io.OutputStream os)
throws java.io.IOException,
javax.mail.MessagingException
- Specified by:
writeTo
in interface javax.mail.Part
- Overrides:
writeTo
in class javax.mail.internet.MimeBodyPart
- Throws:
java.io.IOException
javax.mail.MessagingException
This documentation and all its contents and graphics, copyright © 1999 - 2011 Vordel