MailboxConverter

Inheritance: java.lang.Object

public class MailboxConverter

Provides mailbox conversion routines.

Constructors

ConstructorDescription
MailboxConverter()

Methods

MethodDescription
convertPersonalStorageToMbox(PersonalStorage personalStorage, MboxStorageWriter mboxStorageWriter, MessageAcceptanceCallback acceptanceCallback)Converts the PersonalStorage to mbox format using given MboxStorageWriter.
convertPersonalStorageToMbox(PersonalStorage personalStorage, String storagePath, MessageAcceptanceCallback acceptanceCallback)Converts the PersonalStorage to mbox format using given path.
equals(Object arg0)
getClass()
hashCode()
notify()
notifyAll()
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

MailboxConverter()

public MailboxConverter()

convertPersonalStorageToMbox(PersonalStorage personalStorage, MboxStorageWriter mboxStorageWriter, MessageAcceptanceCallback acceptanceCallback)

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

Converts the PersonalStorage to mbox format using given MboxStorageWriter.

Parameters:

ParameterTypeDescription
personalStoragePersonalStorageThe personal storage.
mboxStorageWriterMboxStorageWriterThe mbox storage writer.
acceptanceCallbackMessageAcceptanceCallbackThe 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. |

convertPersonalStorageToMbox(PersonalStorage personalStorage, String storagePath, MessageAcceptanceCallback acceptanceCallback)

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

Converts the PersonalStorage to mbox format using given path.

Parameters:

ParameterTypeDescription
personalStoragePersonalStorageThe personal storage.
storagePathjava.lang.StringThe path to save personalStorage structure to.
acceptanceCallbackMessageAcceptanceCallbackThe acceptance callback, can be null.

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

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int