org.jfree.data.xml

Class RootHandler

Implemented Interfaces:
DatasetTags
Known Direct Subclasses:
CategoryDatasetHandler, PieDatasetHandler

public class RootHandler
extends DefaultHandler
implements DatasetTags

A SAX handler that delegates work to sub-handlers.

Fields inherited from interface org.jfree.data.xml.DatasetTags

CATEGORYDATASET_TAG, ITEM_TAG, KEY_TAG, PIEDATASET_TAG, SERIES_TAG, VALUE_TAG

Constructor Summary

RootHandler()
Creates a new handler.

Method Summary

void
characters(char[] ch, int start, int length)
Receives some (or all) of the text in the current element.
DefaultHandler
getCurrentHandler()
Returns the handler at the top of the stack.
Stack
getSubHandlers()
Returns the stack of sub handlers.
DefaultHandler
popSubHandler()
Pops a sub-handler from the stack.
void
pushSubHandler(DefaultHandler subhandler)
Pushes a sub-handler onto the stack.

Constructor Details

RootHandler

public RootHandler()
Creates a new handler.

Method Details

characters

public void characters(char[] ch,
                       int start,
                       int length)
            throws SAXException
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.

getCurrentHandler

public DefaultHandler getCurrentHandler()
Returns the handler at the top of the stack.
Returns:
The handler.

getSubHandlers

public Stack getSubHandlers()
Returns the stack of sub handlers.
Returns:
The sub-handler stack.

popSubHandler

public DefaultHandler popSubHandler()
Pops a sub-handler from the stack.
Returns:
The sub-handler.

pushSubHandler

public void pushSubHandler(DefaultHandler subhandler)
Pushes a sub-handler onto the stack.
Parameters:
subhandler - the sub-handler.