com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

Class EmlFormat

  • All Implemented Interfaces:
    com.aspose.ms.System.IDisposable, Closeable, AutoCloseable


    public final class EmlFormat
    extends FormatBase

    Represents an email message saved in the EML format.

    • Constructor Detail

      • EmlFormat

        public EmlFormat(String fileName)

        Initializes a new instance of the EmlFormat class.

        Parameters:
        fileName - A string that contains the full name of the file from which to create an EmlFormat instance.
      • EmlFormat

        public EmlFormat(InputStream input)

        Initializes a new instance of the EmlFormat class.

        Parameters:
        input - A stream that contains the data for this EmlFormat.
    • Method Detail

      • getType

        public int getType()

        Gets the type of the loaded file.

        Specified by:
        getType in class FormatBase
        Returns:
        The type of the loaded file.
      • getEmlInfo

        public final EmlMetadata getEmlInfo()

        Gets the EML metadata.

        Returns:
        The EML metadata.
      • removeAttachments

        public final void removeAttachments()

        Removes all attachments in the EML file.


        This feature is not available in trial mode.

      • cleanMetadata

        public void cleanMetadata()

        Removes writable metadata properties associated with the file.


        This feature is not available in trial mode.

        Overrides:
        cleanMetadata in class FormatBase
      • dispose

        protected void dispose(boolean disposing)

        Releases unmanaged and optionally managed resources.

        Overrides:
        dispose in class FormatBase
        Parameters:
        disposing - true to release both managed and unmanaged resources; false to release only unmanaged resources.