EmailFormats

Inheritance: java.lang.Object

All Implemented Interfaces: com.groupdocs.editor.formats.IDocumentFormat

public class EmailFormats implements IDocumentFormat

Encapsulates all emails formats. Includes the following file types: Tnef, Eml, Emlx, Msg, Html, Mhtml.


Learn more about emails format here.

Constructors

Constructor Description
EmailFormats()

Fields

Field Description
Tnef Transport Neutral Encapsulation Format (TNEF) is a Microsoft proprietary, for encapsulating email attachments based on Messaging Application Programming Interface (MAPI).
Eml EML file format represents email messages saved using Outlook and other relevant applications.
Emlx The EMLX file format is implemented and developed by Apple.
Msg MSG is a file format used by Microsoft Outlook and Exchange to store email messages, contact, appointment, or other tasks.
Html HTML formatted emails.
Mhtml MHTML, an initialism of “MIME encapsulation of aggregate HTML documents”
Ics The Internet Calendaring and Scheduling Core Object Specification (iCalendar) is an internet standard (RFC 2445) for exchanging and deploying the calendaring events and scheduling.
Vcf VCF (Virtual Card Format) or vCard is a digital file format for storing contact information.
Pst Files with .pst extension represent Outlook Personal Storage Files (also called Personal Storage Table) that store variety of user information.
Mbox MBox file format is a generic term that represents a container for collection of electronic mail messages.
Oft Files with .oft extension are template files that are created using Microsoft Outlook.
Ost Offline Storage Table (OST) file represents user\u2019s mailbox data in offline mode on local machine upon registration with Exchange Server using Microsoft Outlook.
All Returns an internal class, that provides enumerable possibilities over all existing email formats

Methods

Method Description
getName() In implementing type should return full formal format name
getExtension() In implementing type should return format file extension (without leading dot character).
getMime() In implementing type should return a MIME-code for the given format
op_Equality(EmailFormats first, EmailFormats second) Checks two given Email instances on equality
op_Inequality(EmailFormats first, EmailFormats second) Checks two given Email instances on inequality
equals(EmailFormats other) Determines whether this instance is equal to the other specified Email instance
equals(IDocumentFormat other) Determines whether this instance is equal to the other specified IDocumentFormat instance
equals(Object obj) Determines whether this instance is equal to the other specified object, that is presumably of boxed Email
hashCode() Returns a hash-code, that is immutable for this instance
fromExtension(String extension) Returns instance of EmailFormats structure, associated to specified filename extension, or throws an exception, if extension cannot be properly parsed
toString() Returns a format name of this format

EmailFormats()

public EmailFormats()

Tnef

public static final EmailFormats Tnef

Transport Neutral Encapsulation Format (TNEF) is a Microsoft proprietary, for encapsulating email attachments based on Messaging Application Programming Interface (MAPI). Learn more about this file format here .

Eml

public static final EmailFormats Eml

EML file format represents email messages saved using Outlook and other relevant applications. Learn more about this file format here .

Emlx

public static final EmailFormats Emlx

The EMLX file format is implemented and developed by Apple. The Apple Mail application uses the EMLX file format for exporting the emails. Learn more about this file format here .

Msg

public static final EmailFormats Msg

MSG is a file format used by Microsoft Outlook and Exchange to store email messages, contact, appointment, or other tasks. Learn more about this file format here .

Html

public static final EmailFormats Html

HTML formatted emails.

Mhtml

public static final EmailFormats Mhtml

MHTML, an initialism of “MIME encapsulation of aggregate HTML documents”

Ics

public static final EmailFormats Ics

The Internet Calendaring and Scheduling Core Object Specification (iCalendar) is an internet standard (RFC 2445) for exchanging and deploying the calendaring events and scheduling. Learn more about this file format here .

Vcf

public static final EmailFormats Vcf

VCF (Virtual Card Format) or vCard is a digital file format for storing contact information. Learn more about this file format here .

Pst

public static final EmailFormats Pst

Files with .pst extension represent Outlook Personal Storage Files (also called Personal Storage Table) that store variety of user information. Learn more about this file format here .

Mbox

public static final EmailFormats Mbox

MBox file format is a generic term that represents a container for collection of electronic mail messages. Learn more about this file format here .

Oft

public static final EmailFormats Oft

Files with .oft extension are template files that are created using Microsoft Outlook. Learn more about this file format here .

Ost

public static final EmailFormats Ost

Offline Storage Table (OST) file represents user\u2019s mailbox data in offline mode on local machine upon registration with Exchange Server using Microsoft Outlook. Learn more about this file format here .

All

public static final EmailFormats.AllEnumerable All

Returns an internal class, that provides enumerable possibilities over all existing email formats

getName()

public final String getName()

In implementing type should return full formal format name

Returns: java.lang.String

getExtension()

public final String getExtension()

In implementing type should return format file extension (without leading dot character).

Returns: java.lang.String

getMime()

public final String getMime()

In implementing type should return a MIME-code for the given format

Returns: java.lang.String

op_Equality(EmailFormats first, EmailFormats second)

public static boolean op_Equality(EmailFormats first, EmailFormats second)

Checks two given Email instances on equality

Parameters:

Parameter Type Description
first EmailFormats First Email instance to check
second EmailFormats Second Email instance to check

Returns: boolean - True if are equal, false if are unequal

op_Inequality(EmailFormats first, EmailFormats second)

public static boolean op_Inequality(EmailFormats first, EmailFormats second)

Checks two given Email instances on inequality

Parameters:

Parameter Type Description
first EmailFormats First Email instance to check
second EmailFormats Second Email instance to check

Returns: boolean - True if are not equal, false if are equal

equals(EmailFormats other)

public final boolean equals(EmailFormats other)

Determines whether this instance is equal to the other specified Email instance

Parameters:

Parameter Type Description
other EmailFormats Other Email instance, that should be checked on equality with this

Returns: boolean - True if are equal, false if are unequal

equals(IDocumentFormat other)

public final boolean equals(IDocumentFormat other)

Determines whether this instance is equal to the other specified IDocumentFormat instance

Parameters:

Parameter Type Description
other IDocumentFormat Other IDocumentFormat instance. If it is not a Email, method will return ‘false’

Returns: boolean - True if are equal, false if are unequal

equals(Object obj)

public boolean equals(Object obj)

Determines whether this instance is equal to the other specified object, that is presumably of boxed Email

Parameters:

Parameter Type Description
obj java.lang.Object Other boxed Email instance

Returns: boolean - True if are equal, false if are unequal

hashCode()

public int hashCode()

Returns a hash-code, that is immutable for this instance

Returns: int - Signed 4-byte integer

fromExtension(String extension)

public static EmailFormats fromExtension(String extension)

Returns instance of EmailFormats structure, associated to specified filename extension, or throws an exception, if extension cannot be properly parsed

Parameters:

Parameter Type Description
extension java.lang.String Filename extension of any supportable Email format, with or without leading dot character, case-independent. Cannot be NULL or empty, should be valid.

Returns: EmailFormats - Instance of EmailFormats structure on success or thrown exception on failure

toString()

public String toString()

Returns a format name of this format

Returns: java.lang.String - A String that represents this instance.