public class DefaultNodeSerializer extends AbstractNodeSerializer
| Constructor and Description |
|---|
DefaultNodeSerializer() |
| Modifier and Type | Method and Description |
|---|---|
void |
printNode(BufferedWriter writer,
XMLNode node,
boolean isOrdered,
BoundPrefix boundPrefix,
String tabTotal,
String tabIndent,
boolean isFirst,
boolean isLast)
Prints a node.
|
void |
printNode(StringBuilder buf,
XMLNode node,
boolean isOrdered,
BoundPrefix boundPrefix,
String tabTotal,
String tabIndent,
boolean isFirst,
boolean isLast)
Prints a node.
|
computeBoundPrefixes, endWriteNodeQName, endWriteNodeQName, writeBoundPrefixes, writeBoundPrefixes, writeEncoding, writeEncoding, writeNodeQName, writeNodeQNamepublic void printNode(StringBuilder buf, XMLNode node, boolean isOrdered, BoundPrefix boundPrefix, String tabTotal, String tabIndent, boolean isFirst, boolean isLast)
buf - the StringBuildernode - the nodeisOrdered - true if the order of attributes is preservedboundPrefix - the bound prefixestabTotal - the current value for tabstabIndent - the tab indentationisFirst - true if this is the first child of its parentisLast - true if this is the last child of its parentpublic void printNode(BufferedWriter writer, XMLNode node, boolean isOrdered, BoundPrefix boundPrefix, String tabTotal, String tabIndent, boolean isFirst, boolean isLast) throws IOException
writer - the writernode - the nodeisOrdered - true if the order of attributes is preservedboundPrefix - the bound prefixtabTotal - the current value for tabstabIndent - the tab indentationisFirst - true if this is the first child of its parentisLast - true if this is the last child of its parentIOException