|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dbunit.dataset.xml.FlatXmlWriter
public class FlatXmlWriter
| Constructor Summary | |
|---|---|
FlatXmlWriter(java.io.OutputStream out)
|
|
FlatXmlWriter(java.io.OutputStream outputStream,
java.lang.String encoding)
|
|
FlatXmlWriter(java.io.Writer writer)
|
|
FlatXmlWriter(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 |
setDocType(java.lang.String systemId)
|
void |
setIncludeEmptyTable(boolean includeEmptyTable)
|
void |
setPrettyPrint(boolean enabled)
Enable or disable pretty print of the XML. |
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)
Writes the given IDataSet using this writer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FlatXmlWriter(java.io.OutputStream out)
throws java.io.IOException
java.io.IOException
public FlatXmlWriter(java.io.OutputStream outputStream,
java.lang.String encoding)
throws java.io.UnsupportedEncodingException
outputStream - The stream to which the XML will be written.encoding - The encoding to be used for the XmlWriter.
Can be null. See XmlWriter.XmlWriter(OutputStream, String).
java.io.UnsupportedEncodingExceptionpublic FlatXmlWriter(java.io.Writer writer)
public FlatXmlWriter(java.io.Writer writer,
java.lang.String encoding)
| Method Detail |
|---|
public void setIncludeEmptyTable(boolean includeEmptyTable)
public void setDocType(java.lang.String systemId)
public void setPrettyPrint(boolean enabled)
enabled - true to enable pretty print (which is the default).
false otherwise.
public void write(IDataSet dataSet)
throws DataSetException
IDataSet using this writer.
dataSet - The IDataSet to be written
DataSetException
public void startDataSet()
throws DataSetException
IDataSetConsumer
startDataSet in interface IDataSetConsumerDataSetException
public void endDataSet()
throws DataSetException
IDataSetConsumer
endDataSet in interface IDataSetConsumerDataSetException
public 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 metadata
DataSetException
public void endTable()
throws DataSetException
IDataSetConsumer
endTable in interface IDataSetConsumerDataSetException
public void row(java.lang.Object[] values)
throws DataSetException
IDataSetConsumer
row in interface IDataSetConsumervalues - The row values.
DataSetException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||