Class DatasetReader


  • public class DatasetReader
    extends java.lang.Object
    A utility class for reading datasets from XML.
    • Method Detail

      • readPieDatasetFromXML

        public static PieDataset readPieDatasetFromXML​(java.io.File file)
                                                throws java.io.IOException
        Reads a PieDataset from an XML file.
        Parameters:
        file - the file.
        Returns:
        A dataset.
        Throws:
        java.io.IOException - if there is a problem reading the file.
      • readPieDatasetFromXML

        public static PieDataset readPieDatasetFromXML​(java.io.InputStream in)
                                                throws java.io.IOException
        Reads a PieDataset from a stream.
        Parameters:
        in - the input stream.
        Returns:
        A dataset.
        Throws:
        java.io.IOException - if there is an I/O error.
      • readCategoryDatasetFromXML

        public static CategoryDataset readCategoryDatasetFromXML​(java.io.File file)
                                                          throws java.io.IOException
        Reads a CategoryDataset from a file.
        Parameters:
        file - the file.
        Returns:
        A dataset.
        Throws:
        java.io.IOException - if there is a problem reading the file.
      • readCategoryDatasetFromXML

        public static CategoryDataset readCategoryDatasetFromXML​(java.io.InputStream in)
                                                          throws java.io.IOException
        Reads a CategoryDataset from a stream.
        Parameters:
        in - the stream.
        Returns:
        A dataset.
        Throws:
        java.io.IOException - if there is a problem reading the file.