org.apache.oodt.cas.metadata.extractors
Class TikaCmdLineMetExtractor
java.lang.Object
org.apache.oodt.cas.metadata.AbstractMetExtractor
org.apache.oodt.cas.metadata.extractors.CmdLineMetExtractor
org.apache.oodt.cas.metadata.extractors.TikaCmdLineMetExtractor
- All Implemented Interfaces:
- MetExtractor
public class TikaCmdLineMetExtractor
- extends CmdLineMetExtractor
- Version:
- $Revision$
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.
- Author:
- rverma, arni, mattmann
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
reader
protected static MetReaderConfigReader reader
TikaCmdLineMetExtractor
public TikaCmdLineMetExtractor()
extrMetadata
public Metadata extrMetadata(File file)
throws MetExtractionException
- Description copied from class:
AbstractMetExtractor
- Extracts
Metadata from the given File
- Specified by:
extrMetadata in class AbstractMetExtractor
- Parameters:
file - The File from which Metadata will be extracted
- Returns:
- The
Metadata extracted
- Throws:
MetExtractionException - If any error occurs
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 1999-2014 Apache OODT. All Rights Reserved.