Package org.apache.juneau.marshall.html
Class BasicHtmlWriter
java.lang.Object
java.io.Writer
org.apache.juneau.marshall.serializer.SerializerWriter<SELF>
org.apache.juneau.marshall.xml.XmlWriter<SELF>
org.apache.juneau.marshall.html.HtmlWriter<BasicHtmlWriter>
org.apache.juneau.marshall.html.BasicHtmlWriter
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
Concrete
HtmlWriter leaf for standard HTML output.
This is the directly-instantiable form of HtmlWriter, which is itself an abstract CRTP self-type base so it
can also be extended (e.g. by SimpleHtmlWriter or by the body-var-resolving anonymous writer in
BasicHtmlDocTemplate).
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
ConstructorsConstructorDescriptionBasicHtmlWriter(Writer out, boolean useWhitespace, int maxIndent, boolean trimStrings, char quoteChar, UriResolver uriResolver) Constructor.BasicHtmlWriter(HtmlWriter<?> w) Copy constructor. -
Method Summary
Methods inherited from class org.apache.juneau.marshall.html.HtmlWriter
cr, cre, textMethods 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, textUri, toString
-
Constructor Details
-
BasicHtmlWriter
Copy constructor.- Parameters:
w- Writer being copied.
-
BasicHtmlWriter
public BasicHtmlWriter(Writer out, boolean useWhitespace, int maxIndent, boolean trimStrings, char quoteChar, UriResolver uriResolver) Constructor.- Parameters:
out- The writer being wrapped.useWhitespace- Iftrue , tabs will be used in output.maxIndent- The maximum indentation level.trimStrings- Iftrue , strings should be trimmed before they're serialized.quoteChar- The quote character to use (i.e.'\'' or'"' )uriResolver- The URI resolver for resolving URIs to absolute or root-relative form.
-