public class ParseHandler extends DefaultHandler
Modifier and Type | Field and Description |
---|---|
protected String |
defaultNamespace |
protected Stack<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 DefaultHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultHandler
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
SAXException
public void error(SAXParseException e)
error
in interface ErrorHandler
error
in class DefaultHandler
public void fatalError(SAXParseException e)
fatalError
in interface ErrorHandler
fatalError
in class DefaultHandler
public void warning(SAXParseException e)
warning
in interface ErrorHandler
warning
in class DefaultHandler
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
setDocumentLocator
in class DefaultHandler
public void setDefaultNamespace(String defaultNamespace)
Copyright © 2018. All rights reserved.