org.dbunit.dataset.xml
Class XmlDataSetWriter

java.lang.Object
  extended by org.dbunit.dataset.xml.XmlDataSetWriter
All Implemented Interfaces:
IDataSetConsumer

public class XmlDataSetWriter
extends java.lang.Object
implements IDataSetConsumer

Since:
Jun 13, 2003
Version:
$Revision: 675 $
Author:
Manuel Laflamme

Constructor Summary
XmlDataSetWriter(java.io.Writer writer)
           
XmlDataSetWriter(java.io.Writer writer, java.lang.String encoding)
           
 
Method Summary
 void endDataSet()
          Receive notification of the end of a dataset.
 void endTable()
          Receive notification of the end of a table.
 void row(java.lang.Object[] values)
          Receive notification of a table row.
 void setIncludeColumnComments(boolean b)
           
 void startDataSet()
          Receive notification of the beginning of a dataset.
 void startTable(ITableMetaData metaData)
          Receive notification of the beginning of a table.
 void write(IDataSet dataSet)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlDataSetWriter

public XmlDataSetWriter(java.io.Writer writer)

XmlDataSetWriter

public XmlDataSetWriter(java.io.Writer writer,
                        java.lang.String encoding)
Method Detail

write

public void write(IDataSet dataSet)
           throws DataSetException
Throws:
DataSetException

startDataSet

public void startDataSet()
                  throws DataSetException
Description copied from interface: IDataSetConsumer
Receive notification of the beginning of a dataset. This method is invoked only once, before any other methods in this interface.

Specified by:
startDataSet in interface IDataSetConsumer
Throws:
DataSetException

endDataSet

public void endDataSet()
                throws DataSetException
Description copied from interface: IDataSetConsumer
Receive 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:
endDataSet in interface IDataSetConsumer
Throws:
DataSetException

startTable

public void startTable(ITableMetaData metaData)
                throws DataSetException
Description copied from interface: IDataSetConsumer
Receive notification of the beginning of a table. This method is invoked at the beginning of every table in the dataset; there will be a corresponding IDataSetConsumer.endDataSet() event for every startTable event (even when the table is empty).

Specified by:
startTable in interface IDataSetConsumer
Parameters:
metaData - the table metadata
Throws:
DataSetException

endTable

public void endTable()
              throws DataSetException
Description copied from interface: IDataSetConsumer
Receive notification of the end of a table.

Specified by:
endTable in interface IDataSetConsumer
Throws:
DataSetException

row

public void row(java.lang.Object[] values)
         throws DataSetException
Description copied from interface: IDataSetConsumer
Receive notification of a table row. This method is invoked to report each row of a table.

Specified by:
row in interface IDataSetConsumer
Parameters:
values - The row values.
Throws:
DataSetException

setIncludeColumnComments

public void setIncludeColumnComments(boolean b)


Copyright © 2002-2008. All Rights Reserved.