org.jboss.netty.handler.codec.protobuf
类 ProtobufVarint32LengthFieldPrepender

java.lang.Object
  继承者 org.jboss.netty.handler.codec.oneone.OneToOneEncoder
      继承者 org.jboss.netty.handler.codec.protobuf.ProtobufVarint32LengthFieldPrepender
所有已实现的接口:
ChannelDownstreamHandler, ChannelHandler

@ChannelHandler.Sharable
public class ProtobufVarint32LengthFieldPrepender
extends OneToOneEncoder

An encoder that prepends the the Google Protocol Buffers Base 128 Varints integer length field. For example:

 BEFORE DECODE (300 bytes)       AFTER DECODE (302 bytes)
 +---------------+               +--------+---------------+
 | Protobuf Data |-------------->| Length | Protobuf Data |
 |  (300 bytes)  |               | 0xAC02 |  (300 bytes)  |
 +---------------+               +--------+---------------+
 
*

另请参见:
CodedOutputStream

嵌套类摘要
 
从接口 org.jboss.netty.channel.ChannelHandler 继承的嵌套类/接口
ChannelHandler.Sharable
 
构造方法摘要
ProtobufVarint32LengthFieldPrepender()
          Creates a new instance.
 
方法摘要
 
从类 org.jboss.netty.handler.codec.oneone.OneToOneEncoder 继承的方法
handleDownstream
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

ProtobufVarint32LengthFieldPrepender

public ProtobufVarint32LengthFieldPrepender()
Creates a new instance.