public class XMLTreeHandler
extends org.xml.sax.ext.DefaultHandler2
Constructor and Description |
---|
XMLTreeHandler()
Constructor.
|
XMLTreeHandler(java.lang.String encoding)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] chararacters,
int start,
int length) |
void |
endElement(java.lang.String uri,
java.lang.String localname,
java.lang.String qname) |
XMLRoot |
getRoot()
Return the root node.
|
void |
startElement(java.lang.String uri,
java.lang.String localname,
java.lang.String qname,
org.xml.sax.Attributes attr)
Receive notification of the beginning of an element.
|
attributeDecl, comment, elementDecl, endCDATA, endDTD, endEntity, externalEntityDecl, getExternalSubset, internalEntityDecl, resolveEntity, resolveEntity, startCDATA, startDTD, startEntity
public XMLTreeHandler()
public XMLTreeHandler(java.lang.String encoding)
encoding
- the encoding of the XML filepublic XMLRoot getRoot()
public void startElement(java.lang.String uri, java.lang.String localname, java.lang.String qname, org.xml.sax.Attributes attr) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
uri
- the Namespace URIlocalname
- the local name (without prefix), or the empty string if Namespace processing is not being performedqname
- The qualified name (with prefix), or the empty string if qualified names are not availableattr
- the specified or defaulted attributesorg.xml.sax.SAXException
public void endElement(java.lang.String uri, java.lang.String localname, java.lang.String qname)
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
public void characters(char[] chararacters, int start, int length)
characters
in interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
Copyright © 2021, 2022 Herve Girod. All Rights Reserved. Documentation and source under the BSD 3-Clause licence