public class PreencodedMimeBodyPart extends MimeBodyPart
content, contentStream, dh, headers
ATTACHMENT, 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, setText
public PreencodedMimeBodyPart(java.lang.String encoding)
encoding
- The content encoding.public java.lang.String getEncoding() throws MessagingException
getEncoding
in interface MimePart
getEncoding
in class MimeBodyPart
MessagingException
public void writeTo(java.io.OutputStream out) throws java.io.IOException, MessagingException
writeTo
in interface Part
writeTo
in class MimeBodyPart
out
- The target output stream.java.io.IOException
MessagingException
protected void updateHeaders() throws MessagingException
updateHeaders
in class MimeBodyPart
MessagingException