public abstract class MboxStorageReader extends Object implements com.aspose.email.ms.System.IDisposable
A base class for any mbox-based mail storage reader.
Constructor and Description |
---|
MboxStorageReader(InputStream stream,
boolean leaveOpen) |
MboxStorageReader(String fileName,
boolean leaveOpen)
Initializes a new instance of the
MboxStorageReader class. |
Modifier and Type | Method and Description |
---|---|
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.
|
public MboxStorageReader(InputStream stream, boolean leaveOpen)
public MboxStorageReader(String fileName, boolean leaveOpen)
Initializes a new instance of the MboxStorageReader
class.
fileName
- Name of the file.leaveOpen
- if set to true
leaves the underlying stream open after disposing.com.aspose.email.ms.System.IllegalArgumentException
- If filename is null or empty.public InputStream getBaseStream()
public abstract MailMessage readNextMessage()
Reads the next message from underlying storage stream.
MailMessage
object if it can be read or null if no more messages are available.public void dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
dispose
in interface com.aspose.email.ms.System.IDisposable
Copyright (c) 2008-2013 Aspose Pty Ltd. All Rights Reserved.