public class TikaCmdLineMetExtractor extends CmdLineMetExtractor
A Met Extractor that invokes Apache Tika to automatically detect relevant metadata for a given product.
.To use this extractor, a met extractor config file must be referenced. This can take the form of a Java properties file that includes, at a minimum, the 'ProductType=...' metadata key specified.
Modifier and Type | Field and Description |
---|---|
protected static MetReaderConfigReader |
reader |
config
Constructor and Description |
---|
TikaCmdLineMetExtractor() |
Modifier and Type | Method and Description |
---|---|
Metadata |
extrMetadata(File file)
|
static void |
main(String[] args) |
processMain, processMain
extractMetadata, extractMetadata, extractMetadata, extractMetadata, extractMetadata, extractMetadata, extractMetadata, setConfigFile, setConfigFile, setConfigFile
protected static MetReaderConfigReader reader
public Metadata extrMetadata(File file) throws MetExtractionException
AbstractMetExtractor
extrMetadata
in class AbstractMetExtractor
file
- The File
from which Metadata
will be extractedMetadata
extractedMetExtractionException
- If any error occursCopyright © 1999–2017 Apache OODT. All rights reserved.