public class FlatDtdDataSet extends AbstractDataSet implements IDataSetConsumer
_orderedTableNameMap| Constructor and Description |
|---|
FlatDtdDataSet() |
FlatDtdDataSet(IDataSetProducer producer) |
FlatDtdDataSet(java.io.InputStream in) |
FlatDtdDataSet(java.io.Reader reader) |
| Modifier and Type | Method and Description |
|---|---|
protected ITableIterator |
createIterator(boolean reversed)
Creates an iterator which provides access to all tables of this dataset
|
void |
endDataSet()
Receive notification of the end of a dataset.
|
void |
endTable()
Receive notification of the end of a table.
|
ITable |
getTable(java.lang.String tableName)
Returns the specified table.
|
ITableMetaData |
getTableMetaData(java.lang.String tableName)
Returns the specified table metadata.
|
java.lang.String[] |
getTableNames()
Returns names of tables in this dataset in proper sequence.
|
protected void |
initialize()
Initializes the tables of this dataset
|
void |
row(java.lang.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.
|
java.lang.String |
toString() |
static void |
write(IDataSet dataSet,
java.io.OutputStream out)
Write the specified dataset to the specified output stream as DTD.
|
static void |
write(IDataSet dataSet,
java.io.Writer out)
Write the specified dataset to the specified writer as DTD.
|
createTableNameMap, getTables, isCaseSensitiveTableNames, iterator, reverseIteratorpublic FlatDtdDataSet()
public FlatDtdDataSet(java.io.InputStream in)
throws DataSetException,
java.io.IOException
DataSetExceptionjava.io.IOExceptionpublic FlatDtdDataSet(java.io.Reader reader)
throws DataSetException,
java.io.IOException
DataSetExceptionjava.io.IOExceptionpublic FlatDtdDataSet(IDataSetProducer producer) throws DataSetException
DataSetExceptionprotected void initialize()
AbstractDataSetinitialize in class AbstractDataSetpublic static void write(IDataSet dataSet, java.io.OutputStream out) throws java.io.IOException, DataSetException
java.io.IOExceptionDataSetExceptionFlatDtdWriterpublic static void write(IDataSet dataSet, java.io.Writer out) throws java.io.IOException, DataSetException
java.io.IOExceptionDataSetExceptionFlatDtdWriterprotected ITableIterator createIterator(boolean reversed) throws DataSetException
AbstractDataSetcreateIterator in class AbstractDataSetreversed - Whether the created iterator should be a reversed one or notITableIteratorDataSetExceptionpublic java.lang.String[] getTableNames()
throws DataSetException
IDataSetgetTableNames in interface IDataSetgetTableNames in class AbstractDataSetDataSetExceptionpublic ITableMetaData getTableMetaData(java.lang.String tableName) throws DataSetException
IDataSetgetTableMetaData in interface IDataSetgetTableMetaData in class AbstractDataSetNoSuchTableException - if dataset do not contains the specified
tableDataSetExceptionpublic ITable getTable(java.lang.String tableName) throws DataSetException
IDataSetgetTable in interface IDataSetgetTable in class AbstractDataSetNoSuchTableException - if dataset do not contains the specified
tableDataSetExceptionpublic void startDataSet()
throws DataSetException
IDataSetConsumerstartDataSet in interface IDataSetConsumerDataSetExceptionpublic void endDataSet()
throws DataSetException
IDataSetConsumerendDataSet in interface IDataSetConsumerDataSetExceptionpublic 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 IDataSetConsumerDataSetExceptionpublic void row(java.lang.Object[] values)
throws DataSetException
IDataSetConsumerrow in interface IDataSetConsumervalues - The row values.DataSetExceptionpublic java.lang.String toString()
toString in class AbstractDataSetCopyright © 2002-2018. All Rights Reserved.