Package com.helger.commons.csv
Class CSVIterator
java.lang.Object
com.helger.commons.csv.CSVIterator
- All Implemented Interfaces:
Iterator<ICommonsList<String>>
Provides an Iterator over the data found in opencsv.
- Author:
- OpenCSV, Philip Helger
-
Constructor Details
-
CSVIterator
- Parameters:
aReader- reader for the csv data. May not benull.- Throws:
IOException- if unable to read data from the reader.
-
-
Method Details
-
hasNext
public boolean hasNext()Returnstrueif the iteration has more elements. In other words, returnstrueif next() would return an element rather than throwing an exception.- Specified by:
hasNextin interfaceIterator<ICommonsList<String>>- Returns:
trueif thisCSVIteratorhas more elements.
-
next
Returns the next element in the iterator.- Specified by:
nextin interfaceIterator<ICommonsList<String>>- Returns:
- The next element of the iterator. Never
null.
-