Nov
16
2005

opencsv 1.1 – now with csv writing!

This is the version that I was never going to write, but I’ve decided to add csv export to my little PasswordSafeSWT project and, since people have asked about csv writing capability, I now had a reason for opencsv 1.1.

opencsv is an ultra-lightweight minimalist cvs parsing and writing library for Java under an Apache 2.0 license. The API is extremely tiny with only two methods and a couple of constructors. It handles embedded carriage returns, custom delimiters, and the common cases for most csv files. Might save you an hour if you’re in a hurry.

About the Author: Glen Smith

5 Comments + Add Comment

  • Hi Glen, I tried to check out your opencvs project from sourceforge via CVS, but the directory structure doesn’t contain any useful files (*.java).

    I’d like to add support for quoted quote characters.

  • Robert, the tar.gz download of opencsv should come with the source included – so you should already have it (check the src directory with the download). Feel free to add your changes (and send them in and I’ll add them to the next release).

  • Hi Glen, Its great Code but I would loved it more if we could convert CSV to XML using this. Help me out. Thanks. Keep the good work going.

  • good idea, but i think that, some framework had already implement this function,

  • Hi Glen Smith,

    Please add methods to compare two csv files( May compared with particular instances! meaning long, String, BigDecimal,. . ). Waiting for your response.

Leave a comment

Glen Smith

About Glen

Co-author Grails in Action