gov.nasa.worldwind.applications.sar
Class ElementParser
java.lang.Object
gov.nasa.worldwind.applications.sar.ElementParser
public class ElementParser
- extends Object
Method Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
currentCharacters
protected String currentCharacters
currentElement
protected ElementParser currentElement
elementName
protected final String elementName
ElementParser
protected ElementParser(String elementName)
- Parameters:
elementName
- the element's name, may not be null
- Throws:
IllegalArgumentException
- if elementName
is null
characters
public void characters(char[] data,
int start,
int length)
- Parameters:
data
- start
- length
-
- Throws:
IllegalArgumentException
- if data
has length less than 1
doEndElement
protected void doEndElement(String uri,
String lname,
String qname)
throws SAXException
- Throws:
SAXException
doStartElement
protected void doStartElement(String uri,
String lname,
String qname,
Attributes attributes)
throws SAXException
- Throws:
SAXException
endElement
public void endElement(String uri,
String lname,
String qname)
throws SAXException
- Finishes an element. No parameters may be null.
- Parameters:
uri
- lname
- qname
-
- Throws:
SAXException
IllegalArgumentException
- if any argument is null
getElementName
public String getElementName()
startElement
public void startElement(String uri,
String lname,
String qname,
Attributes attributes)
throws SAXException
- Starts an element. No parameters may be null.
- Parameters:
uri
- lname
- qname
- attributes
-
- Throws:
SAXException
IllegalArgumentException
- if any argument is null