Documentation

Use the Cowbell CVSParser like this:

        // where parse takes a String
        String returned[][] = CSVParser.parse(getTestDataSet1());

or this

        // where you hand it a file relative or absolute path and a delimiter
        String returned[][] = CSVParser.parseFile("testUsers.csv",",");

or this

        // where you get all of the tokens back in a single list
        List parsedList = CSVParser.parseAsSingleList(csvInput,",");

or this

        // where you get back a List of lists with each inner list corresponding to a row of tokens
        List parsedList = CSVParser.parse(getTestDataSet1());

or this

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.