org.jfree.data.xml

Class RootHandler

public class RootHandler extends DefaultHandler implements DatasetTags

A SAX handler that delegates work to sub-handlers.
Constructor Summary
RootHandler()
Creates a new handler.
Method Summary
voidcharacters(char[] ch, int start, int length)
Receives some (or all) of the text in the current element.
DefaultHandlergetCurrentHandler()
Returns the handler at the top of the stack.
StackgetSubHandlers()
Returns the stack of sub handlers.
DefaultHandlerpopSubHandler()
Pops a sub-handler from the stack.
voidpushSubHandler(DefaultHandler subhandler)
Pushes a sub-handler onto the stack.

Constructor Detail

RootHandler

public RootHandler()
Creates a new handler.

Method Detail

characters

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

Throws: SAXException for errors.

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.

Copyright © 2000-2009 by Object Refinery Limited. All Rights Reserved.