public final class OutlookMessage extends FormatBase
Represents Outlook Message format.
Constructor and Description |
---|
OutlookMessage(InputStream input)
Initializes a new instance of the
OutlookMessage class. |
OutlookMessage(String fileName)
Initializes a new instance of the
OutlookMessage class. |
Modifier and Type | Method and Description |
---|---|
void |
cleanMetadata()
Removes (reset) metadata.
|
protected void |
dispose(boolean disposing)
Releases unmanaged and optionally managed resources.
|
OutlookMessageMetadata |
getMsgInfo()
Gets the Outlook Message information.
|
int |
getType()
Gets document type.
|
void |
removeAttachments()
Removes all attachments in Outlook Message file.
|
close, dispose, getMetadata, getMIMEType, readByMetadataKey, save, save, save
public OutlookMessage(String fileName)
Initializes a new instance of the OutlookMessage
class.
fileName
- Absolute path to the file.public OutlookMessage(InputStream input)
Initializes a new instance of the OutlookMessage
class.
input
- File stream.public int getType()
Gets document type.
getType
in class FormatBase
public final OutlookMessageMetadata getMsgInfo()
Gets the Outlook Message information.
InvalidFormatException
- Could not read EML file.public final void removeAttachments()
Removes all attachments in Outlook Message file.
public void cleanMetadata()
Removes (reset) metadata.
cleanMetadata
in class FormatBase
protected void dispose(boolean disposing)
Releases unmanaged and optionally managed resources.
dispose
in class FormatBase
disposing
- true
to release both managed and unmanaged resources;
false
to release only unmanaged resources.Copyright © 2019. All rights reserved.