public final class TeeWriter extends Writer
| Modifier and Type | Field and Description |
|---|---|
private static org.apache.commons.logging.Log |
LOG |
private Writer[] |
writers |
| Constructor and Description |
|---|
TeeWriter()
Create a writer that doesn't do anything.
|
TeeWriter(Writer... writers)
Create a single writer that writes to multiple writers.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
flush() |
void |
write(char[] cbuf,
int off,
int len) |
private static final org.apache.commons.logging.Log LOG
private final Writer[] writers
public TeeWriter()
public TeeWriter(Writer... writers)
writers - the list of writers that should be written to.public void write(char[] cbuf,
int off,
int len)
throws IOException
write in class WriterIOExceptionpublic void flush()
throws IOException
flush in interface Flushableflush in class WriterIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class WriterIOExceptionCopyright © 2006–2018 Simuline Organization (l2r). All rights reserved.