Class AbstractXmlSink

    • Constructor Detail

      • AbstractXmlSink

        public AbstractXmlSink()
    • Method Detail

      • setInsertNewline

        public void setInsertNewline​(boolean insertNewline)
      • setNameSpace

        public void setNameSpace​(java.lang.String ns)
        Sets the default namespace that is prepended to all tags written by this sink.
        Parameters:
        ns - the default namespace.
        Since:
        1.1
      • getNameSpace

        public java.lang.String getNameSpace()
        Return the default namespace that is prepended to all tags written by this sink.
        Returns:
        the current default namespace.
        Since:
        1.1
      • writeStartTag

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

        protected void writeEOL()
        Writes a system EOL.
        Since:
        1.1
      • writeEndTag

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

        protected void writeSimpleTag​(javax.swing.text.html.HTML.Tag t,
                                      javax.swing.text.MutableAttributeSet att)
        Starts a simple Tag with attributes. For instance:
         <tag attName="attValue" />
         
        Parameters:
        t - a non null tag.
        att - a set of attributes. May be null.
      • write

        protected abstract void write​(java.lang.String text)
        Write a text to the sink.
        Parameters:
        text - the given text to write