Super CSV v1.50 released

Author: Kasper B. Graversen, 18/08/08
Keywords: Java, CSV
Abstract: There are many free CSV frameworks out there, but Super CSV is the best!.
subscribe to my RSS feed


Bookmark and Share


Super CSV v1.50 released

Super CSV is a free Java CSV framework. It has been developed over around a year by now and according to Source Forge statistics (which I don't really believe ;) has been downloaded a frightening number of times. Well, that is before their statistics module broke down some months ago. I know that CSV files really have gone out of fashion, but this is really unfortunate. If you didn't know it, I don't think too highly of XML. I've tried it project after project, XML is regarded the holy grail and all you get out of it is slugish'ness. Anyway, here is the latest release of Super CSV. Many thanks to Dominique De Vito for his many ideas and contributions.

Enough talking, it's time for the juicy details of the release...

  • Added the following cell processors
    • Equals - test if all values are equals alone, or equals to a given constant
    • FmtBoot - format as a string any Boolean value
    • HashMapper - to map encountered values with other objects/values
    • IsIncludedIn - to ensure input value belongs to a specific set of given values
    • NotNull - to ensure non-null values for columns
    • ParseBigDecimal - parse a string to get a big decimal
    • StrNotNullOrEmpty - to ensure non-null or empty values for columns
    • StrReplace - for string manipulation
    • StrRegExReplace - for string manipulation
  • Deprecated the following cell processors
    • "Required", re-implemented as "RequiredHashCode"
  • Unique has been renamed to UniqueHashCode
  • A new processor named Unique has been implemented
    • The Unique processor is now based on equals() identity and not anymore on hashCode() identity. Previous definition based on hashCode() has been renamed into UniqueHashCode.
  • BeanReader and BeanWriter now supports method overloading of get/set methods.
  • Cell processors now only throw SuperCSVException
  • Added the following exceptions
    • ClassCastInputCSVException
    • NullInputException: this exception is raised now for unexpected 'null' input value for processor. Numerous processors have been modified to use that exception class.
  • better handling of lines without the expected number of columns
    • The raised exception is now associated with a valid CSVContext object (previously, this object was 'null')
  • Better error messages, more context information in the exception and available to the programmer
To get a copy of the latest version visit the download page If you want more code examples go here



Comments

If you have any comments to this article, please drop me a mail at firstclassthoughts at gmail dot com please indicate if I can't publish whole or parts of your comment on the site.


If you like this site consider subscribing to my RSS feed or how about subscribing by Email.


Help spread the word

Share this post on your favorite social bookmarking sites:
If you enjoyed this article, found it thought provoking, educative or otherwise good, please link to this page from your page or social bookmarking page. If you have any texts you think are worth publishing on First Class Thoughts, don't hesitate to send me a mail! Quality always welcome.


Bookmark and Share


The most recent contributions
28/07/09 Magic in mathematics II Fun with the number cyclic numbers, and specifically with 142857 as it is the smallest of such numbers.
13/07/09 My top 8 time-saving Firefox shortcuts This article presents my favorite top 8 time-saving shortcuts in Firefox 3.0 and Firefox 3.5. Get to know these and you'll be saving a lot of time. They have been ordered by "the element of most surprise"
20/05/09 Board Game Jungle speed / Arriba Review of the cool game "Jungle Speed" aka. "Arriba".
16/05/09 Danish Twin words "Twin words" are words that not only have multiple meanings, they must be composed next to each other in meaningful sentences. This article explores the concept of twin words.
Nothing of interest? Try browsing the entire article archive...