Class TeeOutputStream

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

    
    public class TeeOutputStream
    extends OutputStream
                        

    An output stream which copies anything written into it to another stream.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void write(Array<byte> buf)
      void write(Array<byte> buf, int off, int len)
      void write(int b)
      void flush()
      void close()
      • Methods inherited from class java.io.OutputStream

        nullOutputStream
      • Methods inherited from class java.lang.Object

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

      • TeeOutputStream

        TeeOutputStream(OutputStream output1, OutputStream output2)
        Base constructor.
        Parameters:
        output1 - the output stream that is wrapped.
        output2 - a secondary stream that anything written to output1 is also written to.