public final class XMLConfig extends Object
This implementation uses a SAX Parser to create and save the xml files. This got necessary since predictive params may get big and using a DOM parser keeps the entire xml-tree in memory.
|Modifier and Type||Field and Description|
dtd name from class name.
Entity resolver for the XMLConfig.dtd file used in some old config files.
|Modifier and Type||Method and Description|
Reads from the given input stream into the given config object.
Saves given Config into an XML stream.
public static final String DTD_NAME
public static final EntityResolver DTD_RESOLVER
public static void load(ConfigBase c, InputStream in) throws SAXException, IOException, ParserConfigurationException
c- Where to put the results.
in- Where to read from, stream will be closed when done.
SAXException- If stream can't be properly parsed.
IOException- If IO problem occur.
ParserConfigurationException- If not properly configured.
NullPointerException- If any argument is
public static void save(ConfigBase config, OutputStream output) throws IOException
config- the Config the save
output- the stream to write Config as XML to. The stream does not need to be buffered.
IOException- if the Config could not be stored
KNIME GmbH, Konstanz, Germany
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.