public class XMLPrettyPrinter extends PipedOutputStream
XMLPrettyPrinter
and
your XML output will be pretty printed on the delegated output stream
specified in XMLPrettyPrinter(OutputStream)
Constructor and Description |
---|
XMLPrettyPrinter(OutputStream delegatedOut)
Create a pretty printer for XML output.
|
Modifier and Type | Method and Description |
---|---|
Future<?> |
start()
Start the transformation in a new thread.
|
Future<?> |
start(ExecutorService executor)
Start the transformation in the given executor service.
|
write
public XMLPrettyPrinter(OutputStream delegatedOut) throws IOException, TransformerException
delegatedOut
- where the pretty XML should be written toIOException
- if the XSLT transformation for pretty printing cannot
be loadedTransformerException
- if the XSLT transformation for pretty
printing cannot be loadedpublic Future<?> start()
get()
to wait for its completionpublic Future<?> start(ExecutorService executor)
executor
- the executor serviceget()
to wait for its completionBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a