com.aspose.email
Class MboxStorageWriter

java.lang.Object
  extended by com.aspose.email.MboxStorageWriter
All Implemented Interfaces:
com.aspose.ms.System.IDisposable
Direct Known Subclasses:
MboxrdStorageWriter

public abstract class MboxStorageWriter
extends Object
implements com.aspose.ms.System.IDisposable

A base class for any mbox-based mail storage writer.


Constructor Summary
MboxStorageWriter(OutputStream stream, boolean leaveOpen)
           
 
Method Summary
 void dispose()
           Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
 void flush()
           
 InputStream getBaseStream()
           
abstract  void writeMessage(MailMessage message)
           Writes the message to underlying storage stream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MboxStorageWriter

public MboxStorageWriter(OutputStream stream,
                         boolean leaveOpen)
Method Detail

getBaseStream

public InputStream getBaseStream()

writeMessage

public abstract void writeMessage(MailMessage message)

Writes the message to underlying storage stream.

Parameters:
message - The message to write to.

dispose

public void dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Specified by:
dispose in interface com.aspose.ms.System.IDisposable

flush

public void flush()


Copyright (c) 2002-2011 Aspose Pty Ltd. All Rights Reserved.