public class DatasetReader extends java.lang.Object
Constructor and Description |
---|
DatasetReader() |
Modifier and Type | Method and Description |
---|---|
static CategoryDataset |
readCategoryDatasetFromXML(java.io.File file)
Reads a
CategoryDataset from a file. |
static CategoryDataset |
readCategoryDatasetFromXML(java.io.InputStream in)
Reads a
CategoryDataset from a stream. |
static PieDataset |
readPieDatasetFromXML(java.io.File file)
Reads a
PieDataset from an XML file. |
static PieDataset |
readPieDatasetFromXML(java.io.InputStream in)
Reads a
PieDataset from a stream. |
public DatasetReader()
public static PieDataset readPieDatasetFromXML(java.io.File file) throws java.io.IOException
PieDataset
from an XML file.file
- the file.java.io.IOException
- if there is a problem reading the file.public static PieDataset readPieDatasetFromXML(java.io.InputStream in) throws java.io.IOException
PieDataset
from a stream.in
- the input stream.java.io.IOException
- if there is an I/O error.public static CategoryDataset readCategoryDatasetFromXML(java.io.File file) throws java.io.IOException
CategoryDataset
from a file.file
- the file.java.io.IOException
- if there is a problem reading the file.public static CategoryDataset readCategoryDatasetFromXML(java.io.InputStream in) throws java.io.IOException
CategoryDataset
from a stream.in
- the stream.java.io.IOException
- if there is a problem reading the file.