public class DomWriter extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected boolean |
isXML11 |
protected PrintWriter |
printWriter |
| 构造器和说明 |
|---|
DomWriter() |
| 限定符和类型 | 方法和说明 |
|---|---|
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
ShellExceptionprotected Attr[] sortAttributes(NamedNodeMap attrs)
attrs - attrsprotected void normalizeAndPrint(String s, boolean isAttValue)
s - sisAttValue - sprotected void normalizeAndPrint(char c,
boolean isAttValue)
c - cisAttValue - isAttValueprotected String getVersion(Document document)
document - documentprotected void writeAnyNode(Node node) throws ShellException
ShellExceptionprotected void write(Document node) throws ShellException
ShellExceptionprotected void write(DocumentType node) throws ShellException
ShellExceptionprotected void write(Element node) throws ShellException
ShellExceptionprotected 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 © 2017. All Rights Reserved.