public final class MboxoStorageReader extends MboxStorageReader
Represents mboxo format storage reader, this format is being used by Eudora.
EmptyFromMarkerCR, EmptyFromMarkerCRLF, EmptyFromMarkerLF, FromMarker, MboxoMarker, preferredTextEncoding| Constructor and Description |
|---|
MboxoStorageReader(InputStream stream,
boolean leaveOpen)
Deprecated.
This ctor is obsolete and will be removed soon. Please use ctor with MboxLoadOptions
|
MboxoStorageReader(InputStream stream,
MboxLoadOptions options)
Initializes a new instance of the
MboxoStorageReader class. |
MboxoStorageReader(com.aspose.ms.System.IO.Stream stream,
boolean leaveOpen)
Deprecated.
This ctor is obsolete and will be removed soon. Please use ctor with MboxLoadOptions
|
MboxoStorageReader(com.aspose.ms.System.IO.Stream stream,
MboxLoadOptions options)
Initializes a new instance of the
MboxoStorageReader class. |
MboxoStorageReader(String fileName,
boolean leaveOpen)
Deprecated.
This ctor is obsolete and will be removed soon. Please use ctor with MboxLoadOptions
|
MboxoStorageReader(String fileName,
MboxLoadOptions options)
Initializes a new instance of the
MboxrdStorageReader class. |
| Modifier and Type | Method and Description |
|---|---|
int |
getTotalItemsCount()
Returns the number of messages in a storage.
|
MailMessage |
readNextMessage()
Reads the next message from underlying storage stream.
|
MailMessage |
readNextMessage(String[] fromMarker)
Reads the next message from underlying storage stream.
|
byteArrayStartsFromMarker, close, createReader, createReader, createReader, createReader, createReader, createReader, dispose, dispose, enumerateMessages, getCurrentDataSize, readLine, setCurrentDataSize@Deprecated public MboxoStorageReader(InputStream stream, boolean leaveOpen)
Initializes a new instance of the MboxoStorageReader class.
stream - The stream.leaveOpen - if set to true leaves the underlying stream open after disposing.com.aspose.ms.System.ArgumentNullException - If given stream is null.@Deprecated public MboxoStorageReader(com.aspose.ms.System.IO.Stream stream, boolean leaveOpen)
Initializes a new instance of the MboxoStorageReader class.
stream - The stream.leaveOpen - if set to true leaves the underlying stream open after disposing.com.aspose.ms.System.ArgumentNullException - If given stream is null.@Deprecated public MboxoStorageReader(String fileName, boolean leaveOpen)
Initializes a new instance of the MboxrdStorageReader class.
fileName - Name of the file.leaveOpen - if set to true leaves the underlying stream open after disposing.com.aspose.ms.System.ArgumentNullException - If filename is null or empty.public MboxoStorageReader(InputStream stream, MboxLoadOptions options)
Initializes a new instance of the MboxoStorageReader class.
stream - The stream.options - additional options when loading a Mbox storageMboxLoadOptions.com.aspose.ms.System.ArgumentNullException - If given stream is null.public MboxoStorageReader(com.aspose.ms.System.IO.Stream stream,
MboxLoadOptions options)
Initializes a new instance of the MboxoStorageReader class.
stream - The stream.options - additional options when loading a Mbox storageMboxLoadOptions.com.aspose.ms.System.ArgumentNullException - If given stream is null.public MboxoStorageReader(String fileName, MboxLoadOptions options)
Initializes a new instance of the MboxrdStorageReader class.
fileName - Name of the file.options - additional options when loading a Mbox storageMboxLoadOptions.com.aspose.ms.System.ArgumentNullException - If filename is null or empty.public int getTotalItemsCount()
Returns the number of messages in a storage.
getTotalItemsCount in class MboxStorageReaderpublic MailMessage readNextMessage()
Reads the next message from underlying storage stream.
readNextMessage in class MboxStorageReaderMailMessage object if it can be read or <b>null</b> if no more messages are available.public MailMessage readNextMessage(String[] fromMarker)
Reads the next message from underlying storage stream.
readNextMessage in class MboxStorageReaderfromMarker - Gets the From Marker while parsing the MBox Storage file.MailMessage object if it can be read or <b>null</b> if no more messages are available.Copyright (c) 2008-2021 Aspose Pty Ltd. All Rights Reserved.