Class JTextAreaOutputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable

    public class JTextAreaOutputStream
    extends AbstractComponentOutputStream<javax.swing.JTextArea>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void append​(javax.swing.JComponent swingComponent, java.lang.String text)  
      protected void redrawTextOf​(javax.swing.JComponent swingComponent)  
      protected void replaceRange​(javax.swing.JComponent swingComponent, java.lang.String text, int start, int end)  
      protected void setText​(javax.swing.JComponent swingComponent, java.lang.String text)
      Sets the text.
      • Methods inherited from class java.io.OutputStream

        nullOutputStream
      • Methods inherited from class java.lang.Object

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

      • JTextAreaOutputStream

        public JTextAreaOutputStream​(javax.swing.JTextArea component)
      • JTextAreaOutputStream

        public JTextAreaOutputStream​(javax.swing.JTextArea component,
                                     int maxLines)
    • Method Detail

      • append

        protected void append​(javax.swing.JComponent swingComponent,
                              java.lang.String text)
        Specified by:
        append in class AbstractComponentOutputStream<javax.swing.JTextArea>
      • redrawTextOf

        protected void redrawTextOf​(javax.swing.JComponent swingComponent)
      • replaceRange

        protected void replaceRange​(javax.swing.JComponent swingComponent,
                                    java.lang.String text,
                                    int start,
                                    int end)
        Specified by:
        replaceRange in class AbstractComponentOutputStream<javax.swing.JTextArea>
      • setText

        protected void setText​(javax.swing.JComponent swingComponent,
                               java.lang.String text)
        Description copied from class: AbstractComponentOutputStream
        Sets the text.
        Specified by:
        setText in class AbstractComponentOutputStream<javax.swing.JTextArea>
        Parameters:
        swingComponent - the swing component
        text - the text