XMPP / XML Frame Decoder
"Trustin Lee (이희승)"
trustin at gmail.com
Wed Mar 24 20:26:33 EDT 2010
mheath wrote:
<snip/>
>> It uses MINA IoBuffer so you will need to convert it to use
>> ChannelBuffer to make it work with Netty. The conversion should be
>> trivial of course. I'd rather want to see something that simply relies
>> on byte[] though.
>
> My preference would be something that relies on String instead of byte[]
> so that the code only has to parse the XML and not worry about decoding
> the byte[].
I think the parser should accept byte[] since we really don't know the
encoding of the document until we process its first line. Also,
consider that there are characters that takes more than one byte.
--
what we call human nature in actuality is human habit
http://gleamynode.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
Url : http://lists.jboss.org/pipermail/netty-users/attachments/20100325/bfe70235/attachment-0001.bin
More information about the netty-users
mailing list