Package | Description |
---|---|
ext.sulis.data |
Classes to read/write data from various formats like excel sheets, csv files etc.
|
Modifier and Type | Method and Description |
---|---|
CsvData |
CsvData.setAttributeExcludeSet(Set<String> filterSet)
set a Set
|
CsvData |
CsvData.setAttributeIncludeSet(Set<String> filterSet)
set a Set
|
CsvData |
CsvData.setCallback(String classMethod)
define per-row callback method, signature is (Map*lt;String, String>)
|
CsvData |
CsvData.setCallback2(String classMethod)
define per-row callback method, signature is (Map*lt;String, String>)
|
CsvData |
CsvData.setCharsets(String[] charsets)
set list of charsets to try reading the file with (defaults to utf-8, then latin1)
|
CsvData |
CsvData.setCommentSignature(String signature)
set the character signature which identifies a comment line
|
CsvData |
CsvData.setFieldDelimiter(String newDelim)
set the field delimiter character. if totally numeric make char from int value, else use first char;
|
CsvData |
CsvData.setFirstLineHeaders(boolean b)
flag if first line contains column headers
|
CsvData |
CsvData.setMaxRows(int maxRows)
set max number of rows to process
|
CsvData |
CsvData.setNewHeaderStart(String token)
set the string which at the beginning of a line indicates new headers; it will be stripped off.
|
CsvData |
CsvData.setQuoteCharacter(String newQuote)
set the quoting character (default "); if totally numeric make char from int value, else use first char;
if String passed in is empty sets quoted to false and quoteChar back to ", else quoted is set to true. |
CsvData |
CsvData.setQuoted(boolean b)
flag if data is quoted with ""
|
CsvData |
CsvData.setRecordDelimiter(String newDelim)
set the record delimiter character. if totally numeric make char from int value, else use first char;
|
CsvData |
CsvData.setTrim(boolean trim)
toggle trim of whitespace around attribute values on/off
|