MapiMessageReader

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.ms.System.IDisposable, java.io.Closeable

public final class MapiMessageReader implements System.IDisposable, Closeable

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

Constructors

Constructor Description
MapiMessageReader(String path) Initializes a new instance of the MapiMessageReader class for the specified file name.
MapiMessageReader(InputStream stream) Initializes a new instance of the MapiMessageReader class for the specified stream.

Methods

Method Description
readMessage() Parse the current stream and returns the data as a MapiMessage.
readAttachments() Extracts the attachment from the Outlook Message files.
dispose() Releases the unmanaged resources used by the MapiMessageReader.
close()

MapiMessageReader(String path)

public MapiMessageReader(String path)

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

Parameters:

Parameter Type Description
path java.lang.String The complete file path to be read.

MapiMessageReader(InputStream stream)

public MapiMessageReader(InputStream stream)

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

Parameters:

Parameter Type Description
stream java.io.InputStream The stream to be read.

readMessage()

public final MapiMessage readMessage()

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

Returns: MapiMessage - The MapiMessage from the input stream.

readAttachments()

public final MapiAttachmentCollection readAttachments()

Extracts the attachment from the Outlook Message files.

Returns: MapiAttachmentCollection - The Attachment collection.

dispose()

public final void dispose()

Releases the unmanaged resources used by the MapiMessageReader.

close()

public void close()