@ChannelHandler.Sharable
public class ByteArrayToChannelBufferEncoder
extends org.jboss.netty.handler.codec.oneone.OneToOneEncoder
ChannelBuffer
. It actually wraps
the byte array with the ChannelBuffer
instance using wrappedBuffer
method.Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
ByteArrayToChannelBufferEncoder() |
Modifier and Type | Method and Description |
---|---|
protected Object |
encode(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.Channel channel,
Object msg) |
Copyright © 2013. All Rights Reserved.