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(Collection<Writer> writers)
Creates a new filtered collection writer.
|
TeeWriter(Writer... writers)
Creates a new filtered collection writer.
|
afterWrite, append, append, append, beforeWrite, close, flush, handleIOException, write, write, write, write, writepublic TeeWriter(Collection<Writer> writers)
writers - Writers to provide the underlying targets.Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.