Class TeeOutputStream
java.lang.Object
java.io.OutputStream
org.apache.tapestry5.internal.util.TeeOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
An output stream that acts like a "tee", copying all provided bytes to two output streams. This is used, for example,
to accumulate a hash of content even as it is being written.
- Since:
- 5.3.5
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.OutputStream
nullOutputStream
-
Constructor Details
-
TeeOutputStream
-
-
Method Details
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
write
- Overrides:
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
-