Class Console.ConsoleFrame.MyByteArrayOutputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable
    Enclosing class:
    Console.ConsoleFrame

    public static class Console.ConsoleFrame.MyByteArrayOutputStream
    extends java.io.ByteArrayOutputStream
    Customized ByteArrayOutputStream. Refresh the frame whenever new print-outs come in.
    • Field Summary

      • Fields inherited from class java.io.ByteArrayOutputStream

        buf, count
    • Constructor Summary

      Constructors 
      Constructor Description
      MyByteArrayOutputStream​(javax.swing.JTextArea textArea, Tableau tableau)
      Create an output stream.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void write​(byte[] b, int off, int len)  
      void write​(int b)  
      • Methods inherited from class java.io.ByteArrayOutputStream

        close, reset, size, toByteArray, toString, toString, toString, toString, writeBytes, writeTo
      • Methods inherited from class java.io.OutputStream

        flush, nullOutputStream, write
      • Methods inherited from class java.lang.Object

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

      • MyByteArrayOutputStream

        public MyByteArrayOutputStream​(javax.swing.JTextArea textArea,
                                       Tableau tableau)
        Create an output stream.
        Parameters:
        textArea - The textarea that gets updated.
        tableau - The tableau containing the text area.
    • Method Detail

      • write

        public void write​(int b)
        Overrides:
        write in class java.io.ByteArrayOutputStream
      • write

        public void write​(byte[] b,
                          int off,
                          int len)
        Overrides:
        write in class java.io.ByteArrayOutputStream