public class TextContentHandler extends org.xml.sax.helpers.DefaultHandler
characters(char[], int, int) and
(@link ignorableWhitespace(char[], int, int)
(plus startDocument() and endDocument() events to
the decorated content handler.| Constructor and Description |
|---|
TextContentHandler(ContentHandler delegate) |
TextContentHandler(ContentHandler delegate,
boolean addSpaceBetweenElements) |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endDocument() |
void |
ignorableWhitespace(char[] ch,
int start,
int length) |
void |
startDocument() |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
String |
toString() |
endElement, endPrefixMapping, error, fatalError, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warningpublic TextContentHandler(ContentHandler delegate)
public TextContentHandler(ContentHandler delegate, boolean addSpaceBetweenElements)
public void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface ContentHandlerignorableWhitespace in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class org.xml.sax.helpers.DefaultHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class org.xml.sax.helpers.DefaultHandlerSAXExceptionCopyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.