org.sbml.jsbml.xml.parsers
public class XMLNodeWriter extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private char |
indentChar |
private int |
indentCount |
private static org.apache.log4j.Logger |
logger |
private int |
nodeDepth |
private javax.xml.stream.XMLStreamWriter |
writer |
Constructor and Description |
---|
XMLNodeWriter(javax.xml.stream.XMLStreamWriter writer,
int depth,
int indentCount,
char indentChar) |
private int nodeDepth
private int indentCount
private char indentChar
private javax.xml.stream.XMLStreamWriter writer
private static final transient org.apache.log4j.Logger logger
public XMLNodeWriter(javax.xml.stream.XMLStreamWriter writer, int depth, int indentCount, char indentChar)
writer
- depth
- indentCount
- indentChar
- public static java.lang.String toXML(XMLNode xmlNode) throws javax.xml.stream.XMLStreamException
xmlNode
- javax.xml.stream.XMLStreamException
public void write(XMLNode xmlNode) throws javax.xml.stream.XMLStreamException
xmlNode
- javax.xml.stream.XMLStreamException
private void write(XMLNode xmlNode, int depth) throws javax.xml.stream.XMLStreamException
xmlNode
- length
- javax.xml.stream.XMLStreamException