Class TextAreaOutputStream

    • Constructor Detail

      • TextAreaOutputStream

        TextAreaOutputStream​(JTextArea textArea)
        Construct a new TextAreaOutputStream object.
        Parameters:
        textArea - JTextArea; the text area to append the output onto
    • Method Detail

      • awtWrite

        public void awtWrite​(byte[] bytes,
                             int offset,
                             int length)
        Write to the textArea. May only be called from within the AWT thread!
        Parameters:
        bytes - byte[]; bytes to write
        offset - int; offset within bytes of the first byte to write
        length - int; number of bytes to write
      • awtWrite

        public void awtWrite​(int b)
        Write to the textArea. May only be called from within the AWT thread!
        Parameters:
        b - int; byte to write
      • write

        public void write​(byte[] bytes,
                          int offset,
                          int length)
        Overrides:
        write in class OutputStream
      • write

        public void write​(byte[] bytes)
        Overrides:
        write in class OutputStream