com.aspose.email

com.aspose.email

Class MapiMessageReader

All Implemented Interfaces:
com.aspose.email.ms.System.IDisposable
public final class MapiMessageReader
extends Object
implements com.aspose.email.ms.System.IDisposable

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

Constructor Summary
MapiMessageReader(String path)
Initializes a new instance of the MapiMessageReader class for the specified file name.
 
Method Summary
void
dispose()
Releases the unmanaged resources used by the MapiMessageReader.
readAttachments()
Extracts the attachment from the Outlook Message files.
readMessage()
Parse the current stream and returns the data as a MapiMessage.
 
Methods inherited from class java.lang.Object
 

    • 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)
    • Method Detail

      • readMessage

        public MapiMessage readMessage()

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

        Returns:
        The MapiMessage from the input stream.
      • readAttachments

        public MapiAttachmentCollection readAttachments()

        Extracts the attachment from the Outlook Message files.

        Returns:
        The Attachment collection.
      • dispose

        public void dispose()

        Releases the unmanaged resources used by the MapiMessageReader.

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