Package org.dbunit.dataset.csv
Class CsvURLProducer
java.lang.Object
org.dbunit.dataset.csv.CsvURLProducer
- All Implemented Interfaces:
IDataSetProducer
A
Data Set Producer that produces datasets from
CVS files found at a base URL.
Based HEAVILY on CsvProducer.- Since:
- Sep 12, 2004 (pre 2.3)
- Version:
- $Revision$ $Date$
- Author:
- Dion Gillard, Federico Spinazzi, Last changed by: $Author$
-
Constructor Summary
ConstructorsConstructorDescriptionCsvURLProducer(URL base, String tableList) Create a CSV Data Set Producer which uses the base URL to retrieve a list of tables and the data. -
Method Summary
Modifier and TypeMethodDescriptionvoidproduce()Process this dataset source.voidsetConsumer(IDataSetConsumer consumer)
-
Constructor Details
-
CsvURLProducer
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.
-
-
Method Details
-
setConsumer
- Specified by:
setConsumerin interfaceIDataSetProducer- Throws:
DataSetException
-
produce
Description copied from interface:IDataSetProducerProcess 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:
producein interfaceIDataSetProducer- Throws:
DataSetException
-