public final class SaxHandler extends org.xml.sax.helpers.DefaultHandler
Constructor and Description |
---|
SaxHandler() |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length)
Handles text content of the
entry tag. |
void |
endElement(String uri,
String localName,
String qName)
Handles close tag, if its name is
entry . |
Properties |
getProperties()
Returns copy of the properties read from the handled XML.
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
Handles open tag, if its name is
entry and has attribute key . |
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public Properties getProperties()
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
entry
and has attribute key
.startElement
in interface ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void endElement(String uri, String localName, String qName) throws SAXException
entry
.endElement
in interface ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
SAXException
public void characters(char[] ch, int start, int length) throws SAXException
entry
tag.characters
in interface ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
SAXException
Copyright © 2015 JBoss by Red Hat. All Rights Reserved.