WebSocket client API
Pavel Rappo
pavel.rappo at oracle.com
Tue Oct 20 12:57:18 UTC 2015
Hi Joakim,
> On 20 Oct 2015, at 13:50, Joakim Erdfelt <joakim.erdfelt at gmail.com> wrote:
>
> You know that CharBuffer doesn't actually do UTF8, right?
> It's just a ByteBuffer split into equal 2 byte segments.
> CharBuffer is a way to obtain char (the 2 byte number, not the character) from the ByteBuffer or String you created it from.
> CharBuffer is functionally no different than ShortBuffer.
Yes, I'm fully aware of the difference between java.nio.ByteBuffer#asCharBuffer
and java.nio.charset.CharsetDecoder#decode(java.nio.ByteBuffer).
What's your point?
More information about the net-dev
mailing list