public interface ContentMetadataExtractor
This code is experimental. While this interface is functional and tested, it may change or be removed in a future version of the library.
Modifier and Type | Method and Description |
---|---|
Set<AttributeDescriptor> |
getMetacardAttributes()
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.
|
void process(String input, Metacard 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.
input
- the content to processmetacard
- the incoming metacardvoid process(InputStream input, Metacard metacard)
input
- the content to processmetacard
- the incoming metacardSet<AttributeDescriptor> getMetacardAttributes()
This work is licensed under a Creative Commons Attribution 4.0 International License.