org.jfree.xml.parser
public abstract class AbstractXmlReadHandler extends Object implements XmlReadHandler
Constructor Summary | |
---|---|
AbstractXmlReadHandler()
Creates a new handler. |
Method Summary | |
---|---|
void | characters(char[] ch, int start, int length)
This method is called to process the character data between element tags.
|
protected void | doneParsing()
Done parsing.
|
void | endElement(String tagName)
This method is called at the end of an element.
|
protected XmlReadHandler | getHandlerForChild(String tagName, Attributes atts)
Returns the handler for a child element.
|
RootXmlReadHandler | getRootHandler()
Returns the root handler for the parsing.
|
String | getTagName()
Returns the tag name.
|
void | init(RootXmlReadHandler rootHandler, String tagName)
Initialises the handler.
|
void | startElement(String tagName, Attributes attrs)
This method is called at the start of an element.
|
protected void | startParsing(Attributes attrs)
Starts parsing.
|
Parameters: ch the character buffer. start the start index. length the length.
Throws: SAXException if there is a parsing error.
Throws: SAXException if there is a parsing error. XmlReaderException if there is a reader error.
Parameters: tagName the tag name.
Throws: SAXException if there is a parsing error.
Parameters: tagName the tag name. atts the attributes.
Returns: the handler or null, if the tagname is invalid.
Throws: SAXException if there is a parsing error. XmlReaderException if there is a reader error.
Returns: the root handler.
Returns: the tag name.
Parameters: rootHandler the root handler. tagName the tag name.
Parameters: tagName the tag name. attrs the attributes.
Throws: SAXException if there is a parsing error. XmlReaderException if there is a reader error.
Parameters: attrs the attributes.
Throws: SAXException if there is a parsing error.