|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectptolemy.backtrack.xmlparser.XmlOutput
public class XmlOutput
XML output from its tree representation.
Red (tfeng) |
Red (tfeng) |
Field Summary | |
---|---|
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 Summary | |
---|---|
XmlOutput()
|
Method Summary | |
---|---|
private static java.lang.String |
_createIndent(int indent)
Return a string with the specified number of white spaces. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DTD_HEAD1
public static final java.lang.String DTD_HEAD2
Constructor Detail |
---|
public XmlOutput()
Method Detail |
---|
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.private static java.lang.String _createIndent(int indent)
indent
- The number of white spaces.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |