com.aspose.email
Class MailboxConverter

java.lang.Object
  extended by com.aspose.email.MailboxConverter

public class MailboxConverter
extends Object

Provides mailbox conversion routines.


Constructor Summary
MailboxConverter()
           
 
Method Summary
static void convertPersonalStorageToMbox(PersonalStorage personalStorage, MboxStorageWriter mboxStorageWriter, MessageAcceptanceCallback acceptanceCallback)
           Converts the PersonalStorage to mbox format using given MboxStorageWriter.
static void convertPersonalStorageToMbox(PersonalStorage personalStorage, String storagePath, MessageAcceptanceCallback acceptanceCallback)
           Converts the PersonalStorage to mbox format using given path.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailboxConverter

public MailboxConverter()
Method Detail

convertPersonalStorageToMbox

public static void convertPersonalStorageToMbox(PersonalStorage personalStorage,
                                                String storagePath,
                                                MessageAcceptanceCallback acceptanceCallback)

Converts the PersonalStorage to mbox format using given path.

Parameters:
personalStorage - The personal storage.
storagePath - The path to save personalStorage structure to.
acceptanceCallback - The acceptance callback, can be null.


Resulting folder will contain an exact copy of the personalStorage e.g. directory tree will be recreated on disk.

Throws:
com.aspose.email.ms.System.IllegalArgumentException - If personalStorage is null.
com.aspose.email.ms.System.IllegalArgumentException - If storagePath is null.

convertPersonalStorageToMbox

public static void convertPersonalStorageToMbox(PersonalStorage personalStorage,
                                                MboxStorageWriter mboxStorageWriter,
                                                MessageAcceptanceCallback acceptanceCallback)

Converts the PersonalStorage to mbox format using given MboxStorageWriter.

Parameters:
personalStorage - The personal storage.
mboxStorageWriter - The mbox storage writer.
acceptanceCallback - The acceptance callback, can be null.


Resulting mbox storage will contain only one plain inbox folder with all messages, if you have to preserve the original structure of the storage, use XXX_method instead.

Throws:
com.aspose.email.ms.System.IllegalArgumentException - If personalStorage is null.
com.aspose.email.ms.System.IllegalArgumentException - If mboxStorageWriter is null.


Copyright (c) 2008-2012 Aspose Pty Ltd. All Rights Reserved.