mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samuel Doyle <sdoyl...@yahoo.com>
Subject Re: Any global way to set byteorder on bytebuffers used by MINA?
Date Mon, 03 Jul 2006 18:35:10 GMT
Yeah that would be great.

Thanks, S.D.

Trustin Lee <trustin@gmail.com> wrote: Perhaps we could add a method in ProtocolCodecFactory
like this:

public interface ProtocolCodecFactory {
...
    ByteOrder getDefaultByteOrder();
...
}

WDYT?

Trustin

On 6/30/06, Samuel Doyle  wrote:
>
> Yeah, that is what I ended up doing thanks.
>
>
> peter royal 
 wrote: On Jun 28, 2006, at 9:54 PM, Samuel
> Doyle wrote:
> > Such as those ByteBuffers that are passed to my encoder and
> > decoders so that they data they are filled with are filled in the
> > correct byte order?
>
> You can easily achieve this with an IoFilter, just call
> ByteBuffer.order() to set the order that you want before and/or after
> your encoder.
> -pete
>
>
> --
> proyal@apache.org - http://fotap.org/~osi
>
>
>
>
>
>


-- 
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP key fingerprints:
* E167 E6AF E73A CBCE EE41  4A29 544D DE48 FE95 4E7E
* B693 628E 6047 4F8F CFA4  455E 1C62 A7DC 0255 ECA6



Mime
  • Unnamed multipart/alternative (inline, 8-Bit, 0 bytes)
View raw message