public class DOMWriter extends Object
Modifier and Type | Field and Description |
---|---|
protected boolean |
canonical
Canonical output.
|
protected PrintWriter |
out
Print writer.
|
Constructor and Description |
---|
DOMWriter(Writer writer,
boolean canonical) |
Modifier and Type | Method and Description |
---|---|
static String |
getWriterEncoding() |
protected String |
normalize(String s)
Normalizes the given string.
|
void |
print(Node node)
Prints the specified node, recursively.
|
protected Attr[] |
sortAttributes(NamedNodeMap attrs)
Returns a sorted list of attributes.
|
protected final PrintWriter out
protected final boolean canonical
public DOMWriter(Writer writer, boolean canonical)
public static String getWriterEncoding()
public void print(Node node)
protected Attr[] sortAttributes(NamedNodeMap attrs)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.