org.jfree.data.xml
Class ValueHandler
DefaultHandler
org.jfree.data.xml.ValueHandler
- DatasetTags
A handler for reading a 'Value' element.
void | characters(char[] ch, int start, int length) - Receives some (or all) of the text in the current element.
|
protected void | clearCurrentText() - Removes all text from the textbuffer at the end of a CDATA section.
|
void | endElement(String namespaceURI, String localName, String qName) - The end of an element.
|
protected String | getCurrentText() - Returns the current text of the textbuffer.
|
void | startElement(String namespaceURI, String localName, String qName, Attributes atts) - The start of an element.
|
ValueHandler
public ValueHandler(RootHandler rootHandler,
ItemHandler itemHandler)
Creates a new value handler.
rootHandler
- the root handler.itemHandler
- the item handler.
characters
public void characters(char[] ch,
int start,
int length)
Receives some (or all) of the text in the current element.
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)
throws SAXException
The end of an element.
namespaceURI
- the namespace.localName
- the element name.qName
- the element name.
getCurrentText
protected String getCurrentText()
Returns the current text of the textbuffer.
startElement
public void startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
throws SAXException
The start of an element.
namespaceURI
- the namespace.localName
- the element name.qName
- the element name.atts
- the attributes.