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>
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, startTable
createTableNameMap, getTable, getTableMetaData, getTableNames, getTables, isCaseSensitiveTableNames, iterator, reverseIterator, toString
public XmlDataSet(Reader reader) throws DataSetException
DataSetException
public XmlDataSet(InputStream in) throws DataSetException
DataSetException
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
Copyright © 2002-2012. All Rights Reserved.