Package com.lowagie.text.xml
Class XmlDomWriter
java.lang.Object
com.lowagie.text.xml.XmlDomWriter
- Author:
- psoares
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanCanonical output.protected PrintWriterPrint writer.protected booleanProcessing XML 1.1 document. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidnormalizeAndPrint(char c, boolean isAttValue) Normalizes and print the given character.protected voidnormalizeAndPrint(String s, boolean isAttValue) Normalizes and prints the given string.voidsetCanonical(boolean canonical) Sets whether output is canonical.voidsetOutput(OutputStream stream, String encoding) Sets the output stream for printing.voidSets the output writer.protected Attr[]sortAttributes(NamedNodeMap attrs) Returns a sorted list of attributes.voidWrites the specified node, recursively.
-
Field Details
-
fOut
Print writer. -
fCanonical
protected boolean fCanonicalCanonical output. -
fXML11
protected boolean fXML11Processing XML 1.1 document.
-
-
Constructor Details
-
XmlDomWriter
public XmlDomWriter()Default constructor. -
XmlDomWriter
public XmlDomWriter(boolean canonical)
-
-
Method Details
-
setCanonical
public void setCanonical(boolean canonical) Sets whether output is canonical. -
setOutput
Sets the output stream for printing.- Throws:
UnsupportedEncodingException
-
setOutput
Sets the output writer. -
write
Writes the specified node, recursively. -
sortAttributes
Returns a sorted list of attributes. -
normalizeAndPrint
Normalizes and prints the given string. -
normalizeAndPrint
protected void normalizeAndPrint(char c, boolean isAttValue) Normalizes and print the given character.
-