public class CSVDataSource extends DataSource
| Constructor and Description |
|---|
CSVDataSource(java.io.InputStream csvStream,
java.lang.String[] keywords)
Creates a new data source from csv.
|
CSVDataSource(java.lang.String csvFile,
java.lang.String[] keywords)
Creates a new data source from csv.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTableModel(CSVTableModel tableModel)
Adds a csv table model to this data source.
|
protected void |
deliverData() |
char |
getDelimiter()
Gets the delimiter of csv file.
|
void |
setDelimiter(char delimiter)
Sets the delimiter of csv file.
|
deliver, getDataCount, getLoggerpublic CSVDataSource(java.io.InputStream csvStream,
java.lang.String[] keywords)
csvStream - CSV stream.keywords - Keywords of columns.public CSVDataSource(java.lang.String csvFile,
java.lang.String[] keywords)
throws java.io.IOException
csvFile - CSV file.keywords - Keywords of columns.java.io.IOException - IOException is thrown if file is not found.public void addTableModel(CSVTableModel tableModel)
tableModel - Table model.protected void deliverData()
throws ReportException
deliverData in class DataSourceReportExceptionpublic char getDelimiter()
public void setDelimiter(char delimiter)
delimiter - Delimter of csv.© 2003-2011 by Sascha Schmidt (vision-cloud.de). All Rights Reserved.