org.jfree.report.modules.misc.tablemodel
public class CSVTableModelProducer extends Object
TableModel
using a file formated in CSV for input. The
separation can be what ever you want (as it is an understandable regexp). The default
separator is a ,
.
Constructor Summary | |
---|---|
CSVTableModelProducer(InputStream in) | |
CSVTableModelProducer(String filename) | |
CSVTableModelProducer(BufferedReader r) |
Method Summary | |
---|---|
void | close() |
String | getSeparator()
Returns the current separator used to parse the input.
|
TableModel | getTableModel()
Creates the corrspondant TableModel of the input.
|
boolean | isColumnNameFirstLine()
Tells if the first line of the input was column names.
|
TableModel | parse()
Parses the input and stores data in a TableModel.
|
void | setColumnNameFirstLine(boolean columnNameFirst)
Set if the first line of the input is column names or not.
|
void | setSeparator(String separator)
Sets the separator for parsing the input. |
Returns: a regexp
Returns: the new TableModel
Returns: boolean
See Also: this.getTableModel()
Parameters: columnNameFirst boolean
String.split()
. The default separator is a ;
.
Parameters: separator a regexp