public final class MboxrdStorageWriter extends MboxStorageWriter
Represents mboxrd format storage writer, this format is being used by Thunderbird and other mail clients.
| Constructor and Description |
|---|
MboxrdStorageWriter(OutputStream stream,
boolean leaveOpen)
Initializes a new instance of the
MboxrdStorageWriter class. |
MboxrdStorageWriter(com.aspose.ms.System.IO.Stream stream,
boolean leaveOpen)
Initializes a new instance of the
MboxrdStorageWriter class. |
MboxrdStorageWriter(String fileName)
Constructor for MboxrdStorageWriter.
|
MboxrdStorageWriter(String fileName,
boolean leaveOpen)
Initializes a new instance of the
MboxrdStorageWriter class. |
| Modifier and Type | Method and Description |
|---|---|
void |
writeMessage(MailMessage message)
Writes the message to underlying storage stream.
|
void |
writeMessage(MailMessage message,
String[] fromMarker)
Writes the message to underlying storage stream.
|
close, dispose, dispose, flush, getBaseStreampublic MboxrdStorageWriter(OutputStream stream, boolean leaveOpen)
Initializes a new instance of the MboxrdStorageWriter class.
stream - The stream.leaveOpen - if set to true leaves the underlying stream open after disposing.ArgumentNullException - If given stream is null.public MboxrdStorageWriter(com.aspose.ms.System.IO.Stream stream,
boolean leaveOpen)
Initializes a new instance of the MboxrdStorageWriter class.
stream - The stream.leaveOpen - if set to true leaves the underlying stream open after disposing.ArgumentNullException - If given stream is null.public MboxrdStorageWriter(String fileName, boolean leaveOpen)
Initializes a new instance of the MboxrdStorageWriter class.
fileName - Name of the file.leaveOpen - if set to true leaves the underlying stream open after disposing.ArgumentNullException - If filename is null or empty.public void writeMessage(MailMessage message, String[] fromMarker)
Writes the message to underlying storage stream.
writeMessage in class MboxStorageWritermessage - The message to write to.fromMarker - Gets the From Marker while writing the MBox Storage file.public void writeMessage(MailMessage message)
Writes the message to underlying storage stream.
writeMessage in class MboxStorageWritermessage - The message to write to.Copyright (c) 2008-2021 Aspose Pty Ltd. All Rights Reserved.