public class CSVReader extends Object
| Modifier and Type | Field and Description |
|---|---|
List<String> |
header |
List<String> |
lines |
Map<Integer,List<String>> |
rows |
| Constructor and Description |
|---|
CSVReader(String filename) |
CSVReader(String filename,
String delimiter) |
CSVReader(String filename,
String delimiter,
String charset)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Description of the CSVReader, reports its configuration f.e.
|
String |
getElement(int r,
int c)
Returns the element at the given row and column.
|
Map<Integer,List<String>> |
getValues() |
static Map<Integer,List<String>> |
getValues(String filename,
String delimiter,
String charset)
Map to use in a taglib function.
|
static CSVReader |
readCSV(String filename,
String delimiter,
String charset) |
int |
size()
Returns the number of rows in the CVS file.
|
public CSVReader(String filename)
public String getElement(int r, int c)
r - the element rowc - the element columnpublic static Map<Integer,List<String>> getValues(String filename, String delimiter, String charset)
readCSV() and returns csv-file rows.filename - CSV filepublic int size()
public String getDescription()
MMBase2 Utils 2.0.0 - 2019-08-08T23:20