Class XdocSink

All Implemented Interfaces:
LogEnabled, HtmlMarkup, Markup, XmlMarkup, XdocMarkup, Sink
Direct Known Subclasses:
XmlWriterXdocSink

public class XdocSink extends XhtmlBaseSink implements XdocMarkup
Xdoc Sink implementation.
It uses the Xdoc XSD https://maven.apache.org/xsd/xdoc-2.0.xsd.
Since:
1.0
  • Field Details

    • boxedFlag

      private boolean boxedFlag
      An indication on if we're inside a box (verbatim).
    • encoding

      private String encoding
    • languageId

      private String languageId
  • Constructor Details

    • XdocSink

      protected XdocSink(Writer writer)
      Constructor, initialize the Writer.
      Parameters:
      writer - not null writer to write the result. Should be an UTF-8 Writer. You could use newXmlWriter methods from WriterFactory.
    • XdocSink

      protected XdocSink(Writer writer, String encoding)
      Constructor, initialize the Writer and tells which encoding is used.
      Parameters:
      writer - not null writer to write the result.
      encoding - the encoding used, that should be written to the generated HTML content if not null.
      Since:
      1.1
    • XdocSink

      protected XdocSink(Writer writer, String encoding, String languageId)
      Constructor, initialize the Writer and tells which encoding and languageId are used.
      Parameters:
      writer - not null writer to write the result.
      encoding - the encoding used, that should be written to the generated HTML content if not null.
      languageId - language identifier for the root element as defined by IETF BCP 47, Tags for the Identification of Languages; in addition, the empty string may be specified.
      Since:
      1.1
  • Method Details