| java.lang.Object java.io.Writer ti.io.TeeWriter
TeeWriter | public class TeeWriter extends Writer (Code) | | This is a writer that can split what is written to it to two
different output Writers.
author: Rob Clark version: 0.1 |
Method Summary | |
public void | close() Close both the output writers. | public void | flush() Flush both the output writers. | public void | setPrimaryWriter(Writer w1) Set the primary output writer. | public void | setSecondaryWriter(Writer w2) Set the secondary output writer. | public void | write(char[] cbuf, int off, int len) Write a portion of an array of characters. |
TeeWriter | public TeeWriter(Writer w1, Writer w2)(Code) | | Class Constructor.
Parameters: w1 - the first of the two output writers Parameters: w2 - the second of the two output writers |
setPrimaryWriter | public void setPrimaryWriter(Writer w1)(Code) | | Set the primary output writer.
Parameters: w1 - the first of the two output writers |
setSecondaryWriter | public void setSecondaryWriter(Writer w2)(Code) | | Set the secondary output writer.
Parameters: w2 - the second of the two output writers |
write | public void write(char[] cbuf, int off, int len) throws IOException(Code) | | Write a portion of an array of characters.
Parameters: cbuf - Array of characters Parameters: off - Offset from which to start writing characters Parameters: len - Number of characters to write exception: IOException - If an I/O error occurs |
|
|