Package org.apache.juneau.marshall.xml
Class BasicXmlWriter
java.lang.Object
java.io.Writer
org.apache.juneau.marshall.serializer.SerializerWriter<SELF>
org.apache.juneau.marshall.xml.XmlWriter<BasicXmlWriter>
org.apache.juneau.marshall.xml.BasicXmlWriter
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
Concrete
XmlWriter leaf for standard XML output.
This is the directly-instantiable form of XmlWriter, which is itself an abstract CRTP self-type base so it
can also be extended (e.g. by HtmlWriter).
Notes:
- This class is not intended for external use.
-
Field Summary
Fields inherited from class org.apache.juneau.marshall.serializer.SerializerWriter
maxIndent, out, quoteChar, trimStrings, uriResolver, useWhitespace -
Constructor Summary
ConstructorsConstructorDescriptionBasicXmlWriter(Writer out, boolean useWhitespace, int maxIndent, boolean trimStrings, char quoteChar, UriResolver uriResolver, boolean enableNs, Namespace defaultNamespace) Constructor. -
Method Summary
Methods inherited from class org.apache.juneau.marshall.xml.XmlWriter
attr, attr, attr, attr, attr, attrUri, attrUri, attrUri, attrValue, ceTag, cTag, eTag, eTag, eTag, eTag, eTag, eTag, oAttr, oAttr, oTag, oTag, oTag, oTag, oTag, oTag, sTag, sTag, sTag, sTag, sTag, sTag, tag, tag, tag, tag, tag, tag, text, text, textUri, toString
-
Constructor Details
-
BasicXmlWriter
public BasicXmlWriter(Writer out, boolean useWhitespace, int maxIndent, boolean trimStrings, char quoteChar, UriResolver uriResolver, boolean enableNs, Namespace defaultNamespace) Constructor.- Parameters:
out- The wrapped writer.useWhitespace- Iftrue XML elements will be indented.maxIndent- The maximum indentation level.trimStrings- Iftrue , strings should be trimmed before they're serialized.quoteChar- The quote character to use for attributes. Should be'\'' or'"' .uriResolver- The URI resolver for resolving URIs to absolute or root-relative form.enableNs- Flag to indicate if XML namespaces are enabled.defaultNamespace- The default namespace if XML namespaces are enabled.
-