public interface MimeReader
Modifier and Type | Interface and Description |
---|---|
static class |
MimeReader.ReadMimeDataType
Used to specify which part of the document MIME content should be read
|
Modifier and Type | Method and Description |
---|---|
Reader |
getMIMEReader(Document doc,
String itemName,
Set<MimeReader.ReadMimeDataType> dataType)
Returns a
Reader to read the MIME content |
jakarta.mail.internet.MimeMessage |
readMIME(Document doc,
String itemName,
Set<MimeReader.ReadMimeDataType> dataType)
Reads MIME content from a document and returns it as a
MimeMessage . |
void |
readMIME(Document doc,
String itemName,
Set<MimeReader.ReadMimeDataType> dataType,
Writer targetWriter)
Reads MIME content from a document into a
Writer in a streaming fashion. |
void readMIME(Document doc, String itemName, Set<MimeReader.ReadMimeDataType> dataType, Writer targetWriter) throws IOException
Writer
in a streaming fashion.doc
- document to read MIMEitemName
- name of item for the MIME content (e.g. "body")dataType
- specifies with MIME data types should be readtargetWriter
- writer to receive the MIME contentIOException
- in case of I/O errors writing into the Writer
jakarta.mail.internet.MimeMessage readMIME(Document doc, String itemName, Set<MimeReader.ReadMimeDataType> dataType)
MimeMessage
.doc
- document to read MIMEitemName
- name of item for the MIME content (e.g. "body")dataType
- specifies with MIME data types should be readReader getMIMEReader(Document doc, String itemName, Set<MimeReader.ReadMimeDataType> dataType)
Reader
to read the MIME contentdoc
- document to read MIMEitemName
- name of item for the MIME content (e.g. "body")dataType
- specifies with MIME data types should be readCopyright © 2019–2021 HCL. All rights reserved.