public final class MojoIoUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
serialize(Document document,
OutputStream out)
Writes the DOM document to the given stream in pretty print format.
|
static void |
serialize(Document document,
OutputStream out,
boolean prettyPrint)
Writes the DOM document to the given stream.
|
public static void serialize(Document document, OutputStream out) throws TransformerException
document - the document to write.out - the stream to write to.TransformerException - on any problem writing to the stream.public static void serialize(Document document, OutputStream out, boolean prettyPrint) throws TransformerException
document - the document to write.out - the stream to write to.prettyPrint - the flag controls indentation. If set to
true, indent is set to 2.TransformerException - on any problem writing to the stream.Copyright © 2006-2014. All Rights Reserved.