com.panayotis.gnuplot.dataset
Class FileDataSet
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<ArrayList<String>>
com.panayotis.gnuplot.dataset.GenericDataSet
com.panayotis.gnuplot.dataset.FileDataSet
- All Implemented Interfaces:
- DataSet, Serializable, Cloneable, Iterable<ArrayList<String>>, Collection<ArrayList<String>>, List<ArrayList<String>>, RandomAccess
public class FileDataSet
- extends GenericDataSet
This object uses data sets already stored in files.
- Author:
- teras
- See Also:
- Serialized Form
|
Constructor Summary |
FileDataSet(File datafile)
Creates a new instance of a data set, stored in a file. |
| Methods inherited from class java.util.ArrayList |
clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, size, toArray, toArray, trimToSize |
| Methods inherited from interface com.panayotis.gnuplot.dataset.DataSet |
size |
FileDataSet
public FileDataSet(File datafile)
throws IOException,
NumberFormatException,
ArrayIndexOutOfBoundsException
- Creates a new instance of a data set, stored in a file.
When this object is initialized, the file is read into memory.
- Parameters:
datafile - The file containing the data set
- Throws:
IOException - when a I/O error is found
ArrayIndexOutOfBoundsException - when the file has not consistent number of columns
NumberFormatException - when the numbers inside the file are not parsable
Copyright © 2013. All Rights Reserved.