Package org.dbunit.dataset.stream
Class StreamingIterator
java.lang.Object
org.dbunit.dataset.stream.StreamingIterator
- All Implemented Interfaces:
ITableIterator
Asynchronous table iterator that uses a new Thread for asynchronous processing.
- Since:
- Apr 17, 2003
- Version:
- $Revision$ $Date$
- Author:
- Manuel Laflamme, Last changed by: $Author$
-
Constructor Summary
ConstructorsConstructorDescriptionStreamingIterator(IDataSetProducer source) Iterator that creates a table iterator by reading the input from the given source in an asynchronous way. -
Method Summary
-
Constructor Details
-
StreamingIterator
Iterator that creates a table iterator by reading the input from the given source in an asynchronous way. Therefore a Thread is created.- Parameters:
source- The source of the data- Throws:
DataSetException
-
-
Method Details
-
next
Description copied from interface:ITableIteratorPosition this iterator to the next table. The iterator is initially positioned before the first table; the first call to the method next makes the first table the current table; the second call makes the second table the current table, and so on.- Specified by:
nextin interfaceITableIterator- Returns:
trueif the new current table is valid;falseif there are no more table- Throws:
DataSetException
-
getTableMetaData
Description copied from interface:ITableIteratorReturns the metadata of the current table.- Specified by:
getTableMetaDatain interfaceITableIterator- Throws:
DataSetException
-
getTable
Description copied from interface:ITableIteratorReturns the current table.- Specified by:
getTablein interfaceITableIterator- Throws:
DataSetException
-