org.apache.tika.sax
Class TextContentHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.apache.tika.sax.TextContentHandler
- All Implemented Interfaces:
- ContentHandler, DTDHandler, EntityResolver, ErrorHandler
public class TextContentHandler
- extends org.xml.sax.helpers.DefaultHandler
Content handler decorator that only passes the
characters(char[], int, int)
and
(@link ignorableWhitespace(char[], int, int)
(plus startDocument()
and endDocument()
events to
the decorated content handler.
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endElement, endPrefixMapping, error, fatalError, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startElement, startPrefixMapping, unparsedEntityDecl, warning |
TextContentHandler
public TextContentHandler(ContentHandler delegate)
characters
public void characters(char[] ch,
int start,
int length)
throws SAXException
- Specified by:
characters
in interface ContentHandler
- Overrides:
characters
in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
ignorableWhitespace
public void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
- Specified by:
ignorableWhitespace
in interface ContentHandler
- Overrides:
ignorableWhitespace
in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
startDocument
public void startDocument()
throws SAXException
- Specified by:
startDocument
in interface ContentHandler
- Overrides:
startDocument
in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
endDocument
public void endDocument()
throws SAXException
- Specified by:
endDocument
in interface ContentHandler
- Overrides:
endDocument
in class org.xml.sax.helpers.DefaultHandler
- Throws:
SAXException
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2007-2012 The Apache Software Foundation. All Rights Reserved.