Class 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.
  • 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 - If true, tabs will be used in output.
      maxIndent - The maximum indentation level.
      trimStrings - If true, 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.