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.


Constructor Summary
BroadcastWriter()
           
 
Method Summary
 void addWriter(java.io.Writer w)
           
 void close()
           
 void flush()
           
 boolean removeWriter(java.io.Writer w)
           
 void write(char[] cbuf, int off, int len)
           
 
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
 

Constructor Detail

BroadcastWriter

public BroadcastWriter()
Method Detail

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