public class ParseHandler extends org.xml.sax.helpers.DefaultHandler
Modifier and Type | Field and Description |
---|---|
protected String |
defaultNamespace |
protected Deque<Element> |
elementStack |
protected Locator |
locator |
protected Parse |
parse |
Constructor and Description |
---|
ParseHandler(Parse parse) |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(String uri,
String localName,
String qName) |
void |
error(SAXParseException e) |
void |
fatalError(SAXParseException e) |
void |
setDefaultNamespace(String defaultNamespace) |
void |
setDocumentLocator(Locator locator) |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
void |
warning(SAXParseException e) |
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl
protected String defaultNamespace
protected Parse parse
protected Locator locator
public ParseHandler(Parse parse)
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void error(SAXParseException e)
error
in interface ErrorHandler
error
in class org.xml.sax.helpers.DefaultHandler
public void fatalError(SAXParseException e)
fatalError
in interface ErrorHandler
fatalError
in class org.xml.sax.helpers.DefaultHandler
public void warning(SAXParseException e)
warning
in interface ErrorHandler
warning
in class org.xml.sax.helpers.DefaultHandler
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
setDocumentLocator
in class org.xml.sax.helpers.DefaultHandler
public void setDefaultNamespace(String defaultNamespace)
Copyright © 2021. All rights reserved.