org.apache.slide.extractor
Class XmlContentExtractor

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

public class XmlContentExtractor
extends AbstractContentExtractor

Content extractor that simply extracts all text content of an XML document.


Constructor Summary
XmlContentExtractor(java.lang.String uri, java.lang.String contentType)
           
XmlContentExtractor(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

XmlContentExtractor

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

XmlContentExtractor

public XmlContentExtractor(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