org.gcube.application.aquamaps.aquamapsservice.stubs.datamodel.utils
Class CSVUtils

java.lang.Object
  extended by org.gcube.application.aquamaps.aquamapsservice.stubs.datamodel.utils.CSVUtils

public class CSVUtils
extends Object


Constructor Summary
CSVUtils()
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSVUtils

public CSVUtils()
Method Detail

CSVToStringList

public static ArrayList<String> CSVToStringList(String theString)

CSVTOIntegerList

public static ArrayList<Integer> CSVTOIntegerList(String theString)

listToCSV

public static String listToCSV(List values)

resultSetToCSVFile

public static long resultSetToCSVFile(ResultSet rs,
                                      String outFile,
                                      boolean writeHeaders)
                               throws IOException,
                                      SQLException
Throws:
IOException
SQLException

loadCSV

public static List<List<Field>> loadCSV(String path,
                                        char delimiter)
                                 throws Exception
Throws:
Exception

countCSVRows

public static Long countCSVRows(String path,
                                char delimiter,
                                boolean hasHeaders)
                         throws Exception
Throws:
Exception


Copyright © 2013. All Rights Reserved.