public class PreencodedMimeBodyPart extends MimeBodyPart
content, contentStream, dh, headersATTACHMENT, INLINE| Constructor and Description |
|---|
PreencodedMimeBodyPart(String encoding)
Create a new body part with the specified MIME transfer encoding.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getEncoding()
Retieve the defined encoding for this body part.
|
protected void |
updateHeaders()
Override of update headers to ensure the transfer encoding
is forced to the correct type.
|
void |
writeTo(OutputStream out)
Write the body part content to the stream without applying
and additional encodings.
|
addHeader, addHeaderLine, attachFile, attachFile, getAllHeaderLines, getAllHeaders, getContent, getContentID, getContentLanguage, getContentMD5, getContentStream, 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(String encoding)
encoding - The content encoding.public String getEncoding() throws MessagingException
getEncoding in interface MimePartgetEncoding in class MimeBodyPartMessagingExceptionpublic void writeTo(OutputStream out) throws IOException, MessagingException
writeTo in interface PartwriteTo in class MimeBodyPartout - The target output stream.IOExceptionMessagingExceptionprotected void updateHeaders()
throws MessagingException
updateHeaders in class MimeBodyPartMessagingExceptionCopyright © 2013. All Rights Reserved.