LoadOptions

Inheritance: java.lang.Object

public abstract class LoadOptions

This is an abstract base class for classes that allow the user to specify additional options when loading a MailMessage from a particular format.

Constructors

Constructor Description
LoadOptions()

Methods

Method Description
getPrefferedTextEncoding() Gets or sets preferred encoding for message.
setPrefferedTextEncoding(Charset value) Gets or sets preferred encoding for message.
getMessageFormat() Represents the mail message format.It can be in eml,msg or mhtml format.
getPreserveEmbeddedMessageFormat() Gets or sets a value indicating whether it is necessary to preserve format of embedded message at loading in MailMessage.
setPreserveEmbeddedMessageFormat(boolean value) Gets or sets a value indicating whether it is necessary to preserve format of embedded message at loading in MailMessage.

LoadOptions()

public LoadOptions()

getPrefferedTextEncoding()

public final Charset getPrefferedTextEncoding()

Gets or sets preferred encoding for message. Forcibly sets the preferred encoding for message subject and body. The default value is null.

Returns: java.nio.charset.Charset

setPrefferedTextEncoding(Charset value)

public final void setPrefferedTextEncoding(Charset value)

Gets or sets preferred encoding for message. Forcibly sets the preferred encoding for message subject and body. The default value is null.

Parameters:

Parameter Type Description
value java.nio.charset.Charset

getMessageFormat()

public final MessageFormat getMessageFormat()

Represents the mail message format.It can be in eml,msg or mhtml format. The default value is Eml.

Returns: MessageFormat

getPreserveEmbeddedMessageFormat()

public final boolean getPreserveEmbeddedMessageFormat()

Gets or sets a value indicating whether it is necessary to preserve format of embedded message at loading in MailMessage.

Returns: boolean

setPreserveEmbeddedMessageFormat(boolean value)

public final void setPreserveEmbeddedMessageFormat(boolean value)

Gets or sets a value indicating whether it is necessary to preserve format of embedded message at loading in MailMessage.

Parameters:

Parameter Type Description
value boolean