Class ConsoleInput.RedirectOutputStream

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

    private class ConsoleInput.RedirectOutputStream
    extends java.io.OutputStream
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.io.OutputStream dest1  
      private java.io.PrintStream dest2  
      (package private) boolean ts  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private RedirectOutputStream​(java.io.OutputStream _dest1, java.io.PrintStream _dest2)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      void flush()  
      private void requestTimeStamp()  
      void write​(int b)  
      • Methods inherited from class java.io.OutputStream

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

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

      • dest1

        private final java.io.OutputStream dest1
      • dest2

        private final java.io.PrintStream dest2
      • ts

        boolean ts
    • Constructor Detail

      • RedirectOutputStream

        private RedirectOutputStream​(java.io.OutputStream _dest1,
                                     java.io.PrintStream _dest2)
    • Method Detail

      • requestTimeStamp

        private void requestTimeStamp()
      • write

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

        public void flush()
                   throws java.io.IOException
        Specified by:
        flush in interface java.io.Flushable
        Overrides:
        flush in class java.io.OutputStream
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Overrides:
        close in class java.io.OutputStream
        Throws:
        java.io.IOException