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

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

public class CopyAndRewriteExtractor
extends CmdLineMetExtractor

Version:
$Revision$

A MetExtractor that takes in a configuration file that is a java properties object with the following properties defined:

.
Author:
mattmann, bfoster

Field Summary
 
Fields inherited from class org.apache.oodt.cas.metadata.AbstractMetExtractor
config, LOG
 
Constructor Summary
CopyAndRewriteExtractor()
          Default Constructor.
 
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

CopyAndRewriteExtractor

public CopyAndRewriteExtractor()
Default Constructor.

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.