net.bpelunit.framework.control.datasource.csv
Class CSVDataSource
java.lang.Object
net.bpelunit.framework.control.datasource.csv.CSVDataSource
- All Implemented Interfaces:
- IDataSource
public class CSVDataSource
- extends Object
- implements IDataSource
This data source can be used to read in CSV (comma separated value) files.
- Author:
- Daniel Luebke
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CSVDataSource
public CSVDataSource()
getFieldNames
public String[] getFieldNames()
- Specified by:
getFieldNames in interface IDataSource
getValueFor
public String getValueFor(String fieldName)
- Specified by:
getValueFor in interface IDataSource
setRow
public void setRow(int index)
throws DataSourceException
- Specified by:
setRow in interface IDataSource
- Throws:
DataSourceException
loadFromStream
public void loadFromStream(InputStream data)
throws DataSourceException
- Specified by:
loadFromStream in interface IDataSource
- Throws:
DataSourceException
close
public void close()
- Specified by:
close in interface IDataSource
setSeparator
public void setSeparator(String separator)
setHeaders
public void setHeaders(String headerNames)
getNumberOfRows
public int getNumberOfRows()
- Specified by:
getNumberOfRows in interface IDataSource
Copyright © 2010 Leibniz Universität Hannover. All Rights Reserved.