public class XmlDataSet extends CachedDataSet
<?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>
_orderedTableNameMap| Constructor and Description |
|---|
XmlDataSet(InputStream in)
Creates an XmlDataSet with the specified xml input stream.
|
XmlDataSet(Reader reader)
Creates an XmlDataSet with the specified xml reader.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
createIterator, endDataSet, endTable, row, startDataSet, startTablecreateTableNameMap, getTable, getTableMetaData, getTableNames, getTables, isCaseSensitiveTableNames, iterator, reverseIterator, toStringpublic XmlDataSet(Reader reader) throws DataSetException
DataSetExceptionpublic XmlDataSet(InputStream in) throws DataSetException
DataSetExceptionpublic static void write(IDataSet dataSet, OutputStream out) throws IOException, DataSetException
IOExceptionDataSetExceptionpublic static void write(IDataSet dataSet, OutputStream out, String encoding) throws IOException, DataSetException
IOExceptionDataSetExceptionpublic static void write(IDataSet dataSet, Writer writer) throws IOException, DataSetException
IOExceptionDataSetExceptionpublic static void write(IDataSet dataSet, Writer writer, String encoding) throws IOException, DataSetException
IOExceptionDataSetExceptionCopyright © 2002-2017. All Rights Reserved.