Package overit.geocall.util
Class TeeOutputStream
java.lang.Object
java.io.OutputStream
overit.geocall.util.TeeOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
A TeeOutputStream works similar to unix tee, piping identical
output to two different streams.
-
Constructor Summary
ConstructorsConstructorDescriptionTeeOutputStream(OutputStream os1, OutputStream os2) Creates an instance of TeeOutputStream -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream, write
-
Constructor Details
-
TeeOutputStream
Creates an instance of TeeOutputStream- Parameters:
os1- The first OutputStreamos2- The second OutputStream
-
-
Method Details
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
writein classOutputStream- Throws:
IOException
-
flush
- Specified by:
flushin interfaceFlushable- Overrides:
flushin classOutputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream- Throws:
IOException
-