There is also the new Preferences API that may be an option. Check it out at

http://java.sun.com/j2se/1.4.1/docs/guide/lang/preferences.html
<http://java.sun.com/j2se/1.4.1/docs/guide/lang/preferences.html>

HTH,

Tedi

-----Mensagem original-----
De: Ivan Bradac [mailto:[EMAIL PROTECTED]]
Enviada em: segunda-feira, 2 de setembro de 2002 4:04
Para: JDJList
Assunto: [jdjlist] Serialization x XMLization


Hi all

We are developing a desktop application. It is necessary to set up  a system
of storing the user's workspace settings. I think there are two standard
options how to do this:

1. Serialization
2 . Store the settings in an XML file or a set of XML files.

I wonder which of theses approaches suites better. As of now, I can think of
the following pros and cons :

Serialization:
pros: easy to implement, it is built in java, java objects directly are
stored
cons: the stored streams are not human readable, there may be problems with
versions of the serialized classes. Only a java application can read this
data.

XML filesystems:
pros: Human readable and editable, a standard way of storing data, not
dependent on the programming language
cons: requires more work at the implementation, at least at the beginning

Right now I am more in favor od the XML filesystems solution. Does anybody
have any opinion ar experience with this topic?

Thanks

Ivan
To change your JDJList options, please visit:
http://www.sys-con.com/java/list.cfm


To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm

Reply via email to