public interface NodeSerializer
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.
|
void |
writeEncoding(BufferedWriter writer,
String encoding)
Write the encoding.
|
void |
writeEncoding(StringBuilder buf,
String encoding)
Write the encoding.
|
void writeEncoding(StringBuilder buf, String encoding)
buf
- the buffer to write toencoding
- the encodingvoid writeEncoding(BufferedWriter writer, String encoding) throws IOException
writer
- the writer to write toencoding
- the encodingIOException
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 the 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 parentvoid 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 the 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