Groovy Documentation

griffon.plugins.csv
[Groovy] Class CSVReaderUtils

java.lang.Object
  griffon.plugins.csv.CSVReaderUtils

class CSVReaderUtils
extends Object

Utility class for adding CSV parsing capability to core Java/Groovy classes (String, File, InputStream, Reader).

Authors:
Les Hazlewood
Since:
0.1


Constructor Summary
CSVReaderUtils()

 
Method Summary
static void eachLine(au.com.bytecode.opencsv.CSVReader csvReader, Closure c)

static void eachLine(File file, Closure c)

static void eachLine(InputStream is, Closure c)

static void eachLine(Reader r, Closure c)

static void eachLine(String csv, Closure c)

static au.com.bytecode.opencsv.CSVReader toCsvReader(File file, def settingsMap)

static au.com.bytecode.opencsv.CSVReader toCsvReader(InputStream is, def settingsMap)

static au.com.bytecode.opencsv.CSVReader toCsvReader(Reader r, def settingsMap)

static au.com.bytecode.opencsv.CSVReader toCsvReader(String s, def settingsMap)

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Constructor Detail

CSVReaderUtils

CSVReaderUtils()


 
Method Detail

eachLine

static void eachLine(au.com.bytecode.opencsv.CSVReader csvReader, Closure c)


eachLine

static void eachLine(File file, Closure c)


eachLine

static void eachLine(InputStream is, Closure c)


eachLine

static void eachLine(Reader r, Closure c)


eachLine

static void eachLine(String csv, Closure c)


toCsvReader

static au.com.bytecode.opencsv.CSVReader toCsvReader(File file, def settingsMap)


toCsvReader

static au.com.bytecode.opencsv.CSVReader toCsvReader(InputStream is, def settingsMap)


toCsvReader

static au.com.bytecode.opencsv.CSVReader toCsvReader(Reader r, def settingsMap)


toCsvReader

static au.com.bytecode.opencsv.CSVReader toCsvReader(String s, def settingsMap)


 

Groovy Documentation