|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dbunit.dataset.csv.CsvDataSetWriter
Constructor Summary | |
CsvDataSetWriter(java.io.File theDirectory)
|
|
CsvDataSetWriter(java.lang.String theDirectory)
|
Method Summary | |
void |
endDataSet()
Receive notification of the end of a dataset. |
void |
endTable()
Receive notification of the end of a table. |
protected static java.lang.String |
escape(java.lang.String stringValue)
|
protected void |
finalize()
|
java.lang.String |
getTheDirectory()
|
java.io.Writer |
getWriter()
|
void |
row(java.lang.Object[] values)
Receive notification of a table row. |
void |
setTheDirectory(java.lang.String theDirectory)
|
void |
setWriter(java.io.Writer writer)
|
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)
|
static void |
write(IDataSet dataset,
java.io.File dest)
|
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CsvDataSetWriter(java.lang.String theDirectory)
public CsvDataSetWriter(java.io.File theDirectory)
Method Detail |
public void write(IDataSet dataSet) throws DataSetException
DataSetException
public void startDataSet() throws DataSetException
IDataSetConsumer
startDataSet
in interface IDataSetConsumer
DataSetException
public void endDataSet() throws DataSetException
IDataSetConsumer
endDataSet
in interface IDataSetConsumer
DataSetException
public void startTable(ITableMetaData metaData) throws DataSetException
IDataSetConsumer
IDataSetConsumer.endDataSet()
event for every startTable
event (even when the table is empty).
startTable
in interface IDataSetConsumer
metaData
- the table metadata
DataSetException
public void endTable() throws DataSetException
IDataSetConsumer
endTable
in interface IDataSetConsumer
DataSetException
public void row(java.lang.Object[] values) throws DataSetException
IDataSetConsumer
row
in interface IDataSetConsumer
values
- The row values.
DataSetException
protected static java.lang.String escape(java.lang.String stringValue)
public java.io.Writer getWriter()
public void setWriter(java.io.Writer writer)
public java.lang.String getTheDirectory()
public void setTheDirectory(java.lang.String theDirectory)
public static void write(IDataSet dataset, java.io.File dest) throws DataSetException
DataSetException
protected void finalize() throws java.lang.Throwable
java.lang.Throwable
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |