Package org.jfree.data.xml
Class RootHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
org.jfree.data.xml.RootHandler
- All Implemented Interfaces:
DatasetTags,ContentHandler,DTDHandler,EntityResolver,ErrorHandler
- Direct Known Subclasses:
CategoryDatasetHandler,PieDatasetHandler
A SAX handler that delegates work to sub-handlers.
-
Field Summary
FieldsFields inherited from interface org.jfree.data.xml.DatasetTags
CATEGORYDATASET_TAG, ITEM_TAG, KEY_TAG, PIEDATASET_TAG, SERIES_TAG, VALUE_TAG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) Receives some (or all) of the text in the current element.Returns the handler at the top of the stack.Returns the stack of sub handlers.Pops a sub-handler from the stack.voidpushSubHandler(DefaultHandler subhandler) Pushes a sub-handler onto the stack.Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
-
Field Details
-
subHandlers
The sub-handlers.
-
-
Constructor Details
-
RootHandler
public RootHandler()Creates a new handler.
-
-
Method Details
-
getSubHandlers
Returns the stack of sub handlers.- Returns:
- The sub-handler stack.
-
characters
Receives some (or all) of the text in the current element.- Specified by:
charactersin interfaceContentHandler- Overrides:
charactersin classDefaultHandler- Parameters:
ch- character buffer.start- the start index.length- the length of the valid character data.- Throws:
SAXException- for errors.
-
getCurrentHandler
Returns the handler at the top of the stack.- Returns:
- The handler.
-
pushSubHandler
Pushes a sub-handler onto the stack.- Parameters:
subhandler- the sub-handler.
-
popSubHandler
Pops a sub-handler from the stack.- Returns:
- The sub-handler.
-