com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class MailStorageConverter



  • public class MailStorageConverter
    extends Object

    Mail storage converter provides services for storage conversion operations.

    • Constructor Detail

      • MailStorageConverter

        public MailStorageConverter()
    • Method Detail

      • mboxToPst

        public static PersonalStorage mboxToPst(String mboxFileName,
                                String pstFileName)

        Converts an mboxrd message store to PST.

        Parameters:
        mboxFileName - Name of the mbox file.
        pstFileName - 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:
        Personal storage object that represents the converted storage.
        Throws:
        com.aspose.ms.System.ArgumentNullException - If mboxFileName is null.
      • mboxToPst

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

        Converts an mboxrd message store to PST.

        Parameters:
        mboxFileName - Name of the mbox file.
        pstFileName - Name of the PST file.
        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:
        Personal storage object that represents the converted storage.
        Throws:
        com.aspose.ms.System.ArgumentNullException - If mboxFileName is null.
      • mboxToPst

        public static PersonalStorage mboxToPst(InputStream mboxrdDataStream,
                                String pstFileName)

        Converts an mboxrd message store to PST.

        Parameters:
        mboxrdDataStream - The mboxrd data stream.
        pstFileName - Name of the PST file.
        Returns:
        Personal storage object that represents the converted storage.
        Throws:
        com.aspose.ms.System.ArgumentNullException - If mboxrdDataStream is null.
        com.aspose.ms.System.ArgumentNullException - If pstFileName is null or empty.
      • mboxToPst

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

        Converts an mboxrd message store to PST.

        Parameters:
        mboxrdDataStream - The mboxrd data stream.
        pstFileName - Name of the PST file.
        mailHandler - The delegate called on each message
        Returns:
        Personal storage object that represents the converted storage.
        Throws:
        com.aspose.ms.System.ArgumentNullException - If mboxrdDataStream is null.
        com.aspose.ms.System.ArgumentNullException - If pstFileName is null or empty.