Interface ContentMetadataExtractor


public interface ContentMetadataExtractor
Parses content, extracting metadata and adding it to the provided card.

This code is experimental. While this interface is functional and tested, it may change or be removed in a future version of the library.

  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the valid set of Metacard attributes that are populated by this extractor.
    void
    process(InputStream input, Metacard metacard)
    Parses the input stream, extracting metadata from it to add to the metacard.
    void
    process(String input, Metacard metacard)
    Parses the input string, extracting metadata from it to add to the metacard.
  • Method Details

    • process

      void process(String input, Metacard metacard)
      Parses the input string, extracting metadata from it to add to the metacard.

      This method can have large memory effects. If you already have data in a datasource that can be streamed, consider the process(InputStream, Metacard) overloaded method instead.

      Parameters:
      input - the content to process
      metacard - the incoming metacard
    • process

      void process(InputStream input, Metacard metacard)
      Parses the input stream, extracting metadata from it to add to the metacard.
      Parameters:
      input - the content to process
      metacard - the incoming metacard
    • getMetacardAttributes

      Set<AttributeDescriptor> getMetacardAttributes()
      Returns the valid set of Metacard attributes that are populated by this extractor.
      Returns:
      set of attributes populated by this extractor