org.dbunit.dataset.csv
Class CsvURLProducer
java.lang.Object
org.dbunit.dataset.csv.CsvURLProducer
- All Implemented Interfaces:
- IDataSetProducer
public class CsvURLProducer
- extends Object
- implements IDataSetProducer
A Data Set Producer
that produces datasets from
CVS files found at a base URL.
Based HEAVILY on CsvProducer
.
- Author:
- Dion Gillard, Federico Spinazzi
Constructor Summary |
CsvURLProducer(URL base,
String tableList)
Create a Csv Data Set Producer which uses the base URL to retrieve
a list of tables and the data. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CsvURLProducer
public CsvURLProducer(URL base,
String tableList)
- Create a Csv Data Set Producer which uses the base URL to retrieve
a list of tables and the data.
- Parameters:
base
- the URL where the tableList and data can be found.tableList
- the relative location of the list of tables.
setConsumer
public void setConsumer(IDataSetConsumer consumer)
throws DataSetException
- Specified by:
setConsumer
in interface IDataSetProducer
- Throws:
DataSetException
produce
public void produce()
throws DataSetException
- Description copied from interface:
IDataSetProducer
- Process this dataset source. During the processing, the IDataSetProducer
will provide information about the dataset through the specified event
listener.
This method is synchronous: it will not return until processing has ended.
If a client application wants to terminate parsing early, it should
throw an exception from the listener.
- Specified by:
produce
in interface IDataSetProducer
- Throws:
DataSetException
Copyright © 2002-2011. All Rights Reserved.