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
IOExceptionSQLExceptionpublic static List<List<Field>> loadCSV(String path, char delimiter) throws Exception
ExceptionCopyright © 2015. All Rights Reserved.