public class NodesProviderSaxHandler extends DefaultHandler
Constructor and Description |
---|
NodesProviderSaxHandler() |
Modifier and Type | Method and Description |
---|---|
void |
endElement(String uri,
String localName,
String name) |
CSPNode |
getRootNode() |
static CSPNode |
parseNodeHierarchy(String hierarchyXml)
Parses and returns the root node of the hierarchy
|
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes) |
characters, endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public void endElement(String uri, String localName, String name) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
SAXException
public CSPNode getRootNode()
public static CSPNode parseNodeHierarchy(String hierarchyXml) throws UnsupportedEncodingException, SAXException, IOException, ParserConfigurationException
hierarchyXml
- The XML to be parsedParserConfigurationException
IOException
SAXException
UnsupportedEncodingException