net.sf.cindy.encoder
Class BufferEncoder

java.lang.Object
  extended by net.sf.cindy.encoder.BufferEncoder
All Implemented Interfaces:
PacketEncoder

public class BufferEncoder
extends java.lang.Object
implements PacketEncoder

Encode Buffer to Packet.

Version:
$id$
Author:
Roger Chen

Constructor Summary
BufferEncoder()
           
 
Method Summary
 Packet encode(Session session, java.lang.Object obj)
          Encode object to packet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BufferEncoder

public BufferEncoder()
Method Detail

encode

public Packet encode(Session session,
                     java.lang.Object obj)
              throws java.lang.Exception
Description copied from interface: PacketEncoder
Encode object to packet.

Specified by:
encode in interface PacketEncoder
Parameters:
session - session
obj - object
Returns:
encoded packet
Throws:
java.lang.Exception - any exception