public class TeeWriter extends ProxyCollectionWriter
Writer
. Named after the Unix 'tee' command. It allows a stream to be branched off so
there are now two streams.
This currently a only convenience class with the proper name "TeeWriter".
EMPTY_WRITERS, writers
Constructor and Description |
---|
TeeWriter(java.util.Collection<java.io.Writer> writers)
Creates a new filtered collection writer.
|
TeeWriter(java.io.Writer... writers)
Creates a new filtered collection writer.
|
afterWrite, append, append, append, beforeWrite, close, flush, handleIOException, write, write, write, write, write
public TeeWriter(java.util.Collection<java.io.Writer> writers)
writers
- Writers to provide the underlying targets.public TeeWriter(java.io.Writer... writers)
writers
- Writers to provide the underlying targets.