com.groupdocs.parser

Interfaces

Classes

Exceptions

com.groupdocs.parser

Class EmailMetadataExtractor



  • public final class EmailMetadataExtractor
    extends MetadataExtractor

    Provides the functionality to extract the metadata from email messages.


    Supported formats:

    .MSGMicrosoft Outlook message
    .EMLEmail Message
    .EMLXApple's macOS Mail message

    Extracting the metadata:

     // Create a metadata extractor for emails
     MetadataExtractor metadataExtractor = new EmailMetadataExtractor();
     // Extract a metadata from the stream
     MetadataCollection metadata = metadataExtractor.extractMetadata(stream);
      
    • Constructor Detail

      • EmailMetadataExtractor

        public EmailMetadataExtractor()

        Initializes a new instance of the EmailMetadataExtractor class.

    • Method Detail

      • extractMetadataFromStream

        protected MetadataCollection extractMetadataFromStream(InputStream stream,
                                                   LoadOptions loadOptions)

        Extracts the metadata from the stream.

        Overrides:
        extractMetadataFromStream in class MetadataExtractor
        Parameters:
        stream - The stream of the document.
        loadOptions - The options of loading the file.


        This method must be override in the inherited classes.

        Returns:
        A collection of the metadata.