@Test public void testRead() throws IOException { String text = "\"a\",\"b\",\"c\",\"d\",\"e\"\r\n" + "\"A,B,\"\"C\"\" \",1,2.0,true,\r\n" + "\" D\rÉ\nF\r\n\",2,4.0,false\r\n" + ",3,6.0\n"; List<Map<String, ?>> expected = listOf( mapOf( entry("a", "A,B,\"C\" "), entry("b", "1"), entry("c", "2.0"), entry("d", "true") ), mapOf( entry("a", " D\rÉ\nF\r\n"), entry("b", "2"), entry("c", "4.0"), entry("d", "false") ), mapOf( entry("b", "3"), entry("c", "6.0") ) ); StringReader reader = new StringReader(text); CSVDecoder csvDecoder = new CSVDecoder(); List<Map<String, String>> actual = csvDecoder.read(reader).stream().collect(Collectors.toList()); assertEquals(expected, actual); }
@Override public Cursor read(InputStream inputStream) throws IOException { return super.read(inputStream); }
CSVDecoder extends Decoder { @Override public Cursor read(InputStream inputStream) throws IOException { return super.read(inputStream); } }
CSVDecoder extends Decoder { @Override public Cursor read(InputStream inputStream) throws IOException { return super.read(inputStream); } CSVDecoder();  CSVDecoder(char delimiter); }
CSVDecoder extends Decoder { @Override public Cursor read(InputStream inputStream) throws IOException { return super.read(inputStream); } CSVDecoder();  CSVDecoder(char delimiter); @Override Cursor read(InputStream inputStream); @Override Cursor read(Reader reader); }
CSVDecoder extends Decoder { @Override public Cursor read(InputStream inputStream) throws IOException { return super.read(inputStream); } CSVDecoder();  CSVDecoder(char delimiter); @Override Cursor read(InputStream inputStream); @Override Cursor read(Reader reader);  }