public class ValueHandler extends org.xml.sax.helpers.DefaultHandler implements DatasetTags
CATEGORYDATASET_TAG, ITEM_TAG, KEY_TAG, PIEDATASET_TAG, SERIES_TAG, VALUE_TAG| Constructor and Description |
|---|
ValueHandler(RootHandler rootHandler,
ItemHandler itemHandler)
Creates a new value handler.
|
| Modifier and Type | Method and Description |
|---|---|
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(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
The end of an element.
|
protected java.lang.String |
getCurrentText()
Returns the current text of the textbuffer.
|
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
The start of an element.
|
public ValueHandler(RootHandler rootHandler, ItemHandler itemHandler)
rootHandler - the root handler.itemHandler - the item handler.public void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlernamespaceURI - the namespace.localName - the element name.qName - the element name.atts - the attributes.org.xml.sax.SAXException - for errors.public void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
endElement in interface org.xml.sax.ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlernamespaceURI - the namespace.localName - the element name.qName - the element name.org.xml.sax.SAXException - for errors.public void characters(char[] ch, int start, int length)
characters in interface org.xml.sax.ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerch - character buffer.start - the start index.length - the length of the valid character data.protected java.lang.String getCurrentText()
protected void clearCurrentText()