Forums Register Login

Saving and loading question

+Pie Number of slices to send: Send
Hey, I am creating an application which allows users to simulate certain communications protocols. This application would allow users to configure networks using network components such as routers and hosts by dragging and dropping images of them onto a configuration area. Therefore, as an image is dropped onto the area, objects would be created and certain parameters set.
One of the requirements of the application is to allow users to save configurations so that there could be loaded in the future.
Could anyone give me ideas on how I would be able to save the configurations along with the parameters? Thanks in advance.
+Pie Number of slices to send: Send
Broadly, there are two ways: save the Java objects directly using serialization, or define a structured file format to translate your objects into as they are saved. Serialization is easy, but opaque and potentially fragile if your code changes. Defining and using a custom file format may or may not be difficult. It might be something you define from scratch, or you could just use an established format like XML. The advantage of using something like XML is you can use a pre-existing parser and tools for writing the file format.
+Pie Number of slices to send: Send
Could you tell me of any website or book that would give me information on using either of these two techniques?...thanks
Paper beats rock. Scissors beats tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 635 times.
Similar Threads
Starting Threads
Product security
CountDown Timer
JBuilder(Personal)-Run-Configurations... always deactivated, how come???
Drawing and Drag n Drop
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 18, 2024 22:39:15.