public class DOMWriter extends Object
Constructor and Description |
---|
DOMWriter(OutputStream stream) |
DOMWriter(OutputStream stream,
String charsetName) |
DOMWriter(Writer w) |
DOMWriter(Writer w,
String charsetName) |
Modifier and Type | Method and Description |
---|---|
boolean |
isCanonical() |
boolean |
isIgnoreWhitespace() |
boolean |
isPrettyprint() |
boolean |
isWriteXMLDeclaration() |
static String |
normalize(String s,
boolean canonical)
Normalizes the given string.
|
void |
print(Node node) |
static String |
printNode(Node node,
boolean prettyprint)
Print a node with explicit prettyprinting.
|
DOMWriter |
setCanonical(boolean canonical)
Set wheter entities should appear in their canonical form.
|
DOMWriter |
setCompleteNamespaces(boolean complete)
Set wheter subelements should have their namespaces completed.
|
DOMWriter |
setIgnoreWhitespace(boolean ignoreWhitespace)
Set whether whitespace should be ignored.
|
DOMWriter |
setPrettyprint(boolean prettyprint)
Set wheter element should be indented.
|
DOMWriter |
setWriteXMLDeclaration(boolean flag)
Set wheter the XML declaration should be written.
|
public DOMWriter(Writer w)
public DOMWriter(OutputStream stream)
public DOMWriter(OutputStream stream, String charsetName)
public static String printNode(Node node, boolean prettyprint)
public boolean isCanonical()
public DOMWriter setCanonical(boolean canonical)
public boolean isIgnoreWhitespace()
public DOMWriter setIgnoreWhitespace(boolean ignoreWhitespace)
public DOMWriter setCompleteNamespaces(boolean complete)
public boolean isPrettyprint()
public DOMWriter setPrettyprint(boolean prettyprint)
public boolean isWriteXMLDeclaration()
public DOMWriter setWriteXMLDeclaration(boolean flag)
public void print(Node node)
Copyright © 2014 JBoss by Red Hat. All rights reserved.