Class SHTMLWriter


  • public class SHTMLWriter
    extends javax.swing.text.html.HTMLWriter
    FixedHTMLWriter
    • Field Summary

      • Fields inherited from class javax.swing.text.AbstractWriter

        NEWLINE
    • Constructor Summary

      Constructors 
      Constructor Description
      SHTMLWriter​(java.io.Writer w, javax.swing.text.html.HTMLDocument doc)  
      SHTMLWriter​(java.io.Writer w, javax.swing.text.html.HTMLDocument doc, int pos, int len)  
      SHTMLWriter​(javax.swing.text.html.HTMLDocument doc)
      Constructs the SHTMLWriter with a new StringWriter.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void endTag​(javax.swing.text.Element elem)  
      protected javax.swing.text.ElementIterator getElementIterator()  
      protected void indent()  
      protected boolean inRange​(javax.swing.text.Element next)  
      protected void output​(char[] chars, int start, int length)  
      protected void startTag​(javax.swing.text.Element elem)  
      protected void text​(javax.swing.text.Element elem)  
      protected void textAreaContent​(javax.swing.text.AttributeSet attr)  
      java.lang.String toString()  
      void write()  
      void write​(java.lang.String string)  
      protected void writeAttributes​(javax.swing.text.AttributeSet attributeSet)  
      void writeChildElements​(javax.swing.text.Element parentElement)
      invoke HTML creation for all children of a given element.
      protected void writeLineSeparator()  
      • Methods inherited from class javax.swing.text.html.HTMLWriter

        closeOutUnwantedEmbeddedTags, comment, emptyTag, isBlockTag, matchNameAttribute, selectContent, synthesizedElement, writeEmbeddedTags, writeOption
      • Methods inherited from class javax.swing.text.AbstractWriter

        decrIndent, getCanWrapLines, getCurrentLineLength, getDocument, getEndOffset, getIndentLevel, getIndentSpace, getLineLength, getLineSeparator, getStartOffset, getText, getWriter, incrIndent, isLineEmpty, setCanWrapLines, setCurrentLineLength, setIndentSpace, setLineLength, setLineSeparator, write, write
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SHTMLWriter

        public SHTMLWriter​(java.io.Writer w,
                           javax.swing.text.html.HTMLDocument doc,
                           int pos,
                           int len)
      • SHTMLWriter

        public SHTMLWriter​(javax.swing.text.html.HTMLDocument doc)
        Constructs the SHTMLWriter with a new StringWriter. See also the method getWrittenString.
      • SHTMLWriter

        public SHTMLWriter​(java.io.Writer w,
                           javax.swing.text.html.HTMLDocument doc)
    • Method Detail

      • getElementIterator

        protected javax.swing.text.ElementIterator getElementIterator()
        Overrides:
        getElementIterator in class javax.swing.text.AbstractWriter
      • output

        protected void output​(char[] chars,
                              int start,
                              int length)
                       throws java.io.IOException
        Overrides:
        output in class javax.swing.text.html.HTMLWriter
        Throws:
        java.io.IOException
      • startTag

        protected void startTag​(javax.swing.text.Element elem)
                         throws java.io.IOException,
                                javax.swing.text.BadLocationException
        Overrides:
        startTag in class javax.swing.text.html.HTMLWriter
        Throws:
        java.io.IOException
        javax.swing.text.BadLocationException
      • endTag

        protected void endTag​(javax.swing.text.Element elem)
                       throws java.io.IOException
        Overrides:
        endTag in class javax.swing.text.html.HTMLWriter
        Throws:
        java.io.IOException
      • text

        protected void text​(javax.swing.text.Element elem)
                     throws javax.swing.text.BadLocationException,
                            java.io.IOException
        Overrides:
        text in class javax.swing.text.html.HTMLWriter
        Throws:
        javax.swing.text.BadLocationException
        java.io.IOException
      • textAreaContent

        protected void textAreaContent​(javax.swing.text.AttributeSet attr)
                                throws javax.swing.text.BadLocationException,
                                       java.io.IOException
        Overrides:
        textAreaContent in class javax.swing.text.html.HTMLWriter
        Throws:
        javax.swing.text.BadLocationException
        java.io.IOException
      • write

        public void write()
                   throws java.io.IOException,
                          javax.swing.text.BadLocationException
        Overrides:
        write in class javax.swing.text.html.HTMLWriter
        Throws:
        java.io.IOException
        javax.swing.text.BadLocationException
      • writeLineSeparator

        protected void writeLineSeparator()
                                   throws java.io.IOException
        Overrides:
        writeLineSeparator in class javax.swing.text.html.HTMLWriter
        Throws:
        java.io.IOException
      • indent

        protected void indent()
                       throws java.io.IOException
        Overrides:
        indent in class javax.swing.text.AbstractWriter
        Throws:
        java.io.IOException
      • writeChildElements

        public void writeChildElements​(javax.swing.text.Element parentElement)
                                throws java.io.IOException,
                                       javax.swing.text.BadLocationException
        invoke HTML creation for all children of a given element.
        Parameters:
        elem - the element which children are to be written as HTML
        Throws:
        java.io.IOException
        javax.swing.text.BadLocationException
      • inRange

        protected boolean inRange​(javax.swing.text.Element next)
        Overrides:
        inRange in class javax.swing.text.AbstractWriter
      • writeAttributes

        protected void writeAttributes​(javax.swing.text.AttributeSet attributeSet)
                                throws java.io.IOException
        Overrides:
        writeAttributes in class javax.swing.text.html.HTMLWriter
        Throws:
        java.io.IOException
      • write

        public void write​(java.lang.String string)
        Overrides:
        write in class javax.swing.text.AbstractWriter
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object