Configured with three variables passed to the constructor:
indent: a String added at each level
of output; e.g. two spaces or a tab
newlines: if true, then break the lines occasionally;
if false, then don't
encoding: The name of the encoding to use for output; e.g.
UTF-16 or ISO-8859-1
The output() method writes a Document onto a given
OutputStream:
public void output(Document doc, OutputStream out, String encoding) throws IOException
public void output(Document doc, OutputStream out) throws IOException