com.lowagie.text.xml

Class XmlDomWriter

public class XmlDomWriter extends Object

Author: psoares

Field Summary
protected booleanfCanonical
Canonical output.
protected PrintWriterfOut
Print writer.
protected booleanfXML11
Processing XML 1.1 document.
Constructor Summary
XmlDomWriter()
Default constructor.
XmlDomWriter(boolean canonical)
Method Summary
protected voidnormalizeAndPrint(String s, boolean isAttValue)
Normalizes and prints the given string.
protected voidnormalizeAndPrint(char c, boolean isAttValue)
Normalizes and print the given character.
voidsetCanonical(boolean canonical)
Sets whether output is canonical.
voidsetOutput(OutputStream stream, String encoding)
Sets the output stream for printing.
voidsetOutput(Writer writer)
Sets the output writer.
protected Attr[]sortAttributes(NamedNodeMap attrs)
Returns a sorted list of attributes.
voidwrite(Node node)
Writes the specified node, recursively.

Field Detail

fCanonical

protected boolean fCanonical
Canonical output.

fOut

protected PrintWriter fOut
Print writer.

fXML11

protected boolean fXML11
Processing XML 1.1 document.

Constructor Detail

XmlDomWriter

public XmlDomWriter()
Default constructor.

XmlDomWriter

public XmlDomWriter(boolean canonical)

Method Detail

normalizeAndPrint

protected void normalizeAndPrint(String s, boolean isAttValue)
Normalizes and prints the given string.

normalizeAndPrint

protected void normalizeAndPrint(char c, boolean isAttValue)
Normalizes and print the given character.

setCanonical

public void setCanonical(boolean canonical)
Sets whether output is canonical.

setOutput

public void setOutput(OutputStream stream, String encoding)
Sets the output stream for printing.

setOutput

public void setOutput(Writer writer)
Sets the output writer.

sortAttributes

protected Attr[] sortAttributes(NamedNodeMap attrs)
Returns a sorted list of attributes.

write

public void write(Node node)
Writes the specified node, recursively.