>Oh, one trick, using the BinarySerializer you can send only 1
>(Serializable) Object, or the output will generate error during write
>on (optional) elements after the first ... so a general trick on this
>could be to send a container object (like a Map) containing only
>serializable objects ...

FYI, this isn't a limitation of BinarySerializer - it's just how the Serializer 
interface works. Serializer reads and writes a single root object. If you need 
to read or write more to a single stream, you can make multiple calls to 
readObject() or writeObject(). Or, you can use Java serialization directly 
(rather than using BinarySerializer).


Reply via email to