public class DomWriter extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected boolean |
isXML11
The is xm l11.
|
protected PrintWriter |
printWriter
The print writer.
|
| 构造器和说明 |
|---|
DomWriter()
Instantiates a new dom writer.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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)
To string.
|
protected void |
write(CDATASection node)
Write.
|
protected void |
write(Comment node)
Write.
|
protected void |
write(Document node)
Write.
|
protected void |
write(DocumentType node)
Write.
|
protected void |
write(Element node)
Write.
|
protected void |
write(EntityReference node)
Write.
|
protected void |
write(ProcessingInstruction node)
Write.
|
protected void |
write(Text node)
Write.
|
protected void |
writeAnyNode(Node node)
Write any node.
|
protected PrintWriter printWriter
protected boolean isXML11
public String toString(Document document) throws ShellException
document - the documentShellException - the shell exceptionprotected Attr[] sortAttributes(NamedNodeMap attrs)
attrs - the attrsprotected void normalizeAndPrint(String s, boolean isAttValue)
s - the sisAttValue - the is att valueprotected void normalizeAndPrint(char c,
boolean isAttValue)
c - the cisAttValue - the is att valueprotected String getVersion(Document document)
document - the documentprotected void writeAnyNode(Node node) throws ShellException
node - the nodeShellException - the shell exceptionprotected void write(Document node) throws ShellException
node - the nodeShellException - the shell exceptionprotected void write(DocumentType node) throws ShellException
node - the nodeShellException - the shell exceptionprotected void write(Element node) throws ShellException
node - the nodeShellException - the shell exceptionprotected void write(EntityReference node)
node - the nodeprotected void write(CDATASection node)
node - the nodeprotected void write(Text node)
node - the nodeprotected void write(ProcessingInstruction node)
node - the nodeprotected void write(Comment node)
node - the nodeCopyright © 2006–2016 MyBatis.org. All rights reserved.