Class HTML.HTMLtoPlainTextWriter2

  • Enclosing class:
    HTML

    private static final class HTML.HTMLtoPlainTextWriter2
    extends javax.swing.text.html.HTMLWriter
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) boolean inPre  
      (package private) boolean startingParagraph  
      • Fields inherited from class javax.swing.text.AbstractWriter

        NEWLINE
    • Constructor Summary

      Constructors 
      Constructor Description
      HTMLtoPlainTextWriter2​(java.io.Writer w, javax.swing.text.html.HTMLDocument doc)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void decrIndent()  
      protected void emptyTag​(javax.swing.text.Element elem)  
      protected void endTag​(javax.swing.text.Element elem)  
      protected void incrIndent()  
      protected void startTag​(javax.swing.text.Element elem)  
      protected void text​(javax.swing.text.Element elem)  
      protected void writeEmbeddedTags​(javax.swing.text.AttributeSet attr)  
      • Methods inherited from class javax.swing.text.html.HTMLWriter

        closeOutUnwantedEmbeddedTags, comment, isBlockTag, matchNameAttribute, output, selectContent, synthesizedElement, textAreaContent, write, writeAttributes, writeLineSeparator, writeOption
      • Methods inherited from class javax.swing.text.AbstractWriter

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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • inPre

        boolean inPre
      • startingParagraph

        boolean startingParagraph
    • Constructor Detail

      • HTMLtoPlainTextWriter2

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

      • startTag

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

        protected void writeEmbeddedTags​(javax.swing.text.AttributeSet attr)
                                  throws java.io.IOException
        Overrides:
        writeEmbeddedTags in class javax.swing.text.html.HTMLWriter
        Throws:
        java.io.IOException
      • 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
      • incrIndent

        protected void incrIndent()
        Overrides:
        incrIndent in class javax.swing.text.AbstractWriter
      • decrIndent

        protected void decrIndent()
        Overrides:
        decrIndent in class javax.swing.text.AbstractWriter
      • emptyTag

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

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