public class CSV extends Object
| Modifier and Type | Field and Description |
|---|---|
static char |
COMMA_DELIM |
static int |
MAX_COL_LENGTH |
static char |
TAB_DELIM |
| Constructor and Description |
|---|
CSV(List contents,
boolean withHeader) |
CSV(String csv,
boolean withHeader) |
CSV(String csv,
boolean withHeader,
char delimiter) |
| Modifier and Type | Method and Description |
|---|---|
static String |
createFromContents(List rows) |
static int |
determineColumns(String csv,
char delimiter) |
String |
getCsv() |
List |
getHeaders() |
List |
getStudents() |
List |
getStudentUsernames() |
static List |
retrieveContents(String csv,
char delimiter) |
static List |
retrieveHeaders(List rows) |
static List |
retrieveStudents(List rows,
boolean withHeader) |
public static final char COMMA_DELIM
public static final char TAB_DELIM
public static final int MAX_COL_LENGTH
public CSV(String csv, boolean withHeader) throws DataFormatException
DataFormatExceptionpublic CSV(String csv, boolean withHeader, char delimiter) throws DataFormatException
DataFormatExceptionpublic CSV(List contents, boolean withHeader)
public List getHeaders()
public List getStudents()
public List getStudentUsernames()
public String getCsv()
public static List retrieveContents(String csv, char delimiter) throws DataFormatException
DataFormatExceptionpublic static int determineColumns(String csv, char delimiter)
Copyright © 2004-2014 Sakai Project. All Rights Reserved.