public final class PrettyXmlFormatter extends XmlFormatter
Document
s and Tag
s as human-friendly XML to a Writer
.Constructor and Description |
---|
PrettyXmlFormatter() |
Modifier and Type | Method and Description |
---|---|
void |
write(Document document,
java.io.Writer writer)
Writes the given
Document as an XML document to the given Writer . |
write, writeDocument
public void write(Document document, java.io.Writer writer) throws XmlWriteException
XmlFormatter
Document
as an XML document to the given Writer
.write
in class XmlFormatter
document
- the Document
to write.writer
- the Writer
to output to.XmlWriteException
- in the event of a failure outputting to the Writer
.