Package org.bouncycastle.util.io
Class TeeOutputStream
java.lang.Object
java.io.OutputStream
org.bouncycastle.util.io.TeeOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
An output stream which copies anything written into it to another stream.
-
Constructor Summary
ConstructorDescriptionTeeOutputStream
(OutputStream output1, OutputStream output2) Base constructor. -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
TeeOutputStream
Base constructor.- Parameters:
output1
- the output stream that is wrapped.output2
- a secondary stream that anything written to output1 is also written to.
-
-
Method Details
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-