Class XhtmlSink

All Implemented Interfaces:
LogEnabled, HtmlMarkup, Markup, XmlMarkup, XhtmlMarkup, Sink

public class XhtmlSink extends XhtmlBaseSink implements XhtmlMarkup
Xhtml 1.0 Transitional sink implementation.
It uses the DTD/xhtml1-transitional http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd.
Since:
1.0
  • Field Details

    • encoding

      private String encoding
    • languageId

      private String languageId
    • headTitleFlag

      private boolean headTitleFlag
      An indication on if we're inside a head title.
  • Constructor Details

    • XhtmlSink

      protected XhtmlSink(Writer writer)
      Constructor, initialize the Writer.
      Parameters:
      writer - not null writer to write the result.
    • XhtmlSink

      protected XhtmlSink(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.
    • XhtmlSink

      protected XhtmlSink(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.
  • Method Details