public final class XMLUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
String |
asString(Document doc) |
static XMLUtil |
getInstance()
Returns an initialized instance of XMLUtil.
|
Document |
newDocument()
Creates a new DOM object.
|
Document |
readDocument(InputStream in)
Parses the XML input into a DOM.
|
void |
writeDocument(Document doc,
OutputStream out)
Serializes a DOM object to the specified stream.
|
public static XMLUtil getInstance() throws MessagingException
MessagingException - initialization failedpublic Document newDocument()
public Document readDocument(InputStream in) throws IOException
in - input stream containing XMLIOException - failed to read document from streampublic void writeDocument(Document doc, OutputStream out) throws IOException
doc - DOM referenceout - output streamIOException - failed to write document to streampublic String asString(Document doc) throws MessagingException
MessagingExceptionCopyright © 2011-2016 OpenESB Community. All Rights Reserved.