|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.Writer | +--uk.org.redfelineninja.net.MulticastWriter
Tool for broadcasting actions performed on groups of writers.
Constructor Summary | |
MulticastWriter()
Create a new MutlicastWriter with no listeners attached. |
Method Summary | |
void |
addListener(java.io.Writer w)
Add a new listener to this multicaster. |
void |
close()
Close the stream of all listeners, flushing them first. |
void |
flush()
Flush the stream of all listeners. |
void |
removeListener(java.io.Writer w)
Remove listener from this multicaster. |
void |
write(char[] cbuf,
int off,
int len)
Write a portion of an array of characters to all listeners. |
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 |
public MulticastWriter()
Method Detail |
public void addListener(java.io.Writer w)
public void removeListener(java.io.Writer w)
public void write(char[] cbuf, int off, int len) throws java.io.IOException
write
in class java.io.Writer
java.io.IOException
public void flush() throws java.io.IOException
flush
in class java.io.Writer
java.io.IOException
public void close() throws java.io.IOException
close
in class java.io.Writer
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |