CSVReader
A small java class (5 kiB) with which you can parse CSV files. It knows different separator chars, multiline fields and separators inside field values.Download CSVReader.jar and CSVReader.src.jar (2005-03-27).
Included is an JUnit test suite so that you can easily verify the correctness of the class.
Usage
import de.cweiske.tools.CSVReader; class CSVReaderTest() { public static void main(String[] args) { CSVReader cr = new CSVReader(); String[][] arResult; //from http://www.ricebridge.com/products/csvman/why.htm cr.setData( "Name,Address,Born\r\n\"Smith, Adam\", \"Edinburgh\r\nScotland\", 1723\r\n\"Hobbes, Thomas\", \"Paris\", 1588"); arResult = cr.parseData(); //Smith, Adam System.out.println(arResult[1][0]); } }