public class

CategoryDatasetHandler

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

Class Overview

A SAX handler for reading a CategoryDataset from an XML file.

Summary

[Expand]
Inherited Constants
From interface org.jfree.data.xml.DatasetTags
Public Constructors
CategoryDatasetHandler()
Creates a new handler.
Public Methods
void addItem(Comparable rowKey, Comparable columnKey, Number value)
Adds an item to the dataset.
void endElement(String namespaceURI, String localName, String qName)
The end of an element.
CategoryDataset getDataset()
Returns the dataset.
void startElement(String namespaceURI, String localName, String qName, Attributes atts)
The start of an element.
[Expand]
Inherited Methods
From class org.jfree.data.xml.RootHandler
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 CategoryDatasetHandler ()

Creates a new handler.

Public Methods

public void addItem (Comparable rowKey, Comparable columnKey, Number value)

Adds an item to the dataset.

Parameters
rowKey the row key.
columnKey the column key.
value the value.

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 CategoryDataset getDataset ()

Returns the dataset.

Returns
  • The dataset.

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 element attributes.
Throws
SAXException for errors.