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,
MboxLoadOptions options)
Initializes a new instance of the
MboxoStorageReader class. |
MboxoStorageReader(Stream stream,
MboxLoadOptions options)
Initializes a new instance of the
MboxoStorageReader class. |
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.
|
MboxMessageInfo |
nextMessage()
Gets the next message info.
|
MailMessage |
readNextMessage()
Reads the next message from underlying storage stream.
|
MailMessage |
readNextMessage(EmlLoadOptions options)
Reads the next message from underlying storage stream.
|
MailMessage |
readNextMessage(String[] fromMarker)
Reads the next message from underlying storage stream.
|
MailMessage |
readNextMessage(String[] fromMarker,
EmlLoadOptions options)
Reads the next message from underlying storage stream.
|
byteArrayStartsFromMarker, cancel, close, containsAsctime, createReader, createReader, createReader, dispose, dispose, enumerateMessageInfo, enumerateMessages, enumerateMessages, extractMessage, getCurrentDataSize, getEmlCopiedEventHandler, getEmlCopyingEventHandler, getMboxFileCreatedEventHandler, getMboxFileFilledEventHandler, readLine, setCurrentDataSize, setEmlCopiedEventHandler, setEmlCopyingEventHandler, setMboxFileCreatedEventHandler, setMboxFileFilledEventHandler, splitInto, splitIntopublic MboxoStorageReader(InputStream stream, MboxLoadOptions options)
Initializes a new instance of the MboxoStorageReader class.
stream - The stream.options - additional options when loading a Mbox storageMboxLoadOptions.ArgumentNullException - If given stream is null.public MboxoStorageReader(Stream stream,
MboxLoadOptions options)
Initializes a new instance of the MboxoStorageReader class.
stream - The stream.options - additional options when loading a Mbox storageMboxLoadOptions.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.ArgumentNullException - If filename is null or empty.public MailMessage readNextMessage(String[] fromMarker, EmlLoadOptions options)
Reads the next message from underlying storage stream.
readNextMessage in class MboxStorageReaderfromMarker - Gets the From Marker while parsing the MBox Storage file.options - Specifies EmlLoadOptions when reading message from Mbox storage.MailMessage object if it can be read or <b>null</b> if no more messages are available.public MboxMessageInfo nextMessage()
Gets the next message info.
nextMessage in class MboxStorageReaderMboxMessageInfo object if it can be read or <b>null</b> if no more messages are available.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.public MailMessage readNextMessage(EmlLoadOptions options)
Reads the next message from underlying storage stream.
readNextMessage in class MboxStorageReaderoptions - Specifies EmlLoadOptions when reading message from Mbox storage.MailMessage object if it can be read or <b>null</b> if no more messages are available.Copyright (c) 2008-2024 Aspose Pty Ltd. All Rights Reserved.