net.sf.cindy.encoder
Class ByteArrayEncoder

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

public class ByteArrayEncoder
extends java.lang.Object
implements PacketEncoder

Encode byte array to Packet.

Version:
$id$
Author:
Roger Chen

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

ByteArrayEncoder

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