Thursday, January 31, 2013

Re: How to best (de)-serialize objects?

Maybe this can be helpfull.
http://stackoverflow.com/questions/2836646/java-serializable-object-to-byte-array

On Thursday, 31 January 2013 10:16:02 UTC+1, membersound wrote:
Hi,

I want to serialize a bunch of objects to a file, and later derserialize it.
The purpose is to let a user draw something on a canvas, save the objects representing the drawing to a file, and later continue it's work.

So I'm probably looking for a way of JSON. I read of JSNI and GWT Overlay Types. But this would mean I have to manually define every property that is to be serialized back and forth.

Isn't there anything build-in mechanism to just save a whole bunch of objects/beans to JSON and later just read it and recreate the object? Without having to care about all properties contained?

Thanks

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

No comments:

Post a Comment