directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trustin Lee <trus...@gmail.com>
Subject Re: [MINA] RE: [jira] Closed: (DIRMINA-126) ByteBuffer.get/putObject()
Date Wed, 30 Nov 2005 04:08:03 GMT
Hi Jose,

2005/11/29, Jose Alberto Fernandez <jalberto@cellectivity.com>:
>
> Does this means that the client needs to use a different serialization
> infrastructure than the one provided by the JDK?


You'll need to override read/writeClassDescriptor() method in
ObjectInput/OutputStream, and there will be four-bytes header which
indicates the length of the object.  This is easily done without much code.

Same for the pascalStrings are they compatible with what read/writeUTF
> produces?


Yes, if you use a 'UTF-8' CharsetEncoder.

HTH,
Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/

Mime
View raw message