|
||||||||||
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
public class XmlDataSet
Reads and writes original XML dataset document. This format is very verbose 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> <!ELEMENT none EMPTY>
Field Summary |
---|
Fields inherited from class org.dbunit.dataset.AbstractDataSet |
---|
_orderedTableNameMap |
Constructor Summary | |
---|---|
XmlDataSet(InputStream in)
Creates an XmlDataSet with the specified xml input stream. |
|
XmlDataSet(Reader reader)
Creates an XmlDataSet with the specified xml reader. |
Method Summary | |
---|---|
static void |
write(IDataSet dataSet,
OutputStream out)
Write the specified dataset to the specified output stream as xml. |
static void |
write(IDataSet dataSet,
OutputStream out,
String encoding)
Write the specified dataset to the specified output stream as xml (using specified encoding). |
static void |
write(IDataSet dataSet,
Writer writer)
Write the specified dataset to the specified writer as xml. |
static void |
write(IDataSet dataSet,
Writer writer,
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 |
---|
createTableNameMap, getTable, getTableMetaData, getTableNames, getTables, isCaseSensitiveTableNames, iterator, reverseIterator, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public XmlDataSet(Reader reader) throws DataSetException
DataSetException
public XmlDataSet(InputStream in) throws DataSetException
DataSetException
Method Detail |
---|
public static void write(IDataSet dataSet, OutputStream out) throws IOException, DataSetException
IOException
DataSetException
public static void write(IDataSet dataSet, OutputStream out, String encoding) throws IOException, DataSetException
IOException
DataSetException
public static void write(IDataSet dataSet, Writer writer) throws IOException, DataSetException
IOException
DataSetException
public static void write(IDataSet dataSet, Writer writer, String encoding) throws IOException, DataSetException
IOException
DataSetException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |