com.web_visage.ichat
Class ForwardingMessageWriter

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

public class ForwardingMessageWriter
extends java.lang.Object
implements IChatWriter

Wraps messages into a forward message.

Author:
K.Baturytski

Constructor Summary
ForwardingMessageWriter(IChatMessageFactory aMessageFactory, IChatSender aSender, IChatWriter aWriter)
          Constructor.
 
Method Summary
 void write(java.lang.String aReceiver, 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

ForwardingMessageWriter

public ForwardingMessageWriter(IChatMessageFactory aMessageFactory,
                               IChatSender aSender,
                               IChatWriter aWriter)
Constructor.

Parameters:
aMessageFactory -
aSender -
aWriter -
Method Detail

write

public void write(java.lang.String aReceiver,
                  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)