public static final class XmlPrettyPrinter.Builder
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
XmlPrettyPrinter |
build()
Build an XML pretty printer.
|
XmlPrettyPrinter.Builder |
setAttributeIndent(int attributeIndent)
Set the attribute indent in whitespace characters.
|
XmlPrettyPrinter.Builder |
setChunkCallback(XmlPrettyPrinter.PrettyPrintedXmlChunkCallback chunkCallback)
Set a chunk callback.
|
XmlPrettyPrinter.Builder |
setIndent(int indent)
Set the indent for elements in whitespace characters.
|
XmlPrettyPrinter.Builder |
setPartCallback(XmlPrettyPrinter.PrettyPrintedXmlPartCallback partCallback)
Set a part callback.
|
XmlPrettyPrinter.Builder |
setPrettyWriter(java.io.Writer prettyWriter)
Set a
Writer for the pretty printed XML stream. |
XmlPrettyPrinter.Builder |
setTabWidth(int tabWidth)
Set the tab width in whitespace characters.
|
public XmlPrettyPrinter.Builder setIndent(int indent)
indent - the indent for elements in whitespace characters.public XmlPrettyPrinter.Builder setAttributeIndent(int attributeIndent)
attributeIndent - the attribute indent in whitespace characters.public XmlPrettyPrinter.Builder setTabWidth(int tabWidth)
tabWidth - the tab width in whitespace characters.public XmlPrettyPrinter.Builder setChunkCallback(XmlPrettyPrinter.PrettyPrintedXmlChunkCallback chunkCallback)
chunkCallback - the cunk callback.public XmlPrettyPrinter.Builder setPartCallback(XmlPrettyPrinter.PrettyPrintedXmlPartCallback partCallback)
partCallback - the part callback.public XmlPrettyPrinter.Builder setPrettyWriter(java.io.Writer prettyWriter)
Writer for the pretty printed XML stream.prettyWriter - the writer to pretty print to.public XmlPrettyPrinter build()