Hi,
I am looking for a text encoder and text decoder for object serialization and deserialization. Anyone has worked on such a tool before, and can share the source code?
I have the encoder working using recursion and reflection, but I don't have a clue on the way to use recursion and reflection to read the text back to Java beans. In fact, I have been trying to build the decoder for weeks, and have been stucked on the case where the object contain a collection of objects.
The encoder I have built have the following text output:
{book:Book={{name:java.lang.String="Hitchhiker Guide"}{author:Author={{name:java.lang.String="Edmond Wong"}{email:java.lang.String="[EMAIL PROTECTED]"}{address:java.lang.String="123 Olive Ave"}}}{price:double=49.99}{chapters:java.util.Vector={{chapter:Chapter={{no:int=1}{name:java.lang.String="Act I"}}}{chapter:Chapter={{no:int=2}{name:java.lang.String="Act II"}}}{chapter:Chapter={{no:int=3}{name:java.lang.String="Act III"}}}}}}}
Thanks,
Edmond
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
