| |
|
| java.lang.Object it.businesslogic.ireport.connection.JRCsvDataSourceInspector
JRCsvDataSourceInspector | public class JRCsvDataSourceInspector (Code) | | author: gtoffoli author: This class derives from JRCsvDataSource and is used to read the field names. |
JRCsvDataSourceInspector | public JRCsvDataSourceInspector(InputStream stream)(Code) | | Parameters: stream - an input stream containing CSV data |
JRCsvDataSourceInspector | public JRCsvDataSourceInspector(File file) throws FileNotFoundException(Code) | | Builds a datasource instance.
Parameters: file - a file containing CSV data |
JRCsvDataSourceInspector | public JRCsvDataSourceInspector(Reader reader)(Code) | | Builds a datasource instance.
Parameters: reader - a Reader instance, for reading the stream |
getDateFormat | public DateFormat getDateFormat()(Code) | | Gets the date format that will be used to parse date fields
|
getFieldDelimiter | public char getFieldDelimiter()(Code) | | Returns the field delimiter character.
|
getRecordDelimiter | public String getRecordDelimiter()(Code) | | Returns the record delimiter string.
|
setColumnNames | public void setColumnNames(String[] columnNames)(Code) | | Specifies an array of strings representing column names matching field names in the report template
|
setDateFormat | public void setDateFormat(DateFormat dateFormat)(Code) | | Sets the desired date format to be used for parsing date fields
|
setFieldDelimiter | public void setFieldDelimiter(char fieldDelimiter)(Code) | | Sets the field delimiter character. The default is comma. If characters such as comma or quotes are specified,
the results can be unpredictable.
Parameters: fieldDelimiter - |
setRecordDelimiter | public void setRecordDelimiter(String recordDelimiter)(Code) | | Sets the record delimiter string. The default is line feed (\n).
Parameters: recordDelimiter - |
|
|
|