public class DomWriter extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
isXML11 |
protected PrintWriter |
printWriter |
Constructor and Description |
---|
DomWriter() |
Modifier and Type | Method and Description |
---|---|
protected String |
getVersion(Document document)
Extracts the XML version from the Document.
|
protected void |
normalizeAndPrint(char c,
boolean isAttValue)
Normalizes and print the given character.
|
protected void |
normalizeAndPrint(String s,
boolean isAttValue)
Normalizes and prints the given string.
|
protected Attr[] |
sortAttributes(NamedNodeMap attrs)
Returns a sorted list of attributes.
|
String |
toString(Document document) |
protected void |
write(CDATASection node) |
protected void |
write(Comment node) |
protected void |
write(Document node) |
protected void |
write(DocumentType node) |
protected void |
write(Element node) |
protected void |
write(EntityReference node) |
protected void |
write(ProcessingInstruction node) |
protected void |
write(Text node) |
protected void |
writeAnyNode(Node node) |
protected PrintWriter printWriter
protected boolean isXML11
public String toString(Document document) throws ShellException
ShellException
protected Attr[] sortAttributes(NamedNodeMap attrs)
protected void normalizeAndPrint(String s, boolean isAttValue)
protected void normalizeAndPrint(char c, boolean isAttValue)
protected String getVersion(Document document)
protected void writeAnyNode(Node node) throws ShellException
ShellException
protected void write(Document node) throws ShellException
ShellException
protected void write(DocumentType node) throws ShellException
ShellException
protected void write(Element node) throws ShellException
ShellException
protected void write(EntityReference node)
protected void write(CDATASection node)
protected void write(Text node)
protected void write(ProcessingInstruction node)
protected void write(Comment node)
Copyright © 2010–2018 MyBatis.org. All rights reserved.