2008/10/2 Maarten Bosteels <[EMAIL PROTECTED]>:
>
> Can't you use the order() method ?
> http://mina.apache.org/report/trunk/apidocs/org/apache/mina/core/buffer/IoBuffer.html#order(java.nio.ByteOrder)
> http://java.sun.com/j2se/1.5.0/docs/api/java/nio/ByteBuffer.html?is-external=true#order(java.nio.ByteOrder)
>

Can I use it inside the decode method after the buffer has already been filled?

I do not know why but I just assumed that the buffer has to be created
with the right order before the use.

Now I see no reason for this: I suppose the buffer contains what has
actually been read from the wire in that specific order and endianess
define only how the "get methods" interpret those bytes.

I'll try tomorrow.

BTW, I have another question, but it's better in another thread.


Thanks, again.


Lorenzo

Reply via email to