diff --git a/src/main/java/org/jboss/netty/handler/codec/frame/LengthFieldBasedFrameDecoder.java b/src/main/java/org/jboss/netty/handler/codec/frame/LengthFieldBasedFrameDecoder.java index a610f39b24..2238384c2b 100644 --- a/src/main/java/org/jboss/netty/handler/codec/frame/LengthFieldBasedFrameDecoder.java +++ b/src/main/java/org/jboss/netty/handler/codec/frame/LengthFieldBasedFrameDecoder.java @@ -52,7 +52,7 @@ import org.jboss.netty.channel.ChannelHandlerContext; * +--------------+----------------+ +----------------+ * * - *

2 bytes length Field at offset 0, do not strip header

+ *

2 bytes length field at offset 0, do not strip header

*
  * lengthFieldOffset   = 0
  * lengthFieldLength   = 2
@@ -66,7 +66,7 @@ import org.jboss.netty.channel.ChannelHandlerContext;
  * +--------+----------------+      +--------+----------------+
  * 
* - *

3 bytes length Field at the end of 5 bytes header, strip header

+ *

3 bytes length field at the end of 5 bytes header, strip header

*
  * lengthFieldOffset   = 2 (= 5 - 3)
  * lengthFieldLength   = 3
@@ -80,7 +80,7 @@ import org.jboss.netty.channel.ChannelHandlerContext;
  * +----------+----------+----------------+      +----------------+
  * 
* - *

2 bytes length Field at offset 1 in the middle of 4 bytes header, + *

2 bytes length field at offset 1 in the middle of 4 bytes header, * strip the first header field and the length field

*
  * lengthFieldOffset   = 1
@@ -95,7 +95,7 @@ import org.jboss.netty.channel.ChannelHandlerContext;
  * +------+--------+------+----------------+      +------+----------------+
  * 
* - *

2 bytes length Field at offset 1 in the middle of 4 bytes header, + *

2 bytes length field at offset 1 in the middle of 4 bytes header, * strip the first header field and the length field, the length field * includes the header length

*