public class CSVUtils extends Object
Constructor and Description |
---|
CSVUtils() |
Modifier and Type | Method and Description |
---|---|
static Long |
countCSVRows(String path,
char delimiter,
boolean hasHeaders) |
static ArrayList<Integer> |
CSVTOIntegerList(String theString) |
static ArrayList<String> |
CSVToStringList(String theString) |
static String |
listToCSV(List values) |
static List<List<Field>> |
loadCSV(String path,
char delimiter) |
static long |
resultSetToCSVFile(ResultSet rs,
String outFile,
boolean writeHeaders) |
public static long resultSetToCSVFile(ResultSet rs, String outFile, boolean writeHeaders) throws IOException, SQLException
IOException
SQLException
public static List<List<Field>> loadCSV(String path, char delimiter) throws Exception
Exception
Copyright © 2017. All Rights Reserved.