Package org.jfree.data.xml
Class DatasetReader
java.lang.Object
org.jfree.data.xml.DatasetReader
A utility class for reading datasets from XML.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CategoryDataset
Reads aCategoryDataset
from a file.static CategoryDataset
Reads aCategoryDataset
from a stream.static PieDataset
readPieDatasetFromXML
(File file) Reads aPieDataset
from an XML file.static PieDataset
Reads aPieDataset
from a stream.
-
Constructor Details
-
DatasetReader
public DatasetReader()
-
-
Method Details
-
readPieDatasetFromXML
Reads aPieDataset
from an XML file.- Parameters:
file
- the file.- Returns:
- A dataset.
- Throws:
IOException
- if there is a problem reading the file.
-
readPieDatasetFromXML
Reads aPieDataset
from a stream.- Parameters:
in
- the input stream.- Returns:
- A dataset.
- Throws:
IOException
- if there is an I/O error.
-
readCategoryDatasetFromXML
Reads aCategoryDataset
from a file.- Parameters:
file
- the file.- Returns:
- A dataset.
- Throws:
IOException
- if there is a problem reading the file.
-
readCategoryDatasetFromXML
Reads aCategoryDataset
from a stream.- Parameters:
in
- the stream.- Returns:
- A dataset.
- Throws:
IOException
- if there is a problem reading the file.
-