MessageFormat

Inheritance: java.lang.Object

public final class MessageFormat

Represents the mail message format.It can be in eml,msg or mhtml format.

Methods

Method Description
getTnef() Indicates message in ``` Tnef ``` format.
getHtml() Indicates message in ``` Html ``` format.
getEml() Indicates message in ``` Eml ``` format.
getEmlx() Indicates message in ``` Emlx ``` format, used by Apple Mail.
getMht() Indicates message in ``` Mht ``` format.
getMsg() Indicates message in ``` Msg ``` format, used by Microsoft Outlook.
equals(Object obj) Equalses the specified o.
hashCode() Serves as a hash function for a particular type.
toString() Returns a String that represents the current Object.

getTnef()

public static MessageFormat getTnef()

Indicates message in ``` Tnef ``` format.

Returns: MessageFormat

getHtml()

public static MessageFormat getHtml()

Indicates message in ``` Html ``` format.

Returns: MessageFormat

getEml()

public static MessageFormat getEml()

Indicates message in ``` Eml ``` format.

Returns: MessageFormat

getEmlx()

public static MessageFormat getEmlx()

Indicates message in ``` Emlx ``` format, used by Apple Mail.

Returns: MessageFormat

getMht()

public static MessageFormat getMht()

Indicates message in ``` Mht ``` format.

Returns: MessageFormat

getMsg()

public static MessageFormat getMsg()

Indicates message in ``` Msg ``` format, used by Microsoft Outlook.

Returns: MessageFormat

equals(Object obj)

public boolean equals(Object obj)

Equalses the specified o.

Parameters:

Parameter Type Description
obj java.lang.Object An object to compare

Returns: boolean - Returns true if objects are an equal, otherwise returns false.

hashCode()

public int hashCode()

Serves as a hash function for a particular type.

Returns: int - A hash code for the current Object.

toString()

public String toString()

Returns a String that represents the current Object.

Returns: java.lang.String - A String that represents the current Object.