Class TeeOutputStream

java.lang.Object
java.io.OutputStream
org.apache.tools.ant.util.TeeOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class TeeOutputStream extends OutputStream
A simple T-piece to replicate an output stream into two separate streams
  • Constructor Details

    • TeeOutputStream

      public TeeOutputStream(OutputStream left, OutputStream right)
      Constructor for TeeOutputStream.
      Parameters:
      left - one of the output streams.
      right - the other output stream.
  • Method Details