mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Trustin Lee" <trus...@gmail.com>
Subject Re: Any global way to set byteorder on bytebuffers used by MINA?
Date Mon, 03 Jul 2006 09:39:15 GMT
Perhaps we could add a method in ProtocolCodecFactory like this:

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

WDYT?

Trustin

On 6/30/06, Samuel Doyle <sdoyle_2@yahoo.com> wrote:
>
> Yeah, that is what I ended up doing thanks.
>
>
> peter royal <proyal@apache.org> 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, None, 0 bytes)
View raw message