|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knime.core.node.config.XMLConfig
final class XMLConfig
A class used to load and save Config objects into an XML file.
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.
Field Summary | |
---|---|
(package private) static String |
DTD_NAME
dtd name from class name. |
Method Summary | |
---|---|
(package private) static void |
load(Config c,
InputStream in)
Reads from the given input stream into the given config object. |
(package private) static void |
save(Config config,
OutputStream os)
Saves given Config into an XML stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
static final String DTD_NAME
Method Detail |
---|
static void load(Config 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 null
.static void save(Config config, OutputStream os) throws IOException
config
- the Config the saveos
- the stream to write Config as XML to
IOException
- if the Config could not be stored
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |