public final class EmlFormat extends FormatBase
Represents Email message format.
Constructor and Description |
---|
EmlFormat(InputStream input)
Initializes a new instance of the
EmlFormat class. |
EmlFormat(String fileName)
Initializes a new instance of the
EmlFormat class. |
Modifier and Type | Method and Description |
---|---|
void |
cleanMetadata()
Removes (reset) metadata.
|
protected void |
dispose(boolean disposing)
Releases unmanaged and optionally managed resources.
|
EmlMetadata |
getEmlInfo()
Gets the EML information.
|
int |
getType()
Gets document type.
|
void |
removeAttachments()
Removes all attachments in EML file.
|
close, dispose, getMetadata, getMIMEType, readByMetadataKey, save, save, save
public EmlFormat(String fileName)
Initializes a new instance of the EmlFormat
class.
fileName
- Absolute path to the .eml file.public EmlFormat(InputStream input)
Initializes a new instance of the EmlFormat
class.
input
- File stream.public int getType()
Gets document type.
getType
in class FormatBase
public final EmlMetadata getEmlInfo()
Gets the EML information.
InvalidFormatException
- Could not read EML file.public final void removeAttachments()
Removes all attachments in EML 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.