public abstract class AbstractNodeSerializer extends Object implements NodeSerializer
| Constructor and Description |
|---|
AbstractNodeSerializer() |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,String> |
computeBoundPrefixes(BoundPrefix boundPrefix,
XMLNode node)
Compute the bound prefixes for a XML node.
|
protected void |
endWriteNodeQName(BufferedWriter writer,
XMLNode node)
Write a node qualified name element end.
|
protected void |
endWriteNodeQName(StringBuilder buf,
XMLNode node)
Write a node qualified name element end.
|
protected void |
writeBoundPrefixes(BufferedWriter writer,
Map<String,String> boundPrefixes)
Write the bound prefixes for a XML node.
|
protected void |
writeBoundPrefixes(StringBuilder buf,
BoundPrefix boundPrefix,
XMLNode node)
Write the bound prefixes for a XML node.
|
void |
writeEncoding(BufferedWriter writer,
String encoding)
Write the encoding.
|
void |
writeEncoding(StringBuilder buf,
String encoding)
Write the encoding.
|
protected void |
writeNodeQName(BufferedWriter writer,
XMLNode node)
Write a node qualified name element start.
|
protected void |
writeNodeQName(StringBuilder buf,
XMLNode node)
Write a node qualified name element start.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprintNode, printNodeprotected Map<String,String> computeBoundPrefixes(BoundPrefix boundPrefix, XMLNode node)
boundPrefix - the bound prefixnode - the XML nodeprotected void writeBoundPrefixes(StringBuilder buf, BoundPrefix boundPrefix, XMLNode node)
buf - the buffer to write toboundPrefix - the bound prefixnode - the XML nodeprotected void writeBoundPrefixes(BufferedWriter writer, Map<String,String> boundPrefixes) throws IOException
writer - the writer to write toboundPrefixes - the bound prefixesIOExceptionprotected void endWriteNodeQName(StringBuilder buf, XMLNode node)
buf - the buffer to write tonode - the nodeprotected void writeNodeQName(StringBuilder buf, XMLNode node)
buf - the buffer to write tonode - the nodeprotected void endWriteNodeQName(BufferedWriter writer, XMLNode node) throws IOException
writer - the writer to write tonode - the nodeIOExceptionprotected void writeNodeQName(BufferedWriter writer, XMLNode node) throws IOException
writer - the writer to write tonode - the nodeIOExceptionpublic void writeEncoding(StringBuilder buf, String encoding)
writeEncoding in interface NodeSerializerbuf - the buffer to write toencoding - the encodingpublic void writeEncoding(BufferedWriter writer, String encoding) throws IOException
writeEncoding in interface NodeSerializerwriter - the writer to write toencoding - the encodingIOException