com.aspose.email

Interfaces

Classes

Enums

Exceptions

com.aspose.email

Class MapiMessageReader

  • All Implemented Interfaces:
    com.aspose.ms.System.IDisposable


    public final class MapiMessageReader
    extends Object
    implements com.aspose.ms.System.IDisposable

    Represents a reader that can read a Microsoft Outlook Message format document.

    • Constructor Detail

      • MapiMessageReader

        public MapiMessageReader(String path)

        Initializes a new instance of the MapiMessageReader class for the specified file name.

        Parameters:
        path - The complete file path to be read.
      • MapiMessageReader

        public MapiMessageReader(InputStream stream)

        Initializes a new instance of the MapiMessageReader class for the specified stream.

        Parameters:
        stream - The stream to be read.
    • Method Detail

      • readMessage

        public final MapiMessage readMessage()

        Parse the current stream and returns the data as a MapiMessage.

        Returns:
        The MapiMessage from the input stream.
      • readAttachments

        public final MapiAttachmentCollection readAttachments()

        Extracts the attachment from the Outlook Message files.

        Returns:
        The Attachment collection.
      • dispose

        public final void dispose()

        Releases the unmanaged resources used by the MapiMessageReader.

        Specified by:
        dispose in interface com.aspose.ms.System.IDisposable