public class XmlOutput
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DTD_HEAD1
DTD header before the root element name.
|
static java.lang.String |
DTD_HEAD2
DTD header after the root element name.
|
Constructor and Description |
---|
XmlOutput() |
Modifier and Type | Method and Description |
---|---|
protected static void |
_outputXmlSubtree(ConfigXmlTree tree,
java.io.Writer writer,
int indent)
Output the sub-tree to the writer with the specified number of
indentations.
|
static void |
outputXmlTree(ConfigXmlTree tree,
java.io.Writer writer)
Output an XML tree to the writer.
|
public static final java.lang.String DTD_HEAD1
public static final java.lang.String DTD_HEAD2
public static void outputXmlTree(ConfigXmlTree tree, java.io.Writer writer) throws java.io.IOException
tree
- The XML tree.writer
- The writer.java.io.IOException
- If there is an IO exception during the output.protected static void _outputXmlSubtree(ConfigXmlTree tree, java.io.Writer writer, int indent) throws java.io.IOException
tree
- The sub-tree.writer
- The writer.indent
- The number of indentations.java.io.IOException
- If there is an IO exception during the output.