@ChannelHandler.Sharable
public class JavaObjectToAMF3Encoder
extends org.jboss.netty.handler.codec.oneone.OneToOneEncoder
ChannelBuffer
. It will return this ChannelBuffer
to downstream handler.Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
JavaObjectToAMF3Encoder() |
Modifier and Type | Method and Description |
---|---|
org.jboss.netty.buffer.ChannelBuffer |
convertBAOSToChannelBuffer(ByteArrayOutputStream baos)
Utility method to convert a byte array output stream object to a Netty
channel buffer.
|
protected Object |
encode(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.Channel channel,
Object msg) |
protected Object encode(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.Channel channel, Object msg) throws Exception
encode
in class org.jboss.netty.handler.codec.oneone.OneToOneEncoder
Exception
public org.jboss.netty.buffer.ChannelBuffer convertBAOSToChannelBuffer(ByteArrayOutputStream baos)
baos
- The byte array output stream to convert.Copyright © 2013. All Rights Reserved.