MailStorageConverter

Inheritance: java.lang.Object

public class MailStorageConverter

Mail storage converter provides services for storage conversion operations.

Constructors

Constructor Description
MailStorageConverter()

Methods

Method Description
getMboxMessageOptions() Gets or sets email load options when parsing an Mbox storage.
setMboxMessageOptions(EmlLoadOptions value) Gets or sets email load options when parsing an Mbox storage.
mboxToPst(String mboxFileName, String pstFileName) Converts an mboxrd message store to PST.
mboxToPst(String mboxFileName, String pstFileName, MailStorageConverter.MailHandler mailHandler) Converts an mboxrd message store to PST.
mboxToPst(InputStream mboxrdDataStream, String pstFileName) Converts an mboxrd message store to PST.
mboxToPst(InputStream mboxrdDataStream, String pstFileName, MailStorageConverter.MailHandler mailHandler) Converts an mboxrd message store to PST.

MailStorageConverter()

public MailStorageConverter()

getMboxMessageOptions()

public static EmlLoadOptions getMboxMessageOptions()

Gets or sets email load options when parsing an Mbox storage.

Value: The EmlLoadOptions that specifies load options.

Returns: EmlLoadOptions

setMboxMessageOptions(EmlLoadOptions value)

public static void setMboxMessageOptions(EmlLoadOptions value)

Gets or sets email load options when parsing an Mbox storage.

Value: The EmlLoadOptions that specifies load options.

Parameters:

Parameter Type Description
value EmlLoadOptions

mboxToPst(String mboxFileName, String pstFileName)

public static PersonalStorage mboxToPst(String mboxFileName, String pstFileName)

Converts an mboxrd message store to PST.

Parameters:

Parameter Type Description
mboxFileName java.lang.String Name of the mbox file.
pstFileName java.lang.String Name of the PST file.

In addition the same set of exceptions can be thrown as for FileStream creation using the open/read, create/write mode. |

Returns: PersonalStorage - Personal storage object that represents the converted storage.

mboxToPst(String mboxFileName, String pstFileName, MailStorageConverter.MailHandler mailHandler)

public static PersonalStorage mboxToPst(String mboxFileName, String pstFileName, MailStorageConverter.MailHandler mailHandler)

Converts an mboxrd message store to PST.

Parameters:

Parameter Type Description
mboxFileName java.lang.String Name of the mbox file.
pstFileName java.lang.String Name of the PST file.
mailHandler MailHandler The delegate called on each message

In addition the same set of exceptions can be thrown as for FileStream creation using the open/read, create/write mode. |

Returns: PersonalStorage - Personal storage object that represents the converted storage.

mboxToPst(InputStream mboxrdDataStream, String pstFileName)

public static PersonalStorage mboxToPst(InputStream mboxrdDataStream, String pstFileName)

Converts an mboxrd message store to PST.

Parameters:

Parameter Type Description
mboxrdDataStream java.io.InputStream The mboxrd data stream.
pstFileName java.lang.String Name of the PST file.

Returns: PersonalStorage - Personal storage object that represents the converted storage.

mboxToPst(InputStream mboxrdDataStream, String pstFileName, MailStorageConverter.MailHandler mailHandler)

public static PersonalStorage mboxToPst(InputStream mboxrdDataStream, String pstFileName, MailStorageConverter.MailHandler mailHandler)

Converts an mboxrd message store to PST.

Parameters:

Parameter Type Description
mboxrdDataStream java.io.InputStream The mboxrd data stream.
pstFileName java.lang.String Name of the PST file.
mailHandler MailHandler The delegate called on each message

Returns: PersonalStorage - Personal storage object that represents the converted storage.