com.aspose.email
Class MapiMessageReader

java.lang.Object
  extended by com.aspose.email.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(InputStream stream)
           
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.
 MapiAttachmentCollection readAttachments()
           Extracts the attachment from the Outlook Message files.
 MapiMessage readMessage()
           Parse the current stream and returns the data as a MapiMessage.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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


Copyright (c) 2008-2013 Aspose Pty Ltd. All Rights Reserved.