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