org.apache.oodt.cas.metadata.extractors
Class CopyAndRewriteExtractor
java.lang.Object
org.apache.oodt.cas.metadata.AbstractMetExtractor
org.apache.oodt.cas.metadata.extractors.CmdLineMetExtractor
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:
- numRewriteFields - The number of fields to rewrite within the original
metadata file.
- rewriteFieldN - The name(s) of the fields to rewrite in the original
Metadata file.
- orig.met.file.path - he original path to the
Metadata XML file
to draw the original properties from.
- fieldN.pattern - The string specification that details which fields to
replace and to use in building the new field value.
.
- Author:
- mattmann, bfoster
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CopyAndRewriteExtractor
public CopyAndRewriteExtractor()
- Default Constructor.
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.