Class TeeOutputStream

All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable

public final class TeeOutputStream extends PrintStream
Behaves like the 'tee' command, sends output to both actual std stream and a log
  • Field Details

  • Constructor Details

    • TeeOutputStream

      public TeeOutputStream(PrintStream stdStream)
  • Method Details

    • write

      public void write(byte[] b, int off, int len)
      Overrides:
      write in class PrintStream
    • write

      public void write(int b)
      Overrides:
      write in class PrintStream
    • getByteArray

      public byte[] getByteArray()