Reading CSV format description makes me feel that using 3rd party library would be less headache than writing it myself:
- http://en.wikipedia.org/wiki/Comma-separated_values
Wikipedia lists 10 or something known libraries:
- http://en.wikipedia.org/wiki/CSV_application_support
I compared libs listed using some kind of check list. OpenCSV turned out a winner to me (YMMV) with the following results:
+ maven
+ maven - release version // had some cryptic issues at _Hudson_ with snapshot references => prefer to be on a safe side
+ code examples
+ open source // as in "can hack myself if needed"
+ understandable javadoc // as opposed to eg javadocs of _genjava gj-csv_
+ compact API // YAGNI (note *flatpack* seems to have much richer API than OpenCSV)
- reference to specification used // I really like it when people can explain what they're doing
- reference to _RFC 4180_ support // would qualify as simplest form of specification to me
- releases changelog // absence is quite a pity, given how simple it'd be to get with maven-changes-plugin // _flatpack_, for comparison, has quite helpful changelog
+ bug tracking
+ active // as in "can submit a bug and expect a fixed release soon"
+ positive feedback // Recommended By 51 users at sourceforge (as of now)