uaa.feral.util.loader
Class CSVLoader

java.lang.Object
  extended by uaa.feral.util.loader.CSVLoader

public class CSVLoader
extends java.lang.Object

Loader to load csv files

Author:
Mark Altaweel

Constructor Summary
CSVLoader()
          Default constructor
 
Method Summary
 java.util.List<java.util.Map> loadCSV(java.lang.String fName)
          Loader method for loading a csv file with column headings and row data
static java.util.List<java.util.Map> loadCSVStatic(java.lang.String fName)
          Method used to call the loader for the csv data
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSVLoader

public CSVLoader()
Default constructor

Method Detail

loadCSVStatic

public static java.util.List<java.util.Map> loadCSVStatic(java.lang.String fName)
Method used to call the loader for the csv data

Parameters:
fName - a file name
Returns:
a list of maps that have data from the csv file

loadCSV

public java.util.List<java.util.Map> loadCSV(java.lang.String fName)
Loader method for loading a csv file with column headings and row data

Parameters:
fName - represents the file name as a string object
data - is a map containing the string key and the list contaning the data map of that key
Returns:
the data map that was inputed will be returned