uk.org.redfelineninja.risk.test
Class BroadcastWriter
java.lang.Object
|
+--java.io.Writer
|
+--uk.org.redfelineninja.risk.test.BroadcastWriter
- public class BroadcastWriter
- extends java.io.Writer
This class allows the caller to agregate many Writer into one single one.
In addition it can be interegated by name to return a Writer of that name.
Methods inherited from class java.io.Writer |
write, write, write, write |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BroadcastWriter
public BroadcastWriter()
addWriter
public void addWriter(java.io.Writer w)
removeWriter
public boolean removeWriter(java.io.Writer w)
write
public void write(char[] cbuf,
int off,
int len)
throws java.io.IOException
- Specified by:
write
in class java.io.Writer
java.io.IOException
flush
public void flush()
throws java.io.IOException
- Specified by:
flush
in class java.io.Writer
java.io.IOException
close
public void close()
throws java.io.IOException
- Specified by:
close
in class java.io.Writer
java.io.IOException