public class MessageParser extends AbstractMessage
Constructor and Description |
---|
MessageParser() |
Modifier and Type | Method and Description |
---|---|
byte[] |
data()
Returns the data of the message.
|
java.lang.String |
htmlBodyRendering()
Renders the body of the message as HTML.
|
java.lang.String |
htmlRendering() |
java.lang.String |
htmlRendering(HTMLRendererTemplateCallback callback)
Renders the message as HTML.
|
AbstractPart |
mainPart()
Returns the main part of the message.
|
static MessageParser |
messageParserWithContentsOfFile(java.lang.String filename)
Returns a MessageParser that parses the given file containing RFC 822 message data.
|
static MessageParser |
messageParserWithData(byte[] messageData)
Returns a MessageParser that parses the given RFC 822 message data.
|
java.lang.String |
plainTextBodyRendering(boolean stripWhitespace)
Renders the body of the message as plain text.
|
java.lang.String |
plainTextRendering()
Renders the message as plain text.
|
attachments, header, htmlInlineAttachments, partForContentID, partForUniqueID, requiredPartsForRendering, setHeader
clone, finalize, initWithNative, readObject, toString, writeObject
public static MessageParser messageParserWithData(byte[] messageData)
public static MessageParser messageParserWithContentsOfFile(java.lang.String filename)
public AbstractPart mainPart()
public byte[] data()
public java.lang.String htmlRendering(HTMLRendererTemplateCallback callback)
public java.lang.String htmlRendering()
public java.lang.String htmlBodyRendering()
public java.lang.String plainTextRendering()
public java.lang.String plainTextBodyRendering(boolean stripWhitespace)