com.aspose.email
Class MboxrdStorageWriter

java.lang.Object
  extended by com.aspose.email.MboxStorageWriter
      extended by com.aspose.email.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, boolean leaveOpen)
           
MboxrdStorageWriter(String fileName)
           
MboxrdStorageWriter(String fileName, boolean leaveOpen)
           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
dispose, flush, getBaseStream
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.


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