public class YamlDataSet extends CachedDataSet
<table_name>: - <column>: <value> <column>: <value> ... - <column>: <value> <column>: <value> ... ... ...
TEST_TABLE: - COL0: "row 0 col 0" COL1: "row 0 col 1" COL2: "row 0 col 2" - COL1: "row 1 col 1" SECOND_TABLE: - COL0: "row 0 col 0" COL1: "row 0 col 1" EMPTY_TABLE: []
_orderedTableNameMap
Constructor and Description |
---|
YamlDataSet(File file)
Creates a YAML dataset based on a yaml file
|
YamlDataSet(InputStream inputStream)
Creates a YAML dataset based on an inputstream
|
Modifier and Type | Method and Description |
---|---|
static void |
write(IDataSet dataSet,
OutputStream out)
Write the specified dataset to the specified output stream as YAML.
|
static void |
write(IDataSet dataSet,
Writer out)
Write the specified dataset to the specified writer as YAML.
|
createIterator, endDataSet, endTable, row, startDataSet, startTable
createTableNameMap, getTable, getTableMetaData, getTableNames, getTables, initialize, isCaseSensitiveTableNames, iterator, reverseIterator, toString
public YamlDataSet(File file) throws IOException, DataSetException
IOException
DataSetException
public YamlDataSet(InputStream inputStream) throws DataSetException
inputStream
- An inputstream pointing to a YAML datasetDataSetException
public static void write(IDataSet dataSet, OutputStream out) throws DataSetException
DataSetException
public static void write(IDataSet dataSet, Writer out) throws DataSetException
DataSetException
Copyright © 2002–2025. All rights reserved.