Javadoc
This commit is contained in:
parent
a26ebc2bc1
commit
10009a05fb
@ -27,10 +27,9 @@ import org.jboss.netty.channel.Channel;
|
|||||||
import org.jboss.netty.channel.ChannelHandlerContext;
|
import org.jboss.netty.channel.ChannelHandlerContext;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A decoder that decodes the received {@link ChannelBuffer}s into the
|
* A decoder that splits the received {@link ChannelBuffer}s by one or more
|
||||||
* {@link ChannelBuffer}s split by one or more delimiters. It is particularly
|
* delimiters. It is particularly useful for decoding the frames which ends
|
||||||
* useful for decoding the frames which ends with a delimiter such as
|
* with a delimiter such as {@link Delimiters#nulDelimiter() NUL} or
|
||||||
* {@link Delimiters#nulDelimiter() NUL} or
|
|
||||||
* {@linkplain Delimiters#lineDelimiter() newline characters}.
|
* {@linkplain Delimiters#lineDelimiter() newline characters}.
|
||||||
*
|
*
|
||||||
* <h3>Predefined delimiters</h3>
|
* <h3>Predefined delimiters</h3>
|
||||||
|
@ -27,9 +27,8 @@ import org.jboss.netty.channel.Channel;
|
|||||||
import org.jboss.netty.channel.ChannelHandlerContext;
|
import org.jboss.netty.channel.ChannelHandlerContext;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A decoder that decodes the received {@link ChannelBuffer}s into the
|
* A decoder that splits the received {@link ChannelBuffer}s by the fixed number
|
||||||
* {@link ChannelBuffer}s of the fixed length. For example, if you received
|
* of bytes. For example, if you received the following four fragmented packets:
|
||||||
* the following four fragmented packets:
|
|
||||||
* <pre>
|
* <pre>
|
||||||
* +---+----+------+----+
|
* +---+----+------+----+
|
||||||
* | A | BC | DEFG | HI |
|
* | A | BC | DEFG | HI |
|
||||||
|
@ -27,11 +27,10 @@ import org.jboss.netty.channel.Channel;
|
|||||||
import org.jboss.netty.channel.ChannelHandlerContext;
|
import org.jboss.netty.channel.ChannelHandlerContext;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A decoder that decodes the received {@link ChannelBuffer}s with a frame
|
* A decoder that splits the received {@link ChannelBuffer}s dynamically by the
|
||||||
* length field into a meaningfully framed {@link ChannelBuffer}. It is
|
* value of the length field in the message. It is particularly useful when you
|
||||||
* particularly useful when you decode a binary message which has an integer
|
* decode a binary message which has an integer header field that represents the
|
||||||
* header field that represents the length of the message body or the whole
|
* length of the message body or the whole message.
|
||||||
* message.
|
|
||||||
* <p>
|
* <p>
|
||||||
* {@link LengthFieldBasedFrameDecoder} has many configuration parameters so
|
* {@link LengthFieldBasedFrameDecoder} has many configuration parameters so
|
||||||
* that it can decode any message with a length field, which is often seen in
|
* that it can decode any message with a length field, which is often seen in
|
||||||
|
Loading…
x
Reference in New Issue
Block a user