com.aspose.email

com.aspose.email

Class MboxrdStorageWriter

All Implemented Interfaces:
com.aspose.email.ms.System.IDisposable
public final class MboxrdStorageWriter
extends MboxStorageWriter

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

Constructor Summary
MboxrdStorageWriter(OutputStream stream, booleanleaveOpen)
MboxrdStorageWriter(String fileName, booleanleaveOpen)
Initializes a new instance of the MboxrdStorageWriter class.
 
Method Summary
void
writeMessage(MailMessage message)
Writes the message to underlying storage stream.
 
Methods inherited from class com.aspose.email.MboxStorageWriter
 
Methods inherited from class java.lang.Object
 

    • Constructor Detail

      • MboxrdStorageWriter

        public MboxrdStorageWriter(OutputStream stream,
                                   boolean leaveOpen)
      • MboxrdStorageWriter

        public MboxrdStorageWriter(String fileName,
                                   boolean leaveOpen)

        Initializes a new instance of the MboxrdStorageWriter class.

        Parameters:
        fileName - Name of the file.
        leaveOpen - if set to true leaves the underlying stream open after disposing.
        Throws:
        IllegalArgumentException - If filename is null or empty.
      • MboxrdStorageWriter

        public MboxrdStorageWriter(String fileName)
    • Method Detail

      • writeMessage

        public void writeMessage(MailMessage message)

        Writes the message to underlying storage stream.

        Specified by:
        writeMessage in class MboxStorageWriter
        Parameters:
        message - The message to write to.