JFreeChart 1.0.14-redhat-2

org.jfree.data.xml
Class DatasetReader

java.lang.Object
  extended by org.jfree.data.xml.DatasetReader

public class DatasetReader
extends Object

A utility class for reading datasets from XML.


Constructor Summary
DatasetReader()
           
 
Method Summary
static CategoryDataset readCategoryDatasetFromXML(File file)
          Reads a CategoryDataset from a file.
static CategoryDataset readCategoryDatasetFromXML(InputStream in)
          Reads a CategoryDataset from a stream.
static PieDataset readPieDatasetFromXML(File file)
          Reads a PieDataset from an XML file.
static PieDataset readPieDatasetFromXML(InputStream in)
          Reads a PieDataset from a stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatasetReader

public DatasetReader()
Method Detail

readPieDatasetFromXML

public static PieDataset readPieDatasetFromXML(File file)
                                        throws IOException
Reads a PieDataset from an XML file.

Parameters:
file - the file.
Returns:
A dataset.
Throws:
IOException - if there is a problem reading the file.

readPieDatasetFromXML

public static PieDataset readPieDatasetFromXML(InputStream in)
                                        throws IOException
Reads a PieDataset from a stream.

Parameters:
in - the input stream.
Returns:
A dataset.
Throws:
IOException - if there is an I/O error.

readCategoryDatasetFromXML

public static CategoryDataset readCategoryDatasetFromXML(File file)
                                                  throws IOException
Reads a CategoryDataset from a file.

Parameters:
file - the file.
Returns:
A dataset.
Throws:
IOException - if there is a problem reading the file.

readCategoryDatasetFromXML

public static CategoryDataset readCategoryDatasetFromXML(InputStream in)
                                                  throws IOException
Reads a CategoryDataset from a stream.

Parameters:
in - the stream.
Returns:
A dataset.
Throws:
IOException - if there is a problem reading the file.

JFreeChart 1.0.14-redhat-2

Copyright © 2001-2012 JFree.org. All Rights Reserved.