|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.infoway.messagebuilder.util.xml.XmlRenderer
public class XmlRenderer
A utility that renders a DOM tree into a String representation.
Constructor Summary | |
---|---|
XmlRenderer()
|
Method Summary | |
---|---|
static String |
render(Document document)
Render the document to properly-formatted XML. |
static void |
render(Document document,
Writer writer)
Render the document to properly-formatted XML. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlRenderer()
Method Detail |
---|
public static String render(Document document) throws TransformerException
Render the document to properly-formatted XML.
document
- - the document to render.
TransformerException
- - if the XML cannot be renderedpublic static void render(Document document, Writer writer) throws TransformerException
Render the document to properly-formatted XML.
document
- - the document to render.writer
- - the writer to which the XML should be rendered.
TransformerException
- - if the XML cannot be rendered
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |