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
close()
dispose() Releases the unmanaged resources used by the MapiMessageReader.
equals(Object arg0)
getClass()
hashCode()
notify()
notifyAll()
readAttachments() Extracts the attachment from the Outlook Message files.
readMessage() Parse the current stream and returns the data as a MapiMessage.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

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.

close()

public void close()

dispose()

public final void dispose()

Releases the unmanaged resources used by the MapiMessageReader.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

Parameter Type Description
arg0 java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

readAttachments()

public final MapiAttachmentCollection readAttachments()

Extracts the attachment from the Outlook Message files.

Returns: MapiAttachmentCollection - The Attachment collection.

readMessage()

public final MapiMessage readMessage()

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

Returns: MapiMessage - The MapiMessage from the input stream.

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

Parameter Type Description
arg0 long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

Parameter Type Description
arg0 long
arg1 int