com.web_visage.ichatserv.fwk
Class AsyncServerMessageWriter

java.lang.Object
  extended by com.web_visage.ichatserv.fwk.AsyncServerMessageWriter
All Implemented Interfaces:
IChatServerWriter

public class AsyncServerMessageWriter
extends java.lang.Object
implements IChatServerWriter

Message writer for use with non-blocking sockets.

Author:
K.Baturytski

Constructor Summary
AsyncServerMessageWriter(java.nio.channels.ByteChannel aChannel)
          Constructor.
 
Method Summary
 void write(com.web_visage.ichat.ByteRepresentable aMessage)
          Writes a message to a channel/sream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncServerMessageWriter

public AsyncServerMessageWriter(java.nio.channels.ByteChannel aChannel)
Constructor.

Parameters:
aChannel -
Method Detail

write

public void write(com.web_visage.ichat.ByteRepresentable aMessage)
           throws java.io.IOException,
                  com.web_visage.ichat.exception.IChatException
Description copied from interface: IChatServerWriter
Writes a message to a channel/sream.

Specified by:
write in interface IChatServerWriter
Throws:
java.io.IOException
com.web_visage.ichat.exception.IChatException
See Also:
IChatServerWriter.write(com.web_visage.ichat.ByteRepresentable)