public class ElementParser
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
currentCharacters |
protected ElementParser |
currentElement |
protected java.lang.String |
elementName |
Modifier | Constructor and Description |
---|---|
protected |
ElementParser(java.lang.String elementName) |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] data,
int start,
int length) |
protected void |
doEndElement(java.lang.String uri,
java.lang.String lname,
java.lang.String qname) |
protected void |
doStartElement(java.lang.String uri,
java.lang.String lname,
java.lang.String qname,
org.xml.sax.Attributes attributes) |
void |
endElement(java.lang.String uri,
java.lang.String lname,
java.lang.String qname)
Finishes an element.
|
java.lang.String |
getElementName() |
void |
startElement(java.lang.String uri,
java.lang.String lname,
java.lang.String qname,
org.xml.sax.Attributes attributes)
Starts an element.
|
protected java.lang.String currentCharacters
protected ElementParser currentElement
protected final java.lang.String elementName
protected ElementParser(java.lang.String elementName)
elementName
- the element's name, may not be nulljava.lang.IllegalArgumentException
- if elementName
is nullpublic void characters(char[] data, int start, int length)
data
- start
- length
- java.lang.IllegalArgumentException
- if data
has length less than 1protected void doEndElement(java.lang.String uri, java.lang.String lname, java.lang.String qname) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void doStartElement(java.lang.String uri, java.lang.String lname, java.lang.String qname, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void endElement(java.lang.String uri, java.lang.String lname, java.lang.String qname) throws org.xml.sax.SAXException
uri
- lname
- qname
- org.xml.sax.SAXException
java.lang.IllegalArgumentException
- if any argument is nullpublic java.lang.String getElementName()
public void startElement(java.lang.String uri, java.lang.String lname, java.lang.String qname, org.xml.sax.Attributes attributes) throws org.xml.sax.SAXException
uri
- lname
- qname
- attributes
- org.xml.sax.SAXException
java.lang.IllegalArgumentException
- if any argument is null