com.groupdocs.parser

Interfaces

Classes

Exceptions

com.groupdocs.parser

Class MetadataExtractor

    • Constructor Detail

      • MetadataExtractor

        protected MetadataExtractor()

        Initializes a new instance of the MetadataExtractor class.

    • Method Detail

      • extractMetadata

        public MetadataCollection extractMetadata(InputStream stream)

        Extracts the metadata from the stream.

        Parameters:
        stream - The stream of the document.
        Returns:
        A collection of the metadata.
        Throws:
        ArgumentNullException - stream is null.
      • extractMetadata

        public MetadataCollection extractMetadata(InputStream stream,
                                         LoadOptions loadOptions)

        Extracts the metadata from the stream.

        Parameters:
        stream - The stream of the document.
        loadOptions - The options of loading the file.
        Returns:
        A collection of the metadata.
        Throws:
        ArgumentNullException - stream is null.
      • extractMetadata

        public MetadataCollection extractMetadata(String fileName)

        Extracts the metadata from the fileName.

        Parameters:
        fileName - The path to the file.
        Returns:
        A collection of the metadata.
        Throws:
        ArgumentNullException - fileName is null.
      • extractMetadata

        public MetadataCollection extractMetadata(String fileName,
                                         LoadOptions loadOptions)

        Extracts the metadata from the fileName.

        Parameters:
        fileName - The path to the file.
        loadOptions - The options of loading the file.
        Returns:
        A collection of the metadata.
        Throws:
        ArgumentNullException - fileName is null.
      • extractMetadataFromStream

        protected MetadataCollection extractMetadataFromStream(InputStream stream,
                                                   LoadOptions loadOptions)

        Extracts the metadata from the stream.

        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.