org.apache.oodt.cas.metadata.extractors
Class ExternMetExtractor

java.lang.Object
  extended by org.apache.oodt.cas.metadata.AbstractMetExtractor
      extended by org.apache.oodt.cas.metadata.extractors.CmdLineMetExtractor
          extended by org.apache.oodt.cas.metadata.extractors.ExternMetExtractor
All Implemented Interfaces:
ExternMetExtractorMetKeys, MetExtractor

public class ExternMetExtractor
extends CmdLineMetExtractor
implements ExternMetExtractorMetKeys

Version:
$Revision$

Runs an external MetExtractor that is a command line program to extract Metadata from Product files.

.
Author:
mattmann, bfoster

Field Summary
 
Fields inherited from class org.apache.oodt.cas.metadata.AbstractMetExtractor
config, LOG
 
Fields inherited from interface org.apache.oodt.cas.metadata.extractors.ExternMetExtractorMetKeys
DATA_FILE_PLACE_HOLDER, DEFAULT_MET_FILE_EXTENSION, MET_FILE_PLACE_HOLDER
 
Constructor Summary
ExternMetExtractor()
           
 
Method Summary
 Metadata extrMetadata(File file)
          Extracts Metadata from the given File
static void main(String[] args)
           
 
Methods inherited from class org.apache.oodt.cas.metadata.extractors.CmdLineMetExtractor
processMain, processMain
 
Methods inherited from class org.apache.oodt.cas.metadata.AbstractMetExtractor
extractMetadata, extractMetadata, extractMetadata, extractMetadata, extractMetadata, extractMetadata, extractMetadata, setConfigFile, setConfigFile, setConfigFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternMetExtractor

public ExternMetExtractor()
                   throws InstantiationException
Throws:
InstantiationException
Method Detail

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-2011 Apache Incubator. All Rights Reserved.