Package google.registry.util
Class TeeOutputStream
java.lang.Object
java.io.OutputStream
google.registry.util.TeeOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
OutputStream
delegate that writes simultaneously to multiple other output streams.-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.OutputStream
flush, nullOutputStream
-
Constructor Details
-
TeeOutputStream
-
-
Method Details
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
- See Also:
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
- See Also:
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
- See Also:
-
close
public void close()Closes the stream. Any calls to awrite()
method after this will throw.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
-