Unsigned integer types in POJO

"이희승 (Trustin Lee)" trustin at gmail.com
Wed Nov 10 21:42:45 EST 2010


binary wrote:
> I'm aware that Java uses Big Endian byte order, however I notice that Netty
> has both a BigEndianHeapChannelBuffer & LittleEndianHeapChannelBuffer class,
> which implies that it can support either byte order.
> 
> So my question is, if I use an ObjectEncoder to encode my POJO, what byte
> order will be used ? 

Big endian always.  Object serialization is performed by JDK, so we
don't have much control over that.  JBoss Marshalling provides much
better means for object serialization, so you might want to give it a try.

HTH

-- 
Trustin Lee - http://gleamynode.net/


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 290 bytes
Desc: OpenPGP digital signature
Url : http://lists.jboss.org/pipermail/netty-users/attachments/20101111/71451746/attachment.bin 


More information about the netty-users mailing list