org.apache.oodt.cas.filemgr.metadata.extractors.examples
Class MimeTypeExtractor

java.lang.Object
  extended by org.apache.oodt.cas.filemgr.metadata.extractors.AbstractFilemgrMetExtractor
      extended by org.apache.oodt.cas.filemgr.metadata.extractors.examples.MimeTypeExtractor
All Implemented Interfaces:
FilemgrMetExtractor

public class MimeTypeExtractor
extends AbstractFilemgrMetExtractor

Version:
$Revision: 11462 $

An example FilemgrMetExtractor to extract out a Product's Mime Type.

.
Author:
mattmann

Field Summary
 
Fields inherited from class org.apache.oodt.cas.filemgr.metadata.extractors.AbstractFilemgrMetExtractor
configuration
 
Constructor Summary
MimeTypeExtractor()
           
 
Method Summary
 void doConfigure()
           
 org.apache.oodt.cas.metadata.Metadata doExtract(Product product, org.apache.oodt.cas.metadata.Metadata met)
           
 
Methods inherited from class org.apache.oodt.cas.filemgr.metadata.extractors.AbstractFilemgrMetExtractor
addMetadataIfUndefined, configure, extractMetadata, getProductFile, getRootRefPath, merge, validateProduct
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MimeTypeExtractor

public MimeTypeExtractor()
Method Detail

doConfigure

public void doConfigure()
Specified by:
doConfigure in class AbstractFilemgrMetExtractor

doExtract

public org.apache.oodt.cas.metadata.Metadata doExtract(Product product,
                                                       org.apache.oodt.cas.metadata.Metadata met)
                                                throws org.apache.oodt.cas.metadata.exceptions.MetExtractionException
Specified by:
doExtract in class AbstractFilemgrMetExtractor
Throws:
org.apache.oodt.cas.metadata.exceptions.MetExtractionException


Copyright © 1999-2011 Apache OODT. All Rights Reserved.