@Test public void testWhitespaceSeparatorsIgnoringEmptyLinesAndComments() throws Exception { String csv = "\n CsvReader reader = createReader(csv, true, " List<String[]> records = reader.readStringRecords(); assertEquals(3, records.size()); assertArrayEquals(new String[]{"a", "b", "c"}, records.get(0)); assertArrayEquals(new String[]{"d"}, records.get(1)); assertArrayEquals(new String[]{"i"}, records.get(2)); }
public List<String[]> readStringRecords() throws IOException { ArrayList<String[]> vector = new ArrayList<String[]>(256); String[] record; while ((record = readRecord()) != null) { vector.add(record); } vector.trimToSize(); return vector; }
CsvReader extends LineNumberReader { public List<String[]> readStringRecords() throws IOException { ArrayList<String[]> vector = new ArrayList<String[]>(256); String[] record; while ((record = readRecord()) != null) { vector.add(record); } vector.trimToSize(); return vector; } }
CsvReader extends LineNumberReader { public List<String[]> readStringRecords() throws IOException { ArrayList<String[]> vector = new ArrayList<String[]>(256); String[] record; while ((record = readRecord()) != null) { vector.add(record); } vector.trimToSize(); return vector; } CsvReader(Reader reader, char[] separators);  CsvReader(Reader reader, char[] separators, boolean ignoreEmptyLines, String commentPrefix); }
CsvReader extends LineNumberReader { public List<String[]> readStringRecords() throws IOException { ArrayList<String[]> vector = new ArrayList<String[]>(256); String[] record; while ((record = readRecord()) != null) { vector.add(record); } vector.trimToSize(); return vector; } CsvReader(Reader reader, char[] separators);  CsvReader(Reader reader, char[] separators, boolean ignoreEmptyLines, String commentPrefix); final char[] getSeparators(); final boolean ignoresEmptyLines(); final String getCommentPrefix(); String[] readRecord(); double[] readDoubleRecord(); List<String[]> readStringRecords(); List<double[]> readDoubleRecords(); }
CsvReader extends LineNumberReader { public List<String[]> readStringRecords() throws IOException { ArrayList<String[]> vector = new ArrayList<String[]>(256); String[] record; while ((record = readRecord()) != null) { vector.add(record); } vector.trimToSize(); return vector; } CsvReader(Reader reader, char[] separators);  CsvReader(Reader reader, char[] separators, boolean ignoreEmptyLines, String commentPrefix); final char[] getSeparators(); final boolean ignoresEmptyLines(); final String getCommentPrefix(); String[] readRecord(); double[] readDoubleRecord(); List<String[]> readStringRecords(); List<double[]> readDoubleRecords();  }