? TeeWriter
java.lang.Object
java.io.Writer
org.apache.commons.io.output.FilterCollectionWriter
org.apache.commons.io.output.ProxyCollectionWriter
org.apache.commons.io.output.TeeWriter
- ????????:
Closeable
,Flushable
,Appendable
,AutoCloseable
Classic splitter of
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".
- ???????:
- 2.7
-
????
??????? org.apache.commons.io.output.FilterCollectionWriter
EMPTY_WRITERS, writers
-
?????
????????Creates a new filtered collection writer.TeeWriter
(Collection<Writer> writers) Creates a new filtered collection writer. -
????
??????? org.apache.commons.io.output.ProxyCollectionWriter
afterWrite, append, append, append, beforeWrite, close, flush, handleIOException, write, write, write, write, write
??????? java.io.Writer
nullWriter
-
???????
-
TeeWriter
Creates a new filtered collection writer.- ??:
writers
- Writers to provide the underlying targets.
-
TeeWriter
Creates a new filtered collection writer.- ??:
writers
- Writers to provide the underlying targets.
-