Thanks for all your comments :)
> > > One more thing : > > > > code like > > > > return ((input.get() & 0xff) << 24) | ((input.get() & > > 0xff) << 16) | ((input.get() & 0xff) << 8) > > | ((input.get() & 0xff)); > > > > where input is a ByteBuffer can be replaced with : > > > > return input.getInt() > > > > > > (in RawInt32) > Yes and no, if you want to have a unsigned int : > > long unsignedInt = input.getInt() &0xFFFFFFFFL; no ? > > > Julien > I agree, I can switch and use the getInt() method given by the ByteBuffer. I just have to ensure that the endianness is respected with order().