Class TeeOutputStream
java.lang.Object
java.io.OutputStream
com.carrotsearch.randomizedtesting.TeeOutputStream
- All Implemented Interfaces:
Closeable, Flushable, AutoCloseable
Custom teeing stream that ensures both streams receive the output and
no exceptions are quietly suppressed.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
first
-
second
-
-
Constructor Details
-
TeeOutputStream
-
-
Method Details
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
toString
-
equals
-
hashCode
-
clone
- Overrides:
clonein classObject- Throws:
CloneNotSupportedException
-