|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.util.xml.DOMWriter
public class DOMWriter
Traverse a DOM tree in order to print a document that is parsed.
Constructor Summary | |
---|---|
DOMWriter(OutputStream stream)
|
|
DOMWriter(OutputStream stream,
String charsetName)
|
|
DOMWriter(Writer w)
|
Method Summary | |
---|---|
boolean |
isCanonical()
|
boolean |
isPrettyprint()
|
boolean |
isWriteXMLDeclaration()
|
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 |
setPrettyprint(boolean prettyprint)
Set wheter element should be indented. |
DOMWriter |
setWriteXMLDeclaration(boolean writeXMLDeclaration)
Set wheter the XML declaration should be written. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DOMWriter(Writer w)
public DOMWriter(OutputStream stream)
public DOMWriter(OutputStream stream, String charsetName)
Method Detail |
---|
public static String printNode(Node node, boolean prettyprint)
public boolean isCanonical()
public DOMWriter setCanonical(boolean canonical)
public boolean isPrettyprint()
public DOMWriter setPrettyprint(boolean prettyprint)
public boolean isWriteXMLDeclaration()
public DOMWriter setWriteXMLDeclaration(boolean writeXMLDeclaration)
public void print(Node node)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |