opencsv Icon

opencsv

4.6 Stars (48)
1,347 Downloads (This Week)
Last Update:
Download opencsv-3.8.jar
Browse All Files

Description

A Simple CSV Parser for Java under a commercial-friendly Apache 2.0 license

opencsv Web Site

Categories

Data Formats

License

Apache License V2.0

Features

  • CSV Parsing

KEEP ME UPDATED

User Ratings

★★★★★
★★★★
★★★
★★
41
3
0
0
4
ease 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 3 / 5
features 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 4 / 5
design 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 3 / 5
support 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5 3 / 5
Write a Review

User Reviews

  • 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    I would like to use, but it's buggy. Try to save this> writer.writeNext(new String[]{"te\\\"st", "test"}); And try to read... Csv reader not able to read this file... Furthermore, unable to use on java 6 projects.

    Posted 07/09/2015
  • 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    Nice project! You did a great job. Thank you!

    Posted 02/12/2013
  • 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    Nice little library, but I really wish quotes weren't mandatory in the writer. Until that's resolved I just can't use this. The Javadoc is a bit confusing, I guess it is out of sync with the current release, since it shows boolean flags to address that in writeNext() which don't appear to be available in the current release (2.3 I think). I'd also prefer a CSVWriter constructor argument flag to disable quotes for all calls to writeNext() rather than having to specify the preference on every write. IMO the "typical" case would not require quotes for every single value. Another nice thing (haven't thought about how it'd be implemented) would be a way to specify an auto-quote preference on specific columns. I will check the repo to see if there's a newer version which addresses some of this, but until some of these are addressed in the convenient release download I'm afraid I have to give this a "- 1/2" rounded down to -1. Will update with a new review if the quote issue gets fixed...

    Posted 02/19/2012
  • 1 of 5 2 of 5 3 of 5 4 of 5 5 of 5

    Got a Error while trying to use CSVtoBean class Caused by: java.lang.NullPointerException at au.com.bytecode.opencsv.bean.HeaderColumnNameMappingStrategy.createBean(Unknown Source) at au.com.bytecode.opencsv.bean.CsvToBean.processLine(Unknown Source) ... 2 more Testing Code: import java.io.FileNotFoundException; import java.io.FileReader; import java.util.List; import au.com.bytecode.opencsv.CSVReader; import au.com.bytecode.opencsv.bean.ColumnPositionMappingStrategy; import au.com.bytecode.opencsv.bean.CsvToBean; public class OpenCSVTest { /** * @param args * @throws FileNotFoundException */ public static void main(String[] args) throws FileNotFoundException { /* Offer is a simple POJO class */ ColumnPositionMappingStrategy<Offer> colStrt = new ColumnPositionMappingStrategy<Offer>(); CsvToBean<Offer> c2b = new CsvToBean<Offer>(); CSVReader reader = new CSVReader(new FileReader("C:/offer.csv")); List<Offer> offerList = c2b.parse(colStrt, reader); for (Offer offer: offerList) { System.out.println(offer.toString()); } } }

    Posted 12/02/2011
Read more reviews

Additional Project Details

Intended Audience

Developers

Programming Language

Java

Registered

2005-09-21

Thanks for helping keep SourceForge clean.

Screenshot instructions:
Windows
Mac
Red Hat Linux   Ubuntu

Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)

More information about our ad policies
X

Briefly describe the problem (required):

Upload screenshot of ad (required):
Select a file, or drag & drop file here.

Please provide the ad click URL, if possible:

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks