org.jfree.xml.parser
Interface XmlReadHandler
- AbstractXmlReadHandler, Base64ReadHandler, BasicStrokeReadHandler, ColorReadHandler, FontReadHandler, GenericReadHandler, GradientPaintReadHandler, InsetsReadHandler, ListReadHandler, NullReadHandler, ObjectRefHandler, Point2DReadHandler, Rectangle2DReadHandler, RenderingHintsReadHandler, RenderingHintValueReadHandler, StringReadHandler
A handler for reading an XML element.
void | characters(char[] ch, int start, int length) - This method is called to process the character data between element tags.
|
void | endElement(String tagName) - This method is called at the end of an element.
|
Object | getObject() - Returns the object for this element or null, if this element does
not create an object.
|
void | init(RootXmlReadHandler rootHandler, String tagName) - Initialise.
|
void | startElement(String tagName, Attributes attrs) - This method is called at the start of an element.
|
characters
public void characters(char[] ch,
int start,
int length)
throws SAXException
This method is called to process the character data between element tags.
ch
- the character buffer.start
- the start index.length
- the length.
getObject
public Object getObject()
throws XmlReaderException
Returns the object for this element or null, if this element does
not create an object.
init
public void init(RootXmlReadHandler rootHandler,
String tagName)
Initialise.
rootHandler
- the root handler.tagName
- the tag name.
startElement
public void startElement(String tagName,
Attributes attrs)
throws SAXException,
XmlReaderException
This method is called at the start of an element.
tagName
- the tag name.attrs
- the attributes.