CSVReader implements Closeable, Iterable<String[]> { public List<String[]> readAll() throws IOException { List<String[]> allElements = new ArrayList<String[]>(); while (hasNext) { String[] nextLineAsTokens = readNext(); if (nextLineAsTokens != null) allElements.add(nextLineAsTokens); } return allElements; } CSVReader(Reader reader);  CSVReader(Reader reader, char separator);  CSVReader(Reader reader, char separator, char quotechar);  CSVReader(Reader reader, char separator, char quotechar, boolean strictQuotes);  CSVReader(Reader reader, char separator,
                     char quotechar, char escape);  CSVReader(Reader reader, char separator, char quotechar, int line);  CSVReader(Reader reader, char separator, char quotechar, char escape, int line);  CSVReader(Reader reader, char separator, char quotechar, char escape, int line, boolean strictQuotes);  CSVReader(Reader reader, char separator, char quotechar, char escape, int line, boolean strictQuotes, boolean ignoreLeadingWhiteSpace);  CSVReader(Reader reader, int line, CSVParser csvParser); List<String[]> readAll(); String[] readNext(); void close(); Iterator<String[]> iterator(); static final int DEFAULT_SKIP_LINES; }
@Test public void testParseAll() throws IOException { assertEquals(7, csvr.readAll().size()); }