com.aspose.email
Class MboxStorageReader

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

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

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


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

Constructor Detail

MboxStorageReader

public MboxStorageReader(InputStream stream,
                         boolean leaveOpen)
Method Detail

getBaseStream

public InputStream getBaseStream()

readNextMessage

public abstract MailMessage readNextMessage()

Reads the next message from underlying storage stream.

Returns:
A MailMessage object if it can be read or <b>null</b> if no more messages are available.

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


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