Package ddf.catalog.content.operation
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 TypeMethodDescriptionReturns the valid set of Metacard attributes that are populated by this extractor.voidprocess(InputStream input, Metacard metacard) Parses the input stream, extracting metadata from it to add to the metacard.voidParses the input string, extracting metadata from it to add to the metacard.
-
Method Details
-
process
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 processmetacard- the incoming metacard
-
process
Parses the input stream, extracting metadata from it to add to the metacard.- Parameters:
input- the content to processmetacard- 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
-