directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trustin Lee <>
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 <>:
> 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.

what we call human nature is actually human habit

View raw message