org.apache.slide.extractor
Class AbstractPropertyExtractor

java.lang.Object
  extended byorg.apache.slide.extractor.AbstractPropertyExtractor
All Implemented Interfaces:
Extractor, PropertyExtractor
Direct Known Subclasses:
OfficeExtractor, SimpleXmlExtractor

public abstract class AbstractPropertyExtractor
extends java.lang.Object
implements PropertyExtractor

The AbstractPropertyExtractor class


Constructor Summary
AbstractPropertyExtractor(java.lang.String uri, java.lang.String contentType)
           
AbstractPropertyExtractor(java.lang.String uri, java.lang.String contentType, java.lang.String namespace)
           
 
Method Summary
abstract  java.util.Map extract(java.io.InputStream content)
          Will be called before content and properties are stored ?Gets extracted property value from the resource, for example "author" ?for a word doc, ...
 java.lang.String getContentType()
           
 java.lang.String getNamespace()
           
 java.lang.String getUri()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPropertyExtractor

public AbstractPropertyExtractor(java.lang.String uri,
                                 java.lang.String contentType)

AbstractPropertyExtractor

public AbstractPropertyExtractor(java.lang.String uri,
                                 java.lang.String contentType,
                                 java.lang.String namespace)
Method Detail

extract

public abstract java.util.Map extract(java.io.InputStream content)
                               throws ExtractorException
Description copied from interface: PropertyExtractor
Will be called before content and properties are stored ?Gets extracted property value from the resource, for example "author" ?for a word doc, ...

Specified by:
extract in interface PropertyExtractor
Throws:
ExtractorException

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in interface Extractor

getUri

public java.lang.String getUri()
Specified by:
getUri in interface Extractor

getNamespace

public java.lang.String getNamespace()
Specified by:
getNamespace in interface Extractor