public final class MapiMessageReader extends Object implements IDisposable, Closeable
Represents a reader that can read a Microsoft Outlook Message format document.
Constructor and Description |
---|
MapiMessageReader(InputStream stream)
Initializes a new instance of the MapiMessageReader class for the specified stream.
|
MapiMessageReader(String path)
Initializes a new instance of the MapiMessageReader class for the specified file name.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
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.
|
public MapiMessageReader(String path)
Initializes a new instance of the MapiMessageReader class for the specified file name.
path
- The complete file path to be read.public MapiMessageReader(InputStream stream)
Initializes a new instance of the MapiMessageReader class for the specified stream.
stream
- The stream to be read.public final MapiMessage readMessage()
Parse the current stream and returns the data as a MapiMessage.
public final MapiAttachmentCollection readAttachments()
Extracts the attachment from the Outlook Message files.
public final void dispose()
Releases the unmanaged resources used by the MapiMessageReader.
dispose
in interface IDisposable
public void close()
close
in interface Closeable
close
in interface AutoCloseable