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

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.MetReaderExtractor
All Implemented Interfaces:
MetExtractor

public class MetReaderExtractor
extends CmdLineMetExtractor

Version:
$Revision$

A Met Extractor that assumes that the .met file has already been generated. This extractor assumes the presence of the first parameter in AbstractMetExtractor.extractMetadata(File, File), File.getAbsolutePath()+".met"

.
Author:
mattmann, bfoster

Field Summary
static String DEFAULT_MET_FILE_EXT
           
protected static MetReaderConfigReader reader
           
 
Fields inherited from class org.apache.oodt.cas.metadata.AbstractMetExtractor
config, LOG
 
Constructor Summary
MetReaderExtractor()
          Default Constructor
MetReaderExtractor(String metFileExt)
          Constructs a new MetReaderExtractor that looks for met files with the given metFileExt.
 
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
 

Field Detail

DEFAULT_MET_FILE_EXT

public static final String DEFAULT_MET_FILE_EXT
See Also:
Constant Field Values

reader

protected static MetReaderConfigReader reader
Constructor Detail

MetReaderExtractor

public MetReaderExtractor()
Default Constructor


MetReaderExtractor

public MetReaderExtractor(String metFileExt)
Constructs a new MetReaderExtractor that looks for met files with the given metFileExt.

Parameters:
metFileExt - The met file extension.
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.