StringDecoder
"이희승 (Trustin Lee)"
trustin at gmail.com
Sun Aug 16 21:56:35 EDT 2009
Hi Mike,
That is a difficult problem to tackle. How do we determine if the
received data is a string or not? Even binary data could contain some
text as a part of it.
Trustin
On 08/13/2009 02:43 AM, Michael McGrady wrote:
> This is a problem if you don't want a ChannelBuffer to be decoded when
> it is not a buffer containing a string. String decoder would be more
> useful, I think, if it only decoded strings and not other objects.
> What do you think?
>
> Mike
>
>
> On Aug 11, 2009, at 7:34 PM, 이희승 (Trustin Lee) wrote:
>
>> On 08/08/2009 09:14 AM, Mike McGrady wrote:
>>> Doesn't the StringDecoder always decode? When would it not decode?
>>
>> StringDecoder and any other decoders will not decode an object unless
>> the object is a ChannelBuffer. You could take advantage of this
>> behavior and insert a series of decoders to implement a complicated
>> decoder, although it will not be necessary to do so in most cases.
>>
>> Trustin
>> _______________________________________________
>> netty-users mailing list
>> netty-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/netty-users
>
> Mike McGrady
> Principal Investigator AF081-028 AFRL SBIR
> Senior Engineer
> Topia Technology, Inc
> 1.253.720.3365
> mmcgrady at topiatechnology.com
>
>
>
>
>
>
>
>
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
More information about the netty-users
mailing list