Class ConsoleOutputStream

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

    public class ConsoleOutputStream
    extends java.io.OutputStream
    Output stream which storing the console output
    Restriction:
    This class is not intended to be instantiated by clients.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.StringBuffer fBuffer  
    • Method Summary

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

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

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

      • fBuffer

        protected java.lang.StringBuffer fBuffer
    • Constructor Detail

      • ConsoleOutputStream

        public ConsoleOutputStream()
    • Method Detail

      • readBuffer

        public java.lang.String readBuffer()
      • write

        public void write​(int c)
                   throws java.io.IOException
        Specified by:
        write in class java.io.OutputStream
        Throws:
        java.io.IOException
      • write

        public void write​(byte[] b,
                          int off,
                          int len)
                   throws java.io.IOException
        Overrides:
        write in class java.io.OutputStream
        Throws:
        java.io.IOException
      • write

        public void write​(java.lang.String msg)
                   throws java.io.IOException
        Throws:
        java.io.IOException
        Since:
        6.0