org.jfree.data.xml

Class KeyHandler

public class KeyHandler extends DefaultHandler implements DatasetTags

A SAX handler for reading a key.
Constructor Summary
KeyHandler(RootHandler rootHandler, ItemHandler itemHandler)
Creates a new handler.
Method Summary
voidcharacters(char[] ch, int start, int length)
Receives some (or all) of the text in the current element.
protected voidclearCurrentText()
Removes all text from the textbuffer at the end of a CDATA section.
voidendElement(String namespaceURI, String localName, String qName)
The end of an element.
protected StringgetCurrentText()
Returns the current text of the textbuffer.
voidstartElement(String namespaceURI, String localName, String qName, Attributes atts)
The start of an element.

Constructor Detail

KeyHandler

public KeyHandler(RootHandler rootHandler, ItemHandler itemHandler)
Creates a new handler.

Parameters: rootHandler the root handler. itemHandler the item handler.

Method Detail

characters

public void characters(char[] ch, int start, int length)
Receives some (or all) of the text in the current element.

Parameters: ch character buffer. start the start index. length the length of the valid character data.

clearCurrentText

protected void clearCurrentText()
Removes all text from the textbuffer at the end of a CDATA section.

endElement

public void endElement(String namespaceURI, String localName, String qName)
The end of an element.

Parameters: namespaceURI the namespace. localName the element name. qName the element name.

Throws: SAXException for errors.

getCurrentText

protected String getCurrentText()
Returns the current text of the textbuffer.

Returns: The current text.

startElement

public void startElement(String namespaceURI, String localName, String qName, Attributes atts)
The start of an element.

Parameters: namespaceURI the namespace. localName the element name. qName the element name. atts the attributes.

Throws: SAXException for errors.