MboxrdStorageReader

Inheritance: java.lang.Object, com.aspose.email.MboxStorageReader

public final class MboxrdStorageReader extends MboxStorageReader

Represents mboxrd format storage reader, this format is being used by Thunderbird and other mail clients.

Constructors

ConstructorDescription
MboxrdStorageReader(InputStream stream, boolean leaveOpen)Initializes a new instance of the MboxrdStorageReader class.
MboxrdStorageReader(System.IO.Stream stream, boolean leaveOpen)Initializes a new instance of the MboxrdStorageReader class.
MboxrdStorageReader(String fileName, boolean leaveOpen)Initializes a new instance of the MboxrdStorageReader class.
MboxrdStorageReader(InputStream stream, MboxLoadOptions options)Initializes a new instance of the MboxrdStorageReader class.
MboxrdStorageReader(System.IO.Stream stream, MboxLoadOptions options)Initializes a new instance of the MboxrdStorageReader class.
MboxrdStorageReader(String fileName, MboxLoadOptions options)Initializes a new instance of the MboxrdStorageReader class.

Methods

MethodDescription
close()
createReader(System.IO.Stream stream, boolean leaveOpen)Creates the instance of reader.
createReader(System.IO.Stream stream, MboxLoadOptions options)Creates the instance of reader.
createReader(InputStream stream, boolean leaveOpen)Creates the instance of reader.
createReader(InputStream stream, MboxLoadOptions options)Creates the instance of reader.
createReader(String fileName, boolean leaveOpen)Creates the instance of reader.
createReader(String fileName, MboxLoadOptions options)Creates the instance of reader.
dispose()Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
enumerateMessages()Exposes the enumerator, which supports an iteration of messages in storage.
enumerateMessages(EmlLoadOptions options)Exposes the enumerator, which supports an iteration of messages in storage.
equals(Object arg0)
getClass()
getCurrentDataSize()Gets the number of bytes that is read by ReadNextMessage method.
getTotalItemsCount()Returns the number of messages in a storage.
hashCode()
notify()
notifyAll()
readNextMessage()Reads the next message from underlying storage stream.
readNextMessage(EmlLoadOptions options)Reads the next message from underlying storage stream.
readNextMessage(String[] fromMarker)Reads the next message from underlying storage stream.
readNextMessage(String[] fromMarker, EmlLoadOptions options)Reads the next message from underlying storage stream.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

MboxrdStorageReader(InputStream stream, boolean leaveOpen)

public MboxrdStorageReader(InputStream stream, boolean leaveOpen)

Initializes a new instance of the MboxrdStorageReader class.

Parameters:

ParameterTypeDescription
streamjava.io.InputStreamThe stream.
leaveOpenbooleanif set to true leaves the underlying stream open after disposing.

MboxrdStorageReader(System.IO.Stream stream, boolean leaveOpen)

public MboxrdStorageReader(System.IO.Stream stream, boolean leaveOpen)

Initializes a new instance of the MboxrdStorageReader class.

Parameters:

ParameterTypeDescription
streamcom.aspose.ms.System.IO.StreamThe stream.
leaveOpenbooleanif set to true leaves the underlying stream open after disposing.

MboxrdStorageReader(String fileName, boolean leaveOpen)

public MboxrdStorageReader(String fileName, boolean leaveOpen)

Initializes a new instance of the MboxrdStorageReader class.

Parameters:

ParameterTypeDescription
fileNamejava.lang.StringName of the file.
leaveOpenbooleanif set to true leaves the underlying stream open after disposing.

MboxrdStorageReader(InputStream stream, MboxLoadOptions options)

public MboxrdStorageReader(InputStream stream, MboxLoadOptions options)

Initializes a new instance of the MboxrdStorageReader class.

Parameters:

ParameterTypeDescription
streamjava.io.InputStreamThe stream.
optionsMboxLoadOptionsadditional options when loading a Mbox storageMboxLoadOptions.

MboxrdStorageReader(System.IO.Stream stream, MboxLoadOptions options)

public MboxrdStorageReader(System.IO.Stream stream, MboxLoadOptions options)

Initializes a new instance of the MboxrdStorageReader class.

Parameters:

ParameterTypeDescription
streamcom.aspose.ms.System.IO.StreamThe stream.
optionsMboxLoadOptionsadditional options when loading a Mbox storageMboxLoadOptions.

MboxrdStorageReader(String fileName, MboxLoadOptions options)

public MboxrdStorageReader(String fileName, MboxLoadOptions options)

Initializes a new instance of the MboxrdStorageReader class.

Parameters:

ParameterTypeDescription
fileNamejava.lang.StringName of the file.
optionsMboxLoadOptionsadditional options when loading a Mbox storageMboxLoadOptions.

close()

public void close()

createReader(System.IO.Stream stream, boolean leaveOpen)

