public final class EmlFormat extends FormatBase
Represents Email message format.
filePath, stream
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.
|
EmlMetadata |
getEmlInfo()
Gets the EML information.
|
int |
getType()
Gets document type.
|
void |
removeAttachments()
Removes all attachments in EML file.
|
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.
Value: 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
Copyright © 2017. All rights reserved.