Class Xhtml5BaseSink

    • Field Detail

      • contentStack

        protected java.util.Stack<javax.swing.text.html.HTML.Tag> contentStack
        Keep track of the main and div tags for content events.
      • inlineStack

        protected java.util.Stack<java.util.List<javax.swing.text.html.HTML.Tag>> inlineStack
        Keep track of the closing tags for inline events.
      • tableAttributes

        protected javax.swing.text.MutableAttributeSet tableAttributes
        used to store attributes passed to table().
    • Constructor Detail

      • Xhtml5BaseSink

        public Xhtml5BaseSink​(java.io.Writer out)
        Constructor, initialize the PrintWriter.
        Parameters:
        out - The writer to write the result.
    • Method Detail

      • getTextBuffer

        protected java.lang.StringBuffer getTextBuffer()
        To use mainly when playing with the head events.
        Returns:
        the current buffer of text events.
      • setHeadFlag

        protected void setHeadFlag​(boolean headFlag)

        Setter for the field headFlag.

        Parameters:
        headFlag - an header flag.
      • isHeadFlag

        protected boolean isHeadFlag()

        isHeadFlag.

        Returns:
        the current headFlag.
      • setVerbatimMode

        protected void setVerbatimMode​(Xhtml5BaseSink.VerbatimMode mode)

        Setter for the field verbatimMode.

        Parameters:
        mode - a verbatim mode.
      • isVerbatim

        protected boolean isVerbatim()
        Returns:
        true if inside verbatim section, false otherwise
      • setCellJustif

        protected void setCellJustif​(int[] justif)

        Setter for the field cellJustif.

        Parameters:
        justif - the new cell justification array.
      • getCellJustif

        protected int[] getCellJustif()

        Getter for the field cellJustif.

        Returns:
        the current cell justification array.
      • setCellCount

        protected void setCellCount​(int count)

        Setter for the field cellCount.

        Parameters:
        count - the new cell count.
      • getCellCount

        protected int getCellCount()

        Getter for the field cellCount.

        Returns:
        the current cell count.
      • init

        protected void init()
        This is called in AbstractSink.head() or in Sink.close(), and can be used to set the sink into a clear state so it can be re-used.
        Overrides:
        init in class AbstractSink
      • resetTextBuffer

        protected void resetTextBuffer()
        Reset the text buffer.
      • article

        public void article​(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Specified by:
        article in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        article in class SinkAdapter
      • article_

        public void article_()
        Specified by:
        article_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        article_ in class SinkAdapter
      • navigation

        public void navigation​(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Specified by:
        navigation in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        navigation in class SinkAdapter
      • navigation_

        public void navigation_()
        Specified by:
        navigation_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        navigation_ in class SinkAdapter
      • sidebar

        public void sidebar​(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Specified by:
        sidebar in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        sidebar in class SinkAdapter
      • sidebar_

        public void sidebar_()
        Specified by:
        sidebar_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        sidebar_ in class SinkAdapter
      • section

        public void section​(int level,
                            org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Specified by:
        section in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        section in class SinkAdapter
      • sectionTitle

        public void sectionTitle​(int level,
                                 org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Specified by:
        sectionTitle in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        sectionTitle in class SinkAdapter
      • sectionTitle_

        public void sectionTitle_​(int level)
        Specified by:
        sectionTitle_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        sectionTitle_ in class SinkAdapter
      • section_

        public void section_​(int level)
        Specified by:
        section_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        section_ in class SinkAdapter
      • onSection

        protected void onSection​(int depth,
                                 org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Starts a section.
        Parameters:
        depth - The level of the section.
        attributes - some attributes. May be null.
      • onSection_

        protected void onSection_​(int depth)
        Ends a section.
        Parameters:
        depth - The level of the section.
        See Also:
        HtmlMarkup.SECTION
      • header

        public void header​(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Specified by:
        header in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        header in class SinkAdapter
      • header_

        public void header_()
        Specified by:
        header_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        header_ in class SinkAdapter
      • content

        public void content​(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Specified by:
        content in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        content in class SinkAdapter
      • content_

        public void content_()
        Specified by:
        content_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        content_ in class SinkAdapter
      • footer

        public void footer​(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Specified by:
        footer in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        footer in class SinkAdapter
      • footer_

        public void footer_()
        Specified by:
        footer_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        footer_ in class SinkAdapter
      • list

        public void list​(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Specified by:
        list in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        list in class SinkAdapter
        See Also:
        HTML.Tag.UL
      • list_

        public void list_()
        Specified by:
        list_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        list_ in class SinkAdapter
        See Also:
        HTML.Tag.UL
      • listItem

        public void listItem​(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Specified by:
        listItem in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        listItem in class SinkAdapter
        See Also:
        HTML.Tag.LI
      • listItem_

        public void listItem_()
        Specified by:
        listItem_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        listItem_ in class SinkAdapter
        See Also:
        HTML.Tag.LI
      • numberedList

        public void numberedList​(int numbering,
                                 org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        The default list style depends on the numbering.
        Specified by:
        numberedList in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        numberedList in class SinkAdapter
        See Also:
        HTML.Tag.OL
      • numberedList_

        public void numberedList_()
        Specified by:
        numberedList_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        numberedList_ in class SinkAdapter
        See Also:
        HTML.Tag.OL
      • numberedListItem

        public void numberedListItem​(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Specified by:
        numberedListItem in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        numberedListItem in class SinkAdapter
        See Also:
        HTML.Tag.LI
      • numberedListItem_

        public void numberedListItem_()
        Specified by:
        numberedListItem_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        numberedListItem_ in class SinkAdapter
        See Also:
        HTML.Tag.LI
      • definitionList

        public void definitionList​(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Specified by:
        definitionList in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        definitionList in class SinkAdapter
        See Also:
        HTML.Tag.DL
      • definitionList_

        public void definitionList_()
        Specified by:
        definitionList_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        definitionList_ in class SinkAdapter
        See Also:
        HTML.Tag.DL
      • definedTerm

        public void definedTerm​(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Specified by:
        definedTerm in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        definedTerm in class SinkAdapter
        See Also:
        HTML.Tag.DT
      • definedTerm_

        public void definedTerm_()
        Specified by:
        definedTerm_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        definedTerm_ in class SinkAdapter
        See Also:
        HTML.Tag.DT
      • definition

        public void definition​(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Specified by:
        definition in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        definition in class SinkAdapter
        See Also:
        HTML.Tag.DD
      • definition_

        public void definition_()
        Specified by:
        definition_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        definition_ in class SinkAdapter
        See Also:
        HTML.Tag.DD
      • figure

        public void figure​(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Specified by:
        figure in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        figure in class SinkAdapter
      • figure_

        public void figure_()
        Specified by:
        figure_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        figure_ in class SinkAdapter
      • figureGraphics

        public void figureGraphics​(java.lang.String src,
                                   org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Specified by:
        figureGraphics in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        figureGraphics in class SinkAdapter
      • figureCaption

        public void figureCaption​(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Specified by:
        figureCaption in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        figureCaption in class SinkAdapter
      • figureCaption_

        public void figureCaption_()
        Specified by:
        figureCaption_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        figureCaption_ in class SinkAdapter
      • paragraph

        public void paragraph​(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Specified by:
        paragraph in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        paragraph in class SinkAdapter
        See Also:
        HTML.Tag.P
      • paragraph_

        public void paragraph_()
        Specified by:
        paragraph_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        paragraph_ in class SinkAdapter
        See Also:
        HTML.Tag.P
      • data

        public void data​(java.lang.String value,
                         org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Specified by:
        data in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        data in class SinkAdapter
      • data_

        public void data_()
        Specified by:
        data_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        data_ in class SinkAdapter
      • time

        public void time​(java.lang.String datetime,
                         org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Specified by:
        time in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        time in class SinkAdapter
      • time_

        public void time_()
        Specified by:
        time_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        time_ in class SinkAdapter
      • address

        public void address​(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Specified by:
        address in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        address in class SinkAdapter
        See Also:
        HTML.Tag.ADDRESS
      • address_

        public void address_()
        Specified by:
        address_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        address_ in class SinkAdapter
        See Also:
        HTML.Tag.ADDRESS
      • blockquote

        public void blockquote​(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Specified by:
        blockquote in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        blockquote in class SinkAdapter
        See Also:
        HTML.Tag.BLOCKQUOTE
      • blockquote_

        public void blockquote_()
        Specified by:
        blockquote_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        blockquote_ in class SinkAdapter
        See Also:
        HTML.Tag.BLOCKQUOTE
      • division

        public void division​(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Specified by:
        division in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        division in class SinkAdapter
        See Also:
        HTML.Tag.DIV
      • division_

        public void division_()
        Specified by:
        division_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        division_ in class SinkAdapter
        See Also:
        HTML.Tag.DIV
      • verbatim

        public void verbatim​(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Depending on whether the decoration attribute is "source" or not, this leads to either emitting <pre><code> or just <pre>. No default classes are emitted but the given attributes are always added to the pre element only.
        Specified by:
        verbatim in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        verbatim in class SinkAdapter
        See Also:
        HTML.Tag.PRE, HTML.Tag.CODE
      • verbatim_

        public void verbatim_()
        Specified by:
        verbatim_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        verbatim_ in class SinkAdapter
        See Also:
        HTML.Tag.CODE, HTML.Tag.PRE
      • horizontalRule

        public void horizontalRule​(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Specified by:
        horizontalRule in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        horizontalRule in class SinkAdapter
        See Also:
        HTML.Tag.HR
      • table

        public void table​(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Specified by:
        table in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        table in class SinkAdapter
      • table_

        public void table_()
        Specified by:
        table_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        table_ in class SinkAdapter
        See Also:
        HTML.Tag.TABLE
      • tableRows

        public void tableRows​(int[] justification,
                              boolean grid)
        The default style class is bodyTable.
        Specified by:
        tableRows in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        tableRows in class SinkAdapter
        Parameters:
        grid - if true the style class bodyTableBorder will be added
        See Also:
        HTML.Tag.TABLE
      • tableRows_

        public void tableRows_()
        Specified by:
        tableRows_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        tableRows_ in class SinkAdapter
      • tableRow

        public void tableRow​(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Rows are striped with two colors by adding the class a or b. If the provided attributes specify the hidden class, the next call to tableRow will set the same striping class as this one. A style for hidden or table.bodyTable hidden may need to be provided to actually hide such a row.
        Specified by:
        tableRow in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        tableRow in class SinkAdapter
        See Also:
        HTML.Tag.TR
      • tableRow_

        public void tableRow_()
        Specified by:
        tableRow_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        tableRow_ in class SinkAdapter
        See Also:
        HTML.Tag.TR
      • tableCell

        public void tableCell​(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Specified by:
        tableCell in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        tableCell in class SinkAdapter
      • tableHeaderCell

        public void tableHeaderCell​(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Specified by:
        tableHeaderCell in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        tableHeaderCell in class SinkAdapter
      • tableCell_

        public void tableCell_()
        Specified by:
        tableCell_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        tableCell_ in class SinkAdapter
      • tableHeaderCell_

        public void tableHeaderCell_()
        Specified by:
        tableHeaderCell_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        tableHeaderCell_ in class SinkAdapter
      • tableCaption

        public void tableCaption​(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Specified by:
        tableCaption in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        tableCaption in class SinkAdapter
        See Also:
        HTML.Tag.CAPTION
      • tableCaption_

        public void tableCaption_()
        Specified by:
        tableCaption_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        tableCaption_ in class SinkAdapter
        See Also:
        HTML.Tag.CAPTION
      • anchor

        public void anchor​(java.lang.String name,
                           org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Specified by:
        anchor in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        anchor in class SinkAdapter
        See Also:
        HTML.Tag.A
      • anchor_

        public void anchor_()
        Specified by:
        anchor_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        anchor_ in class SinkAdapter
        See Also:
        HTML.Tag.A
      • link

        public void link​(java.lang.String name,
                         org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        The default style class for external link is externalLink.
        Specified by:
        link in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        link in class SinkAdapter
        See Also:
        HTML.Tag.A
      • link_

        public void link_()
        Specified by:
        link_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        link_ in class SinkAdapter
        See Also:
        HTML.Tag.A
      • inline

        public void inline​(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Specified by:
        inline in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        inline in class SinkAdapter
      • inline_

        public void inline_()
        Specified by:
        inline_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        inline_ in class SinkAdapter
      • italic

        public void italic()
        Specified by:
        italic in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        italic in class SinkAdapter
        See Also:
        HTML.Tag.I
      • italic_

        public void italic_()
        Specified by:
        italic_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        italic_ in class SinkAdapter
        See Also:
        HTML.Tag.I
      • bold

        public void bold()
        Specified by:
        bold in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        bold in class SinkAdapter
        See Also:
        HTML.Tag.B
      • bold_

        public void bold_()
        Specified by:
        bold_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        bold_ in class SinkAdapter
        See Also:
        HTML.Tag.B
      • monospaced

        public void monospaced()
        Specified by:
        monospaced in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        monospaced in class SinkAdapter
        See Also:
        HTML.Tag.CODE
      • monospaced_

        public void monospaced_()
        Specified by:
        monospaced_ in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        monospaced_ in class SinkAdapter
        See Also:
        HTML.Tag.CODE
      • lineBreak

        public void lineBreak​(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Specified by:
        lineBreak in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        lineBreak in class SinkAdapter
        See Also:
        HTML.Tag.BR
      • lineBreakOpportunity

        public void lineBreakOpportunity​(org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Specified by:
        lineBreakOpportunity in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        lineBreakOpportunity in class SinkAdapter
      • pageBreak

        public void pageBreak()
        Specified by:
        pageBreak in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        pageBreak in class SinkAdapter
      • nonBreakingSpace

        public void nonBreakingSpace()
        Specified by:
        nonBreakingSpace in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        nonBreakingSpace in class SinkAdapter
      • text

        public void text​(java.lang.String text,
                         org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Specified by:
        text in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        text in class SinkAdapter
      • rawText

        public void rawText​(java.lang.String text)
        Specified by:
        rawText in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        rawText in class SinkAdapter
      • comment

        public void comment​(java.lang.String comment)
        Specified by:
        comment in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        comment in class SinkAdapter
      • unknown

        public void unknown​(java.lang.String name,
                            java.lang.Object[] requiredParams,
                            org.apache.maven.doxia.sink.SinkEventAttributes attributes)
        Add an unknown event. This can be used to generate html tags for which no corresponding sink event exists.

        If HtmlTools.getHtmlTag(name) does not return null, the corresponding tag will be written.

        For example, the div block

          <div class="detail" style="display:inline">text</div>
         

        can be generated via the following event sequence:

          SinkEventAttributeSet atts = new SinkEventAttributeSet();
          atts.addAttribute(SinkEventAttributes.CLASS, "detail");
          atts.addAttribute(SinkEventAttributes.STYLE, "display:inline");
          sink.unknown("div", new Object[]{new Integer(HtmlMarkup.TAG_TYPE_START)}, atts);
          sink.text("text");
          sink.unknown("div", new Object[]{new Integer(HtmlMarkup.TAG_TYPE_END)}, null);
         
        Specified by:
        unknown in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        unknown in class SinkAdapter
        Parameters:
        name - the name of the event. If this is not a valid xhtml tag name as defined in HtmlMarkup then the event is ignored.
        requiredParams - If this is null or the first argument is not an Integer then the event is ignored. The first argument should indicate the type of the unknown event, its integer value should be one of TAG_TYPE_START, TAG_TYPE_END, TAG_TYPE_SIMPLE, ENTITY_TYPE, or CDATA_TYPE, otherwise the event will be ignored.
        attributes - a set of attributes for the event. May be null. The attributes will always be written, no validity check is performed.
      • flush

        public void flush()
        Specified by:
        flush in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        flush in class SinkAdapter
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface org.apache.maven.doxia.sink.Sink
        Overrides:
        close in class SinkAdapter
      • content

        protected void content​(java.lang.String text)
        Write HTML escaped text to output.
        Parameters:
        text - The text to write.
      • verbatimContent

        protected void verbatimContent​(java.lang.String text)
        Write HTML escaped text to output.
        Parameters:
        text - The text to write.
      • escapeHTML

        protected static java.lang.String escapeHTML​(java.lang.String text)
        Forward to HtmlTools.escapeHTML(text).
        Parameters:
        text - the String to escape, may be null
        Returns:
        the text escaped, "" if null String input
        See Also:
        HtmlTools.escapeHTML(String)
      • encodeURL

        protected static java.lang.String encodeURL​(java.lang.String text)
        Forward to HtmlTools.encodeURL(text).
        Parameters:
        text - the String to encode, may be null.
        Returns:
        the text encoded, null if null String input.
        See Also:
        HtmlTools.encodeURL(String)
      • write

        protected void write​(java.lang.String text)
        Write a text to the sink.
        Specified by:
        write in class AbstractXmlSink
        Parameters:
        text - the given text to write
      • writeStartTag

        protected void writeStartTag​(javax.swing.text.html.HTML.Tag t,
                                     javax.swing.text.MutableAttributeSet att,
                                     boolean isSimpleTag)
        Starts a Tag with attributes. For instance:
         <tag attName="attValue">
         
        Overrides:
        writeStartTag in class AbstractXmlSink
        Parameters:
        t - a non null tag.
        att - a set of attributes. May be null.
        isSimpleTag - boolean to write as a simple tag.
      • writeEndTag

        protected void writeEndTag​(javax.swing.text.html.HTML.Tag t)
        Ends a Tag without writing an EOL. For instance:
        </tag>
        .
        Overrides:
        writeEndTag in class AbstractXmlSink
        Parameters:
        t - a tag.