public class BufferedConsumer extends Object implements IDataSetConsumer
IDataSetConsumer which buffers all data
until the endDataSet() event occurs.
This provides the possibility to append new Columns on
the fly which is needed for the column sensing feature in
FlatXmlDataSet.| Constructor and Description |
|---|
BufferedConsumer(IDataSetConsumer wrappedConsumer) |
| Modifier and Type | Method and Description |
|---|---|
void |
endDataSet()
Receive notification of the end of a dataset.
|
void |
endTable()
Receive notification of the end of a table.
|
void |
row(Object[] values)
Receive notification of a table row.
|
void |
startDataSet()
Receive notification of the beginning of a dataset.
|
void |
startTable(ITableMetaData metaData)
Receive notification of the beginning of a table.
|
public BufferedConsumer(IDataSetConsumer wrappedConsumer)
wrappedConsumer - The consumer that is wrappedpublic void startDataSet()
throws DataSetException
IDataSetConsumerstartDataSet in interface IDataSetConsumerDataSetExceptionpublic void endDataSet()
throws DataSetException
IDataSetConsumerendDataSet in interface IDataSetConsumerDataSetExceptionpublic void row(Object[] values) throws DataSetException
IDataSetConsumerrow in interface IDataSetConsumervalues - The row values.DataSetExceptionpublic void startTable(ITableMetaData metaData) throws DataSetException
IDataSetConsumerIDataSetConsumer.endDataSet() event for every startTable
event (even when the table is empty).startTable in interface IDataSetConsumermetaData - the table metadataDataSetExceptionpublic void endTable()
throws DataSetException
IDataSetConsumerendTable in interface IDataSetConsumerDataSetExceptionCopyright © 2002–2025. All rights reserved.