User Activity

  • Posted a comment on ticket #230 on opencsv

    And one implication of the problem above is that a two steps parsing (which is my case) is going to fail with com.opencsv.exceptions.CsvMalformedLineException: @Test void twoStepsParsing() throws IOException, CsvException { CSVParser firstStepParse = new CSVParserBuilder() .withSeparator(',') .withQuoteChar('"') .withIgnoreQuotations(false) .withStrictQuotes(false) .build(); CSVParser secondStepParse = new CSVParserBuilder() .withSeparator('|') .withQuoteChar('"') .withIgnoreQuotations(false) .withStrictQuotes(false)...

  • Modified a comment on ticket #230 on opencsv

    Hi Scott! Sorry! Here you are a working example of the problem: @Test void bug() throws CsvValidationException, IOException { CSVParser parser = new CSVParserBuilder() .withSeparator(',') .withQuoteChar('"') .withIgnoreQuotations(false) .withStrictQuotes(false) .build(); String data = "a=1|b=2,c=\"x\"|d=\"y\""; // ^ // The scaped double quote after y will be removed after parsing String[] expected = { "a=1|b=2", "c=\"x\"|d=\"y\"" }; String[] actual = new CSVReaderBuilder( new StringReader(data))...

  • Posted a comment on ticket #230 on opencsv

    Hi Scott! Sorry! Here you are a working example of the problem: @Test void bug() throws CsvValidationException, IOException { CSVParser parser = new CSVParserBuilder() .withSeparator(',') .withQuoteChar('"') .withIgnoreQuotations(false) .withStrictQuotes(false) .build(); String data = "a=1|b=2,c=\"x\"|d=\"y\""; String[] expected = {"a=1|b=2", "c=\"x\"|d=\"y\""}; // ^ // The double quote after y will be removed after parsing String[] actual = new CSVReaderBuilder( new StringReader(data)) .withCSVParser(parser)...

  • Created ticket #230 on opencsv

    Quote char at the end of string incorrectly removed from last token during parsing

View All

Personal Data

Username:
marcojk
Joined:
2016-07-26 12:32:03

Projects

This is a list of open source software projects that Marco Antonio Jonack is associated with:

  • Project Logo Demoiselle Framework, process, docs and tools to make easy JEE development. Last Updated:

Personal Tools