Package org.dbunit.dataset.csv
Class CsvDataSetWriter
java.lang.Object
org.dbunit.dataset.csv.CsvDataSetWriter
- All Implemented Interfaces:
IDataSetConsumer
- Since:
- 24-set-2003 15.27.05
- Version:
- $Revision$
- Author:
- fede
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidReceive notification of the end of a dataset.voidendTable()Receive notification of the end of a table.protected static Stringprotected voidfinalize()voidReceive notification of a table row.voidsetTheDirectory(String theDirectory) voidvoidReceive notification of the beginning of a dataset.voidstartTable(ITableMetaData metaData) Receive notification of the beginning of a table.voidstatic void
-
Field Details
-
NULL
todo: customizable separators (field, lines), manage the writers opened for each table- See Also:
-
-
Constructor Details
-
CsvDataSetWriter
-
CsvDataSetWriter
-
-
Method Details
-
write
- Throws:
DataSetException
-
startDataSet
Description copied from interface:IDataSetConsumerReceive notification of the beginning of a dataset. This method is invoked only once, before any other methods in this interface.- Specified by:
startDataSetin interfaceIDataSetConsumer- Throws:
DataSetException
-
endDataSet
Description copied from interface:IDataSetConsumerReceive notification of the end of a dataset. This method is invoked only once, and it will be the last method invoked in this interface.- Specified by:
endDataSetin interfaceIDataSetConsumer- Throws:
DataSetException
-
startTable
Description copied from interface:IDataSetConsumerReceive notification of the beginning of a table. This method is invoked at the beginning of every table in the dataset; there will be a correspondingIDataSetConsumer.endDataSet()event for everystartTableevent (even when the table is empty).- Specified by:
startTablein interfaceIDataSetConsumer- Parameters:
metaData- the table metadata- Throws:
DataSetException
-
endTable
Description copied from interface:IDataSetConsumerReceive notification of the end of a table.- Specified by:
endTablein interfaceIDataSetConsumer- Throws:
DataSetException
-
row
Description copied from interface:IDataSetConsumerReceive notification of a table row. This method is invoked to report each row of a table.- Specified by:
rowin interfaceIDataSetConsumer- Parameters:
values- The row values.- Throws:
DataSetException
-
escape
-
getWriter
-
setWriter
-
getTheDirectory
-
setTheDirectory
-
write
- Throws:
DataSetException
-
finalize
-