org.dbunit.dataset.stream
Interface IDataSetProducer

All Known Implementing Classes:
CsvProducer, CsvURLProducer, DataSetProducerAdapter, FlatDtdProducer, FlatXmlProducer, SqlLoaderControlProducer, XmlProducer

public interface IDataSetProducer

Interface for reading a dataset using callback.

Since:
Apr 17, 2003
Version:
$Revision: 398 $
Author:
Manuel Laflamme

Method Summary
 void produce()
          Process this dataset source.
 void setConsumer(IDataSetConsumer consumer)
           
 

Method Detail

setConsumer

void setConsumer(IDataSetConsumer consumer)
                 throws DataSetException
Throws:
DataSetException

produce

void produce()
             throws DataSetException
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


Copyright © 2002-2012. All Rights Reserved.