Multi Output Stream
OutputStream "Multiplexer" which delegates to a list of other registered OutputStreams.
It's kinda like UNIX "tee". Forwarding is in the order the delegates are added. The implementation is synchronous, so the added OutputStreams should be "fast" in order not to block each other.
Exceptions thrown by added OutputStreams are handled gracefully: They at first do not prevent delegating to the other registered OutputStreams, but then are rethrown after we've pushed to delegates (possibly containing multiple causes).
Author
Michael Vorburger
Constructors
Link copied to clipboard
Creates an empty
MultiOutputStream with no delegate streams.Creates a
MultiOutputStream that delegates to the given OutputStreams.Functions
Link copied to clipboard
Adds an OutputStream to this multiplexer.
Link copied to clipboard
Link copied to clipboard
Removes an OutputStream from this multiplexer.