Hi

Thanks to all that replied, your thoughts have helped me. I think I will use
the XML approach using the Preferences API. It's quite impressive -  it
gives me also a possibility to store the settings in a SQL Database using
the same API which is very useful. I did not know that something like that
existed - I should have read more thoroughly through JDK 1.4 documentation
:)

Ivan


----- Original Message -----
From: "Conway. Fintan (IT Solutions)" <[EMAIL PROTECTED]>
To: "JDJList" <[EMAIL PROTECTED]>
Sent: Monday, September 02, 2002 11:03 AM
Subject: [jdjlist] RE: Serialization x XMLization


> Hi Ivan,
>
> JDK 1.4 has a Preferences API which is designed to handle the sort
> of thing that you want.  It is easy to implement and handles all storage &
> retrieval for you.
>
> Regards,
>
> Fintan
>
> > -----Original Message-----
> > From: Ivan Bradac [SMTP:[EMAIL PROTECTED]]
> > Sent: 02 September 2002 08:04
> > To: JDJList
> > Subject: [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
>
>
> * ** *** ** * ** *** ** * ** *** ** *
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed.
> Any views or opinions presented are solely those of the author, and do not
necessarily
> represent those of ESB.
> If you have received this email in error please notify the sender.
>
> Although ESB scans e-mail and attachments for viruses, it does not
guarantee
> that either are virus-free and accepts no liability for any damage
sustained
> as a result of viruses.
>
> * ** *** ** * ** *** ** * ** *** ** *
>
> 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