com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class MboxrdStorageWriter

  • All Implemented Interfaces:
    com.aspose.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 Detail

      • MboxrdStorageWriter

        public MboxrdStorageWriter(OutputStream stream,
                           boolean leaveOpen)

        Initializes a new instance of the MboxrdStorageWriter class.

        Parameters:
        stream - The stream.
        leaveOpen - if set to true leaves the underlying stream open after disposing.
        Throws:
        ArgumentNullException - If given stream is null.
      • 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:
        ArgumentNullException - If filename is null or empty.
      • MboxrdStorageWriter

        public MboxrdStorageWriter(String fileName)

        Constructor for MboxrdStorageWriter.

        Parameters:
        fileName - a String object.
    • Method Detail

      • writeMessage

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

        Writes the message to underlying storage stream.

        Specified by:
        writeMessage in class MboxStorageWriter
        Parameters:
        message - The message to write to.
        fromMarker - Gets the From Marker while writing the MBox Storage file.
      • 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.

Copyright (c) 2008-2019 Aspose Pty Ltd. All Rights Reserved.