Class XhtmlSink

    • Constructor Detail

      • XhtmlSink

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

        protected XhtmlSink​(java.io.Writer writer,
                            java.lang.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​(java.io.Writer writer,
                            java.lang.String encoding,
                            java.lang.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 Detail

      • head_

        public void head_()
        Ends the head element.
        Specified by:
        head_ in interface Sink
        Overrides:
        head_ in class SinkAdapter
      • title

        public void title()
        Starts the title element.
        Specified by:
        title in interface Sink
        Overrides:
        title in class SinkAdapter
        See Also:
        HTML.Tag.TITLE
      • title_

        public void title_()
        Ends the title element.
        Specified by:
        title_ in interface Sink
        Overrides:
        title_ in class SinkAdapter
        See Also:
        HTML.Tag.TITLE
      • author_

        public void author_()
        Ends an author element.
        Specified by:
        author_ in interface Sink
        Overrides:
        author_ in class SinkAdapter
        See Also:
        HTML.Tag.META
      • date_

        public void date_()
        Ends the date element.
        Specified by:
        date_ in interface Sink
        Overrides:
        date_ in class SinkAdapter
        See Also:
        HTML.Tag.META
      • body

        public void body()
        Starts the body of a document.
        Specified by:
        body in interface Sink
        Overrides:
        body in class SinkAdapter
        See Also:
        HTML.Tag.BODY
      • body_

        public void body_()
        Ends the body element.
        Specified by:
        body_ in interface Sink
        Overrides:
        body_ in class SinkAdapter
        See Also:
        HTML.Tag.BODY, HTML.Tag.HTML
      • setHeadTitleFlag

        protected void setHeadTitleFlag​(boolean headTitleFlag)

        Setter for the field headTitleFlag.

        Parameters:
        headTitleFlag - an header title flag.
        Since:
        1.1
      • isHeadTitleFlag

        protected boolean isHeadTitleFlag()

        isHeadTitleFlag.

        Returns:
        the current headTitleFlag.
        Since:
        1.1