|
|||||||||
| Home >> All >> org >> dbunit >> dataset >> [ xml overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.dbunit.dataset.xml
Class XmlDataSet

java.lang.Objectorg.dbunit.dataset.AbstractDataSet
org.dbunit.dataset.CachedDataSet
org.dbunit.dataset.xml.XmlDataSet
- All Implemented Interfaces:
- org.dbunit.dataset.IDataSet, org.dbunit.dataset.stream.IDataSetConsumer
- public class XmlDataSet
- extends org.dbunit.dataset.CachedDataSet
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>
- Since:
- Feb 17, 2002
- Version:
- $Revision: 1.20 $
| Field Summary | |
private static java.lang.String |
DEFAULT_ENCODING
|
| Fields inherited from class org.dbunit.dataset.CachedDataSet |
|
| 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(org.dbunit.dataset.IDataSet dataSet,
java.io.OutputStream out)
Write the specified dataset to the specified output stream as xml. |
static void |
write(org.dbunit.dataset.IDataSet dataSet,
java.io.Writer writer)
Write the specified dataset to the specified writer as xml. |
static void |
write(org.dbunit.dataset.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 |
| Field Detail |
DEFAULT_ENCODING
private static final java.lang.String DEFAULT_ENCODING
- See Also:
- Constant Field Values
| Constructor Detail |
XmlDataSet
public XmlDataSet(java.io.Reader reader) throws org.dbunit.dataset.DataSetException
- Creates an XmlDataSet with the specified xml reader.
XmlDataSet
public XmlDataSet(java.io.InputStream in) throws org.dbunit.dataset.DataSetException
- Creates an XmlDataSet with the specified xml input stream.
| Method Detail |
write
public static void write(org.dbunit.dataset.IDataSet dataSet, java.io.OutputStream out) throws java.io.IOException, org.dbunit.dataset.DataSetException
- Write the specified dataset to the specified output stream as xml.
write
public static void write(org.dbunit.dataset.IDataSet dataSet, java.io.Writer writer) throws java.io.IOException, org.dbunit.dataset.DataSetException
- Write the specified dataset to the specified writer as xml.
write
public static void write(org.dbunit.dataset.IDataSet dataSet, java.io.Writer writer, java.lang.String encoding) throws java.io.IOException, org.dbunit.dataset.DataSetException
- Write the specified dataset to the specified writer as xml.
|
|||||||||
| Home >> All >> org >> dbunit >> dataset >> [ xml overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC