public class KeyHandler extends org.xml.sax.helpers.DefaultHandler implements DatasetTags
CATEGORYDATASET_TAG, ITEM_TAG, KEY_TAG, PIEDATASET_TAG, SERIES_TAG, VALUE_TAG| Constructor and Description |
|---|
KeyHandler(RootHandler rootHandler,
ItemHandler itemHandler)
Creates a new 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(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.
|
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warningpublic KeyHandler(RootHandler rootHandler, ItemHandler itemHandler)
rootHandler - the root handler.itemHandler - the item handler.public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlernamespaceURI - the namespace.localName - the element name.qName - the element name.atts - the attributes.SAXException - for errors.public void endElement(String namespaceURI, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class org.xml.sax.helpers.DefaultHandlernamespaceURI - the namespace.localName - the element name.qName - the element name.SAXException - for errors.public void characters(char[] ch,
int start,
int length)
characters in interface ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerch - character buffer.start - the start index.length - the length of the valid character data.protected String getCurrentText()
protected void clearCurrentText()
Copyright © 2001–2017 JFree.org. All rights reserved.