TFORMer SDK - JAVA
8
|
DataSourceCsv is a specialized DataSource for importing data from CSV files. This class is used to manipulate existing DataSourceCsv objects. To create a new DataSource use TFORMer Designer or Project.addDataSource.
The main properties to characterize a DataSourceCsv are:
,
and separates the single column names (= the names of the DataFields) and column values (= values of DataFields) from each other"This is a string"
).Field_0
, Field_1
, etc.// Retrieve the global Project // DataSources are defined in a Project or a global Project Project project = repository.getGlobalProject (); // Retrieve the DataSource by name // Since we know the type of the DataSource, we can cast it to DataSourceCsv DataSourceCsv dataSource = (DataSourceCsv)project.getDataSource("CSV"); // Modify some DataSource properties dataSource.setQualifier("'"); dataSource.setSeparator(",");
© 2006-2024 - all rights reserved by TEC-IT Datenverarbeitung GmbH |
![]() |
Generated on Thu Oct 3 2024 05:08:23 for TFORMer SDK - JAVA with doxygen 1.7.6.1 |