Class AbstractComponentOutputStream<T extends javax.swing.JComponent>

    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract void append​(javax.swing.JComponent swingComponent, java.lang.String text)  
      void clear()
      Clear the current console text area.
      void close()  
      void flush()  
      protected abstract void replaceRange​(javax.swing.JComponent swingComponent, java.lang.String text, int start, int end)  
      protected abstract void setText​(javax.swing.JComponent swingComponent, java.lang.String text)
      Sets the text.
      void write​(byte[] ba)  
      void write​(byte[] ba, int str, int len)  
      void write​(int val)  
      • 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

      • AbstractComponentOutputStream

        public AbstractComponentOutputStream​(T component)
      • AbstractComponentOutputStream

        public AbstractComponentOutputStream​(T component,
                                             int maxLines)
    • Method Detail

      • append

        protected abstract void append​(javax.swing.JComponent swingComponent,
                                       java.lang.String text)
      • clear

        public void clear()
        Clear the current console text area.
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.OutputStream
      • flush

        public void flush()
        Specified by:
        flush in interface java.io.Flushable
        Overrides:
        flush in class java.io.OutputStream
      • replaceRange

        protected abstract void replaceRange​(javax.swing.JComponent swingComponent,
                                             java.lang.String text,
                                             int start,
                                             int end)
      • setText

        protected abstract void setText​(javax.swing.JComponent swingComponent,
                                        java.lang.String text)
        Sets the text.
        Parameters:
        swingComponent - the swing component
        text - the text
      • write

        public void write​(byte[] ba)
        Overrides:
        write in class java.io.OutputStream
      • write

        public void write​(byte[] ba,
                          int str,
                          int len)
        Overrides:
        write in class java.io.OutputStream
      • write

        public void write​(int val)
        Specified by:
        write in class java.io.OutputStream