org.apache.slide.extractor
Class TextContentExtractor

java.lang.Object
  extended byorg.apache.slide.extractor.AbstractContentExtractor
      extended byorg.apache.slide.extractor.TextContentExtractor
All Implemented Interfaces:
ContentExtractor, Extractor

public class TextContentExtractor
extends AbstractContentExtractor

Content extractor that simply returns the content.


Constructor Summary
TextContentExtractor(java.lang.String uri, java.lang.String contentType)
           
TextContentExtractor(java.lang.String uri, java.lang.String contentType, java.lang.String namespace)
           
 
Method Summary
 java.io.Reader extract(java.io.InputStream content)
          Will be called before content gets stored
 
Methods inherited from class org.apache.slide.extractor.AbstractContentExtractor
getContentType, getNamespace, getUri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextContentExtractor

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

TextContentExtractor

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

extract

public java.io.Reader extract(java.io.InputStream content)
                       throws ExtractorException
Description copied from interface: ContentExtractor
Will be called before content gets stored

Specified by:
extract in interface ContentExtractor
Specified by:
extract in class AbstractContentExtractor
Throws:
ExtractorException