E
Edmond wong
Hi,
I am looking for a text encoder and text decoder for object
serialization and deserialization. Any one have work 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 object. In fact, I have been trying to build the decoder and
have been stucked on the case where the object contain a collection of
objects.
The encoder I build 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="(e-mail address removed)"}{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
I am looking for a text encoder and text decoder for object
serialization and deserialization. Any one have work 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 object. In fact, I have been trying to build the decoder and
have been stucked on the case where the object contain a collection of
objects.
The encoder I build 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="(e-mail address removed)"}{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