mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Colin Fleming" <colin.flem...@coreproc.com>
Subject Re: Decoding chars from ByteBuffers
Date Wed, 04 Oct 2006 00:05:03 GMT
Great, thanks for the quick reply! So there's always an NIO ByteBuffer
underlying a Mina one? You learn something every day....

Cheers,
Colin

On 10/3/06, Greg Duffy <gduffy@gmail.com> wrote:
> Access the underlying java.nio.ByteBuffer with the ByteBuffer.buf() method,
> and use CharsetEncoder/Decoder or whatever to your heart's content.
>
> -Greg
>
> On 10/3/06, Colin Fleming <colin.fleming@coreproc.com> wrote:
> >
> > Hi all,
> >
> > Is there any way to encode/decode chars to/from a Mina ByteBuffer at
> > all, apart from using getString/putString? Not being able to flexibly
> > do this is a pretty bad limitation for a lot of applications, I think.
> > Am I missing anything obvious? Any plans around this stuff?
> >
> > Thanks,
> > Colin
> >
>
>

Mime
View raw message