public class

ValueHandler

extends DefaultHandler
implements DatasetTags
java.lang.Object
   ↳ org.xml.sax.helpers.DefaultHandler
     ↳ org.jfree.data.xml.ValueHandler

Class Overview

A handler for reading a 'Value' element.

Summary

[Expand]
Inherited Constants
From interface org.jfree.data.xml.DatasetTags
Public Constructors
ValueHandler(RootHandler rootHandler, ItemHandler itemHandler)
Creates a new value handler.
Public Methods
void characters(char[] ch, int start, int length)
Receives some (or all) of the text in the current element.
void endElement(String namespaceURI, String localName, String qName)
The end of an element.
void startElement(String namespaceURI, String localName, String qName, Attributes atts)
The start of an element.
Protected Methods
void clearCurrentText()
Removes all text from the textbuffer at the end of a CDATA section.
String getCurrentText()
Returns the current text of the textbuffer.
[Expand]
Inherited Methods
From class org.xml.sax.helpers.DefaultHandler
From class java.lang.Object
From interface org.xml.sax.ContentHandler
From interface org.xml.sax.DTDHandler
From interface org.xml.sax.EntityResolver
From interface org.xml.sax.ErrorHandler

Public Constructors

public ValueHandler (RootHandler rootHandler, ItemHandler itemHandler)

Creates a new value handler.

Parameters
rootHandler the root handler.
itemHandler the item handler.

Public Methods

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.

public void endElement (String namespaceURI, String localName, String qName)

The end of an element.

Parameters
namespaceURI the namespace.
localName the element name.
qName the element name.
Throws
SAXException for errors.

public void startElement (String namespaceURI, String localName, String qName, Attributes atts)

The start of an element.

Parameters
namespaceURI the namespace.
localName the element name.
qName the element name.
atts the attributes.
Throws
SAXException for errors.

Protected Methods

protected void clearCurrentText ()

Removes all text from the textbuffer at the end of a CDATA section.

protected String getCurrentText ()

Returns the current text of the textbuffer.

Returns
  • The current text.