|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dbunit.dataset.AbstractDataSet org.dbunit.dataset.CachedDataSet org.dbunit.dataset.xml.XmlDataSet
Reads and writes original XML dataset document. This format is very verbiose and must conform to the following DTD:
<?xml version="1.0" encoding="UTF-8"?> <!ELEMENT dataset (table+)> <!ELEMENT table (column*, row*)> <!ATTLIST table name CDATA #REQUIRED > <!ELEMENT column (#PCDATA)> <!ELEMENT row (value | null | none)*> <!ELEMENT value (#PCDATA)> <!ELEMENT null EMPTY>
Constructor Summary | |
XmlDataSet(java.io.InputStream in)
Creates an XmlDataSet with the specified xml input stream. |
|
XmlDataSet(java.io.Reader reader)
Creates an XmlDataSet with the specified xml reader. |
Method Summary | |
static void |
write(IDataSet dataSet,
java.io.OutputStream out)
Write the specified dataset to the specified output stream as xml. |
static void |
write(IDataSet dataSet,
java.io.Writer writer)
Write the specified dataset to the specified writer as xml. |
static void |
write(IDataSet dataSet,
java.io.Writer writer,
java.lang.String encoding)
Write the specified dataset to the specified writer as xml. |
Methods inherited from class org.dbunit.dataset.CachedDataSet |
createIterator, endDataSet, endTable, row, startDataSet, startTable |
Methods inherited from class org.dbunit.dataset.AbstractDataSet |
cloneTables, getTable, getTableMetaData, getTableNames, getTables, iterator, reverseIterator, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public XmlDataSet(java.io.Reader reader) throws DataSetException
public XmlDataSet(java.io.InputStream in) throws DataSetException
Method Detail |
public static void write(IDataSet dataSet, java.io.OutputStream out) throws java.io.IOException, DataSetException
java.io.IOException
DataSetException
public static void write(IDataSet dataSet, java.io.Writer writer) throws java.io.IOException, DataSetException
java.io.IOException
DataSetException
public static void write(IDataSet dataSet, java.io.Writer writer, java.lang.String encoding) throws java.io.IOException, DataSetException
java.io.IOException
DataSetException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |