public class XMLContentHandler extends DefaultHandler
| Constructor and Description |
|---|
XMLContentHandler(TagListener rootListener,
ObjectProcessor processor) |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int offset,
int length)
Read character data.
|
void |
endElement(String uri,
String localName,
String qname)
Read closing tag.
|
protected TagListener |
getCurrentTagListener() |
protected ObjectProcessor |
getObjetcProcessor() |
protected TagListener |
getRootListener() |
protected void |
removeCurrentTagListener() |
protected void |
setCurrentTagListener(TagListener newCurrentTagListener) |
void |
setDocumentLocator(Locator locator)
Fetch xml locator to get line numbers.
|
void |
startElement(String uri,
String localName,
String qname,
Attributes attributes)
Read starting tag.
|
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningpublic XMLContentHandler(TagListener rootListener, ObjectProcessor processor)
public final void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlersetDocumentLocator in class DefaultHandlerpublic final void characters(char[] ch,
int offset,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class DefaultHandlerSAXExceptionpublic final void startElement(String uri, String localName, String qname, Attributes attributes) throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandlerSAXExceptionpublic final void endElement(String uri, String localName, String qname) throws SAXException
endElement in interface ContentHandlerendElement in class DefaultHandlerSAXExceptionprotected ObjectProcessor getObjetcProcessor()
protected void setCurrentTagListener(TagListener newCurrentTagListener)
protected void removeCurrentTagListener()
protected TagListener getCurrentTagListener()
protected TagListener getRootListener()
Copyright © 2017 SAP SE. All Rights Reserved.