public class PreencodedMimeBodyPart extends MimeBodyPart
content, contentStream, dh, headersATTACHMENT, INLINE| Constructor and Description |
|---|
PreencodedMimeBodyPart(java.lang.String encoding)
Create a new body part with the specified MIME transfer encoding.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.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(java.io.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(java.lang.String encoding)
encoding - The content encoding.public java.lang.String getEncoding()
throws MessagingException
getEncoding in interface MimePartgetEncoding in class MimeBodyPartMessagingExceptionpublic void writeTo(java.io.OutputStream out)
throws java.io.IOException,
MessagingException
writeTo in interface PartwriteTo in class MimeBodyPartout - The target output stream.java.io.IOExceptionMessagingExceptionprotected void updateHeaders()
throws MessagingException
updateHeaders in class MimeBodyPartMessagingException