v2.3 CSVReader reader = new CSVReader(New File("foo.csv"),'|');
nextLine = reader.readNext();
nextLine => "[bar]|[bar]"
This appears to be fixed in the 2.4-SNAPSHOT, which is not published to maven central. You can check it out from the SVN repo and build it with maven.
Since the OpenCSV project seems defunct for 2+ years now, I've started a new project, simplecsv, in the spirit of OpenCSV with some differences. It fixes the above issue. Link: https://github.com/quux00/simplecsv
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.