- All Implemented Interfaces:
- org.jboss.netty.channel.ChannelHandler, org.jboss.netty.channel.ChannelUpstreamHandler
@ChannelHandler.Sharable
public class ByteArrayDecoder
extends org.jboss.netty.handler.codec.oneone.OneToOneDecoder
This is a very basic decoder which will decode the ChannelBuffer
to
a byte array and send it onwards. It is useful for sending game operations as
bytes and should be used for fast paced games where object serialization
would be expensive. It can however be used with a serializer also, sine it is
sending a byte array.
- Author:
- Abraham Menacherry