net.sf.cindy.encoder
Class ByteBufferEncoder

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

public class ByteBufferEncoder
extends java.lang.Object
implements PacketEncoder

Encode ByteBuffer to Packet.

Version:
$id$
Author:
Roger Chen

Constructor Summary
ByteBufferEncoder()
           
 
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

ByteBufferEncoder

public ByteBufferEncoder()
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