@Test public void testParseWithLineCommentFilter() throws Throwable { String testFileName = "CSV_testdata_with_commented_lines.csv"; List<RawDataFilterString> commentFilters = new ArrayList<>(); FilterCommentedLine filter = new FilterCommentedLine(); filter.init( null, "#" ); commentFilters.add( filter ); filter = new FilterCommentedLine(); filter.init( null, " commentFilters.add( filter ); InputStream is; List<List<String>>actual; myLog.debug( "Testing empty fields" ); is = ClassLoader.getSystemResourceAsStream( testFileName ); actual = myClassUnderTest.parse( is, ";", "UTF-8", commentFilters ); myLog.debug( "Received: " + actual ); assertEquals( 2, actual.size() ); }
public List<List<String>> parse( InputStream aInputStream, String aDelimiter, String aEncoding ) throws SdiException { return parse( aInputStream, aDelimiter, aEncoding, null ); }
CsvParser { public List<List<String>> parse( InputStream aInputStream, String aDelimiter, String aEncoding ) throws SdiException { return parse( aInputStream, aDelimiter, aEncoding, null ); } }
CsvParser { public List<List<String>> parse( InputStream aInputStream, String aDelimiter, String aEncoding ) throws SdiException { return parse( aInputStream, aDelimiter, aEncoding, null ); }  }
CsvParser { public List<List<String>> parse( InputStream aInputStream, String aDelimiter, String aEncoding ) throws SdiException { return parse( aInputStream, aDelimiter, aEncoding, null ); }  List<List<String>> parse( InputStream aInputStream,
                                     String aDelimiter,
                                     String aEncoding ); List<List<String>> parse( InputStream aInputStream,
                                     String aDelimiter,
                                     String aEncoding,
                                     List<RawDataFilterString> aFilters ); }
CsvParser { public List<List<String>> parse( InputStream aInputStream, String aDelimiter, String aEncoding ) throws SdiException { return parse( aInputStream, aDelimiter, aEncoding, null ); }  List<List<String>> parse( InputStream aInputStream,
                                     String aDelimiter,
                                     String aEncoding ); List<List<String>> parse( InputStream aInputStream,
                                     String aDelimiter,
                                     String aEncoding,
                                     List<RawDataFilterString> aFilters );  }