public class PreencodedMimeBodyPart extends MimeBodyPart
setText, setContent, or
setDataHandler methods.ATTACHMENT, INLINE| Constructor and Description |
|---|
PreencodedMimeBodyPart(java.lang.String encoding)
Create a PreencodedMimeBodyPart that assumes the data is
encoded using the specified encoding.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getEncoding()
Returns the content transfer encoding specified when
this object was created.
|
void |
writeTo(java.io.OutputStream os)
Output the body part as an RFC 822 format stream.
|
addHeader, addHeaderLine, attachFile, attachFile, attachFile, attachFile, getAllHeaderLines, getAllHeaders, getContent, getContentID, getContentLanguage, getContentMD5, getContentType, getDataHandler, getDescription, getDisposition, 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, setTextpublic PreencodedMimeBodyPart(java.lang.String encoding)
encoding - the Content-Transfer-Encodingpublic java.lang.String getEncoding()
throws MessagingException
getEncoding in interface MimePartgetEncoding in class MimeBodyPartMessagingException - for failuresMimeBodyPart.headerspublic void writeTo(java.io.OutputStream os)
throws java.io.IOException,
MessagingException
writeTo in interface PartwriteTo in class MimeBodyPartos - the stream to write tojava.io.IOException - if an error occurs writing to the
stream or if an error is generated
by the javax.activation layer.MessagingException - for other failuresDataHandler.writeTo(java.io.OutputStream)Copyright © 2010 - 2023 Adobe. All Rights Reserved