com.web_visage.ichat
Class DefaultMessageWriter

java.lang.Object
  extended by com.web_visage.ichat.DefaultMessageWriter
All Implemented Interfaces:
IChatWriter

public class DefaultMessageWriter
extends java.lang.Object
implements IChatWriter

Writes messages to an OutputStream stream.

Author:
K.Baturytski

Constructor Summary
DefaultMessageWriter(java.io.OutputStream anOutputStream)
          Constructor.
 
Method Summary
 void write(java.lang.String aReciever, 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

DefaultMessageWriter

public DefaultMessageWriter(java.io.OutputStream anOutputStream)
Constructor.

Parameters:
anOutputStream -
Method Detail

write

public void write(java.lang.String aReciever,
                  ByteRepresentable aMessage)
           throws java.io.IOException,
                  IChatException
Description copied from interface: IChatWriter
Writes a message to a channel/sream.

Specified by:
write in interface IChatWriter
Throws:
java.io.IOException
IChatException
See Also:
IChatWriter.write(java.lang.String, com.web_visage.ichat.ByteRepresentable)