@Deprecated public final class EmlFormat extends FormatBase
Represents an email message saved in the EML format.
Constructor and Description |
---|
EmlFormat(InputStream input)
Deprecated.
Initializes a new instance of the
EmlFormat class. |
EmlFormat(String fileName)
Deprecated.
Initializes a new instance of the
EmlFormat class. |
Modifier and Type | Method and Description |
---|---|
void |
cleanMetadata()
Deprecated.
Removes writable metadata properties associated with the file.
|
protected void |
dispose(boolean disposing)
Deprecated.
Releases unmanaged and optionally managed resources.
|
EmlMetadata |
getEmlInfo()
Deprecated.
Gets the EML metadata.
|
int |
getType()
Deprecated.
Gets the type of the loaded file.
|
void |
removeAttachments()
Deprecated.
Removes all attachments in the EML file.
|
close, dispose, getMetadata, getMIMEType, readByMetadataKey, save, save, save
public EmlFormat(String fileName)
Initializes a new instance of the EmlFormat
class.
fileName
- A string that contains the full name of the file from which to create an EmlFormat
instance.public EmlFormat(InputStream input)
Initializes a new instance of the EmlFormat
class.
input
- A stream that contains the data for this EmlFormat
.public int getType()
Gets the type of the loaded file.
getType
in class FormatBase
public final EmlMetadata getEmlInfo()
Gets the EML metadata.
public final void removeAttachments()
Removes all attachments in the EML file.
public void cleanMetadata()
Removes writable metadata properties associated with the file.
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 © 2020. All rights reserved.