public class NettyBytableDecoder
extends org.jboss.netty.handler.codec.frame.LengthFieldBasedFrameDecoder
Bytable object.| Constructor and Description |
|---|
NettyBytableDecoder()
Default constructor with max object size 256M.
|
NettyBytableDecoder(int maxObjectSize)
Creates a new decoder with the specified maximum object size.
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
decode(org.jboss.netty.channel.ChannelHandlerContext ctx,
org.jboss.netty.channel.Channel channel,
org.jboss.netty.buffer.ChannelBuffer buffer) |
protected org.jboss.netty.buffer.ChannelBuffer |
extractFrame(org.jboss.netty.buffer.ChannelBuffer buffer,
int index,
int length) |
actualReadableBytes, afterAdd, afterRemove, appendToCumulation, beforeAdd, beforeRemove, channelClosed, channelDisconnected, cleanup, decodeLast, exceptionCaught, getMaxCumulationBufferCapacity, getMaxCumulationBufferComponents, internalBuffer, isUnfold, messageReceived, newCumulationBuffer, replace, setMaxCumulationBufferCapacity, setMaxCumulationBufferComponents, setUnfold, unfoldAndFireMessageReceived, updateCumulationpublic NettyBytableDecoder()
public NettyBytableDecoder(int maxObjectSize)
maxObjectSize - the maximum byte length of the serialized object. if the length of the received object is greater than
this value, StreamCorruptedException will be raised.protected Object decode(org.jboss.netty.channel.ChannelHandlerContext ctx, org.jboss.netty.channel.Channel channel, org.jboss.netty.buffer.ChannelBuffer buffer) throws Exception
decode in class org.jboss.netty.handler.codec.frame.LengthFieldBasedFrameDecoderExceptionprotected org.jboss.netty.buffer.ChannelBuffer extractFrame(org.jboss.netty.buffer.ChannelBuffer buffer,
int index,
int length)
extractFrame in class org.jboss.netty.handler.codec.frame.FrameDecoderCopyright © 2018. All Rights Reserved.