public final class DOMUtils extends Object
| Constructor and Description |
|---|
DOMUtils() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getDocumentAsString(org.jdom.Document document,
boolean pretty)
Get a String representation of a DOM document.
|
static void |
writeDocument(org.jdom.Document document,
OutputStream outputStream,
boolean pretty)
Write an given document to a output stream.
|
static void |
writeDocument(org.jdom.Document document,
Writer writer,
boolean pretty)
Write an given document to a writer.
|
public static final String getDocumentAsString(org.jdom.Document document, boolean pretty)
document - The document to representpublic static final void writeDocument(org.jdom.Document document,
OutputStream outputStream,
boolean pretty)
throws IOException
document - The document to be writed out.outputStream - The output stream that will be used to write the document.IOException - If an I\O error ocours while using the output stream.public static final void writeDocument(org.jdom.Document document,
Writer writer,
boolean pretty)
throws IOException
document - The document to be writed out.writer - The writer that will be used to write the document.IOException - If an I\O error ocours while using the writer.Copyright © 2015. All Rights Reserved.