org.jboss.netty.handler.codec.frame
类 FixedLengthFrameDecoder

java.lang.Object
  继承者 org.jboss.netty.channel.SimpleChannelUpstreamHandler
      继承者 org.jboss.netty.handler.codec.frame.FrameDecoder
          继承者 org.jboss.netty.handler.codec.frame.FixedLengthFrameDecoder
所有已实现的接口:
ChannelHandler, ChannelUpstreamHandler

public class FixedLengthFrameDecoder
extends FrameDecoder

A decoder that splits the received ChannelBuffers by the fixed number of bytes. For example, if you received the following four fragmented packets:

 +---+----+------+----+
 | A | BC | DEFG | HI |
 +---+----+------+----+
 
A FixedLengthFrameDecoder(3) will decode them into the following three packets with the fixed length:
 +-----+-----+-----+
 | ABC | DEF | GHI |
 +-----+-----+-----+
 


嵌套类摘要
 
从接口 org.jboss.netty.channel.ChannelHandler 继承的嵌套类/接口
ChannelHandler.Sharable
 
构造方法摘要
FixedLengthFrameDecoder(int frameLength)
          Creates a new instance.
 
方法摘要
 
从类 org.jboss.netty.handler.codec.frame.FrameDecoder 继承的方法
channelClosed, channelDisconnected, exceptionCaught, messageReceived
 
从类 org.jboss.netty.channel.SimpleChannelUpstreamHandler 继承的方法
channelBound, channelConnected, channelInterestChanged, channelOpen, channelUnbound, childChannelClosed, childChannelOpen, handleUpstream, writeComplete
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

FixedLengthFrameDecoder

public FixedLengthFrameDecoder(int frameLength)
Creates a new instance.

参数:
frameLength - the length of the frame