public static MboxStorageReader createReader(System.IO.Stream stream, boolean leaveOpen)

Creates the instance of reader.

Parameters:

ParameterTypeDescription
streamcom.aspose.ms.System.IO.StreamThe stream.
leaveOpenbooleanif set to true leaves the underlying stream open after disposing.

Returns: MboxStorageReader -

createReader(System.IO.Stream stream, MboxLoadOptions options)

public static MboxStorageReader createReader(System.IO.Stream stream, MboxLoadOptions options)

Creates the instance of reader.

Parameters:

ParameterTypeDescription
streamcom.aspose.ms.System.IO.StreamThe stream.
optionsMboxLoadOptionsadditional options when loading a Mbox storageMboxLoadOptions.

Returns: MboxStorageReader -

createReader(InputStream stream, boolean leaveOpen)

public static MboxStorageReader createReader(InputStream stream, boolean leaveOpen)

Creates the instance of reader.

Parameters:

ParameterTypeDescription
streamjava.io.InputStreamThe stream.
leaveOpenbooleanif set to true leaves the underlying stream open after disposing.

Returns: MboxStorageReader -

createReader(InputStream stream, MboxLoadOptions options)

public static MboxStorageReader createReader(InputStream stream, MboxLoadOptions options)

Creates the instance of reader.

Parameters:

ParameterTypeDescription
streamjava.io.InputStreamThe stream.
optionsMboxLoadOptionsadditional options when loading a Mbox storageMboxLoadOptions.

Returns: MboxStorageReader -

createReader(String fileName, boolean leaveOpen)

public static MboxStorageReader createReader(String fileName, boolean leaveOpen)

Creates the instance of reader.

Parameters:

ParameterTypeDescription
fileNamejava.lang.String
leaveOpenboolean

Returns: MboxStorageReader -

createReader(String fileName, MboxLoadOptions options)

public static MboxStorageReader createReader(String fileName, MboxLoadOptions options)

Creates the instance of reader.

Parameters:

ParameterTypeDescription
fileNamejava.lang.String
optionsMboxLoadOptionsadditional options when loading a Mbox storageMboxLoadOptions.

Returns: MboxStorageReader -

dispose()

public final void dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

enumerateMessages()

public final System.Collections.Generic.IGenericEnumerable<MailMessage> enumerateMessages()

Exposes the enumerator, which supports an iteration of messages in storage.

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.email.MailMessage> - System.Collections.Generic.IEnumerableltTgt , that represents an enumerator that iterates through a messages in storage.

enumerateMessages(EmlLoadOptions options)

public final System.Collections.Generic.IGenericEnumerable<MailMessage> enumerateMessages(EmlLoadOptions options)

Exposes the enumerator, which supports an iteration of messages in storage.

Parameters:

ParameterTypeDescription
optionsEmlLoadOptionsSpecifies EmlLoadOptions when reading message from Mbox storage.

Returns: com.aspose.ms.System.Collections.Generic.IGenericEnumerable<com.aspose.email.MailMessage> - System.Collections.Generic.IEnumerableltTgt , that represents an enumerator that iterates through a messages in storage.

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

getCurrentDataSize()

public final long getCurrentDataSize()

Gets the number of bytes that is read by ReadNextMessage method.

Returns: long

getTotalItemsCount()

public int getTotalItemsCount()

Returns the number of messages in a storage.

Returns: int - Returns the number of messages in a storage.

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

readNextMessage()

public MailMessage readNextMessage()

Reads the next message from underlying storage stream.

Returns: MailMessage - A MailMessage object if it can be read or null if no more messages are available.

readNextMessage(EmlLoadOptions options)

public MailMessage readNextMessage(EmlLoadOptions options)

Reads the next message from underlying storage stream.

Parameters:

ParameterTypeDescription
optionsEmlLoadOptionsSpecifies EmlLoadOptions when reading message from Mbox storage.

Returns: MailMessage - A MailMessage object if it can be read or null if no more messages are available.

readNextMessage(String[] fromMarker)

public MailMessage readNextMessage(String[] fromMarker)

Reads the next message from underlying storage stream.

Parameters:

ParameterTypeDescription
fromMarkerjava.lang.String[]Gets the From Marker while parsing the MBox Storage file.

Returns: MailMessage - A MailMessage object if it can be read or null if no more messages are available.

readNextMessage(String[] fromMarker, EmlLoadOptions options)

public MailMessage readNextMessage(String[] fromMarker, EmlLoadOptions options)

Reads the next message from underlying storage stream.

Parameters:

ParameterTypeDescription
fromMarkerjava.lang.String[]Gets the From Marker while parsing the MBox Storage file.
optionsEmlLoadOptionsSpecifies EmlLoadOptions when reading message from Mbox storage.

Returns: MailMessage - A MailMessage object if it can be read or null if no more messages are available.

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