com.panayotis.gnuplot.dataset
Class FileDataSet

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<java.util.ArrayList<java.lang.String>>
              extended by com.panayotis.gnuplot.dataset.GenericDataSet
                  extended by com.panayotis.gnuplot.dataset.FileDataSet
All Implemented Interfaces:
DataSet, java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<java.util.ArrayList<java.lang.String>>, java.util.Collection<java.util.ArrayList<java.lang.String>>, java.util.List<java.util.ArrayList<java.lang.String>>, java.util.RandomAccess

public class FileDataSet
extends GenericDataSet

This object uses data sets already stored in files.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
FileDataSet(java.io.File datafile)
          Creates a new instance of a data set, stored in a file.
 
Method Summary
 
Methods inherited from class com.panayotis.gnuplot.dataset.GenericDataSet
add, add, addAll, addAll, getDimensions, getPointValue, set
 
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 class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.panayotis.gnuplot.dataset.DataSet
size
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

FileDataSet

public FileDataSet(java.io.File datafile)
            throws java.io.IOException,
                   java.lang.NumberFormatException,
                   java.lang.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:
java.io.IOException - when a I/O error is found
java.lang.ArrayIndexOutOfBoundsException - when the file has not consistent number of columns
java.lang.NumberFormatException - when the numbers inside the file are not parsable