public interface MimeWriter
| Modifier and Type | Interface and Description |
|---|---|
static class |
MimeWriter.WriteMimeDataType
Used to specify which part of the MIME content should be itemized into the document
|
| Modifier and Type | Method and Description |
|---|---|
void |
convertToMime(Document doc,
RichTextMimeConversionSettings convertSettings)
This function converts all rich text items (type
ItemDataType.TYPE_COMPOSITE) in the
document to MIME items (type ItemDataType.TYPE_MIME_PART).It does not update the database; to update the database, save the document. |
RichTextMimeConversionSettings |
createRichTextMimeConversionSettings()
Creates a new
RichTextMimeConversionSettings with system default settings. |
void |
writeMime(Document doc,
String itemName,
jakarta.mail.Message mimeMessage,
Set<MimeWriter.WriteMimeDataType> dataType)
Writes the content of a
Message to a document. |
void |
writeMime(Document doc,
String itemName,
Reader reader,
Set<MimeWriter.WriteMimeDataType> dataType)
Writes raw MIME content to a document.
|
void writeMime(Document doc, String itemName, jakarta.mail.Message mimeMessage, Set<MimeWriter.WriteMimeDataType> dataType) throws IOException, jakarta.mail.MessagingException
Message to a document.
Note: to write the body of the message, the document must be in a database where the current user has at least Author rights.
doc - target documentitemName - name of item used for the MIME data (e.g. "body")mimeMessage - MIME message to writedataType - itemize flags (write header, body or both)IOException - in case of I/O errorsjakarta.mail.MessagingException - in case of errors accessing the Messagevoid writeMime(Document doc, String itemName, Reader reader, Set<MimeWriter.WriteMimeDataType> dataType) throws IOException
Note: to write the body of the message, the document must be in a database where the current user has at least Author rights.
doc - target documentitemName - name of item used for the MIME data (e.g. "body")reader - reader used to read the MIME contentdataType - itemize flags (write header, body or both)IOException - in case of I/O errorsRichTextMimeConversionSettings createRichTextMimeConversionSettings()
RichTextMimeConversionSettings with system default settings.void convertToMime(Document doc, RichTextMimeConversionSettings convertSettings)
ItemDataType.TYPE_COMPOSITE) in the
document to MIME items (type ItemDataType.TYPE_MIME_PART).doc - document to convertconvertSettings - settings to control the conversion process or null to use the system defaultCopyright © 2019–2021 HCL. All rights reserved.