Package ai.preferred.regression.io
Class CSVInputData
- java.lang.Object
-
- ai.preferred.regression.io.CSVInputData
-
- All Implemented Interfaces:
AutoCloseable,Iterable<ArrayList<String>>
public class CSVInputData extends Object implements Iterable<ArrayList<String>>, AutoCloseable
-
-
Constructor Summary
Constructors Constructor Description CSVInputData(File file, boolean parseHeader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()ArrayList<String>getHeader()ArrayList<ArrayList<String>>getRecords()booleanhasHeader()Iterator<ArrayList<String>>iterator()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
CSVInputData
public CSVInputData(File file, boolean parseHeader) throws IOException
- Throws:
IOException
-
-
Method Detail
-
hasHeader
public boolean hasHeader()
-
getRecords
public ArrayList<ArrayList<String>> getRecords() throws IOException
- Throws:
IOException
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
-