klyn.io.csv.CSVReader.readRows
method
public readRows() as ArrayList<ArrayList<String>>
Description

Explicitly materializes all remaining records and exhausts this cursor. Memory grows with the returned data; prefer for for large inputs.

Returns

Remaining records, excluding any previously yielded or skipped row.

Throws
  • CSVException or IOException when advancing fails.
Example
rows = CSVReader(StringReader("name\nAda\nAda")).readRows()
assert rows.size == 3ul
assert rows.indexOf(["Ada"]) == 1
assert rows.lastIndexOf(["Ada"]) == 2