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