java.lang.Object
org.jooq.util.jaxb.tools.XMLBuilder
Wrapper around a
StringBuilder
which can be used to serialize
a JAXB-annotated Java object graph to XML. The JAXB objects must however
also implement the XMLAppendable
interface for this to work.
Use formatting()
to create an instance producing formatted XML
output and nonFormatting()
to produce XML without any formatting
whitespace (i.e. everything on one line).
- Author:
- Knut Wannheden
-
Method Summary
Modifier and TypeMethodDescriptionappend(String elementName, XMLAppendable appendable)
append(XMLAppendable appendable)
void
appendTo(Appendable a)
static XMLBuilder
static XMLBuilder
toString()
-
Method Details
-
formatting
-
nonFormatting
-
append
-
append
-
append
-
append
-
append
-
append
-
append
-
append
-
appendTo
- Throws:
IOException
-
toString
-