MboxrdStorageWriter

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

public final class MboxrdStorageWriter extends MboxStorageWriter

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

Constructors

Constructor Description
MboxrdStorageWriter(OutputStream stream, boolean leaveOpen) Initializes a new instance of the MboxrdStorageWriter class.
MboxrdStorageWriter(System.IO.Stream stream, boolean leaveOpen) Initializes a new instance of the MboxrdStorageWriter class.
MboxrdStorageWriter(String fileName, boolean leaveOpen) Initializes a new instance of the MboxrdStorageWriter class.
MboxrdStorageWriter(String fileName) Constructor for MboxrdStorageWriter.

Methods

Method Description
writeMessage(MailMessage message, String[] fromMarker) Writes the message to underlying storage stream.
writeMessage(MailMessage message) Writes the message to underlying storage stream.

MboxrdStorageWriter(OutputStream stream, boolean leaveOpen)

public MboxrdStorageWriter(OutputStream stream, boolean leaveOpen)

Initializes a new instance of the MboxrdStorageWriter class.

Parameters:

Parameter Type Description
stream java.io.OutputStream The stream.
leaveOpen boolean if set to ``` true ``` leaves the underlying stream open after disposing.

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

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

Initializes a new instance of the MboxrdStorageWriter class.

Parameters:

Parameter Type Description
stream com.aspose.ms.System.IO.Stream The stream.
leaveOpen boolean if set to ``` true ``` leaves the underlying stream open after disposing.

MboxrdStorageWriter(String fileName, boolean leaveOpen)

public MboxrdStorageWriter(String fileName, boolean leaveOpen)

Initializes a new instance of the MboxrdStorageWriter class.

Parameters:

Parameter Type Description
fileName java.lang.String Name of the file.
leaveOpen boolean if set to ``` true ``` leaves the underlying stream open after disposing.

MboxrdStorageWriter(String fileName)

public MboxrdStorageWriter(String fileName)

Constructor for MboxrdStorageWriter.

Parameters:

Parameter Type Description
fileName java.lang.String a java.lang.String object.

writeMessage(MailMessage message, String[] fromMarker)

public void writeMessage(MailMessage message, String[] fromMarker)

Writes the message to underlying storage stream.

Parameters:

Parameter Type Description
message MailMessage The message to write to.
fromMarker java.lang.String[] Gets the From Marker while writing the MBox Storage file.

writeMessage(MailMessage message)

public void writeMessage(MailMessage message)

Writes the message to underlying storage stream.

Parameters:

Parameter Type Description
message MailMessage The message to write to.