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.
-
-
Constructor Summary
Constructors Constructor Description TeeOutputStream(OutputStream output1, OutputStream output2)
Base constructor.
-
Method Summary
-
-
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.
-
-
-
-