This commit is contained in:
Trustin Lee 2009-06-18 12:30:38 +00:00
parent a26ebc2bc1
commit 10009a05fb
3 changed files with 9 additions and 12 deletions

View File

@ -27,10 +27,9 @@ import org.jboss.netty.channel.Channel;
import org.jboss.netty.channel.ChannelHandlerContext;
/**
* A decoder that decodes the received {@link ChannelBuffer}s into the
* {@link ChannelBuffer}s split by one or more delimiters. It is particularly
* useful for decoding the frames which ends with a delimiter such as
* {@link Delimiters#nulDelimiter() NUL} or
* A decoder that splits the received {@link ChannelBuffer}s by one or more
* delimiters. It is particularly useful for decoding the frames which ends
* with a delimiter such as {@link Delimiters#nulDelimiter() NUL} or
* {@linkplain Delimiters#lineDelimiter() newline characters}.
*
* <h3>Predefined delimiters</h3>

View File

@ -27,9 +27,8 @@ import org.jboss.netty.channel.Channel;
import org.jboss.netty.channel.ChannelHandlerContext;
/**
* A decoder that decodes the received {@link ChannelBuffer}s into the
* {@link ChannelBuffer}s of the fixed length. For example, if you received
* the following four fragmented packets:
* A decoder that splits the received {@link ChannelBuffer}s by the fixed number
* of bytes. For example, if you received the following four fragmented packets:
* <pre>
* +---+----+------+----+
* | A | BC | DEFG | HI |

View File

@ -27,11 +27,10 @@ import org.jboss.netty.channel.Channel;
import org.jboss.netty.channel.ChannelHandlerContext;
/**
* A decoder that decodes the received {@link ChannelBuffer}s with a frame
* length field into a meaningfully framed {@link ChannelBuffer}. It is
* particularly useful when you decode a binary message which has an integer
* header field that represents the length of the message body or the whole
* message.
* A decoder that splits the received {@link ChannelBuffer}s dynamically by the
* value of the length field in the message. It is particularly useful when you
* decode a binary message which has an integer header field that represents the
* length of the message body or the whole message.
* <p>
* {@link LengthFieldBasedFrameDecoder} has many configuration parameters so
* that it can decode any message with a length field, which is often seen in