public class CSVReader
extends java.lang.Object
| Constructor and Description |
|---|
CSVReader(java.lang.String file)
Basic constructor that assumes the first line should be skipped.
|
CSVReader(java.lang.String file,
boolean skipHeader)
A constructor that requires the name of the file to open
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getNext()
Reads a line (nextLine()) and splits it into a String array by the DELIMINATOR, if the line is
empty it will also return null.
|
boolean |
hasNext()
Checks to see if the fileScanner has more lines and returns the answer.
|
public CSVReader(java.lang.String file)
file - name of file to readpublic CSVReader(java.lang.String file,
boolean skipHeader)
file - filename to readskipHeader - true to skip header, false if it is to be readpublic java.util.List<java.lang.String> getNext()
public boolean hasNext()