com.aspose.email

com.aspose.email

Class MboxrdStorageReader

All Implemented Interfaces:
com.aspose.email.ms.System.IDisposable
public final class MboxrdStorageReader
extends MboxStorageReader

Represents mboxrd format storage reader, this format is being used by Thunderbird, Eudora OSE and other mail clients.

Constructor Summary
MboxrdStorageReader(InputStream stream, booleanleaveOpen)
MboxrdStorageReader(String fileName, booleanleaveOpen)
Initializes a new instance of the MboxrdStorageReader class.
 
Method Summary
readNextMessage()
Reads the next message from underlying storage stream.
 
Methods inherited from class com.aspose.email.MboxStorageReader
 
Methods inherited from class java.lang.Object
 

    • Constructor Detail

      • MboxrdStorageReader

        public MboxrdStorageReader(InputStream stream,
                                   boolean leaveOpen)
      • MboxrdStorageReader

        public MboxrdStorageReader(String fileName,
                                   boolean leaveOpen)

        Initializes a new instance of the MboxrdStorageReader class.

        Parameters:
        fileName - Name of the file.
        leaveOpen - if set to true leaves the underlying stream open after disposing.
        Throws:
        IllegalArgumentException - If filename is null or empty.
    • Method Detail

      • readNextMessage

        public MailMessage readNextMessage()

        Reads the next message from underlying storage stream.

        Specified by:
        readNextMessage in class MboxStorageReader
        Returns:
        A MailMessage object if it can be read or null if no more messages are available.