Package org.dbunit.dataset.stream
Interface IDataSetProducer
- All Known Implementing Classes:
CsvProducer,CsvURLProducer,DataSetProducerAdapter,FlatDtdProducer,FlatXmlProducer,JsonProducer,SqlLoaderControlProducer,XmlProducer,YamlProducer
public interface IDataSetProducer
Interface for reading a dataset using callback.
- Since:
- Apr 17, 2003
- Version:
- $Revision$
- Author:
- Manuel Laflamme
-
Method Summary
Modifier and TypeMethodDescriptionvoidproduce()Process this dataset source.voidsetConsumer(IDataSetConsumer consumer) Sets the consumer notified of this producer's dataset content.
-
Method Details
-
setConsumer
Sets the consumer notified of this producer's dataset content.- Parameters:
consumer- the consumer to notify.- Throws:
DataSetException- if the consumer cannot be set.
-
produce
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.
- Throws:
DataSetException- if processing the dataset source fails.
-