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 CategoryDatasetReads aCategoryDatasetfrom a file.static CategoryDatasetReads aCategoryDatasetfrom a stream.static PieDatasetreadPieDatasetFromXML(File file) Reads aPieDatasetfrom an XML file.static PieDatasetReads aPieDatasetfrom a stream.
-
Constructor Details
-
DatasetReader
public DatasetReader()
-
-
Method Details
-
readPieDatasetFromXML
Reads aPieDatasetfrom an XML file.- Parameters:
file- the file.- Returns:
- A dataset.
- Throws:
IOException- if there is a problem reading the file.
-
readPieDatasetFromXML
Reads aPieDatasetfrom a stream.- Parameters:
in- the input stream.- Returns:
- A dataset.
- Throws:
IOException- if there is an I/O error.
-
readCategoryDatasetFromXML
Reads aCategoryDatasetfrom a file.- Parameters:
file- the file.- Returns:
- A dataset.
- Throws:
IOException- if there is a problem reading the file.
-
readCategoryDatasetFromXML
Reads aCategoryDatasetfrom a stream.- Parameters:
in- the stream.- Returns:
- A dataset.
- Throws:
IOException- if there is a problem reading the file.
-