Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.help > #1405
| From | "John B. Matthews" <nospam@nospam.invalid> |
|---|---|
| Newsgroups | comp.lang.java.help |
| Subject | Re: Avoiding INI files |
| Date | 2011-11-29 11:09 -0500 |
| Organization | The Wasteland |
| Message-ID | <nospam-E12EBA.11090329112011@news.aioe.org> (permalink) |
| References | (3 earlier) <31374381.72.1322335182411.JavaMail.geo-discussion-forums@pruu5> <41d78b7a-4f8e-4431-a478-1f6952607fd3@u5g2000vbd.googlegroups.com> <jatbvp$dff$1@dont-email.me> <4ed4c1b7$0$24950$426a74cc@news.free.fr> <5tudnXy8uKB0SknTnZ2dnUVZ_qednZ2d@earthlink.com> |
In article <5tudnXy8uKB0SknTnZ2dnUVZ_qednZ2d@earthlink.com>, Patricia Shanahan <pats@acm.org> wrote: > On 11/29/2011 3:33 AM, Mayeul wrote: > > On 27/11/2011 13:55, markspace wrote: > >> On 11/26/2011 3:31 PM, Davej wrote: > >> > >>> I thought I was being concise by not repeating myself, and I > >>> thought the general purpose of *.ini files was pretty well > >>> understood by everyone. I just want to save a few user settings: > >>> a few booleans and a few strings. I am nervous about the idea of > >>> writing to the registry. > >> > >> > >> As mentioned, Java Preferences seem to be the answer you are > >> looking for. Java doesn't particularly use ini files. I don't know > >> why you keep bringing them up. > > > > I suppose "ini files" are to be read as "the well-known canonical > > way to store persistent application data." Which I do not wish to. > > As I understand the question, you want to store persistent > application data without using any well-known canonical way to store > persistent application data. > > If that is not the question, perhaps you could clarify it. > > If it is the question, in what way, other than not being a well-known > canonical solution, would an acceptable solution be different? A somewhat less well-known but canonical way to store persistent application data might use javax.jnlp.PersistenceService in the context of Java Web Start. Examples may be found here: <http://pscode.org/jws/api.html#ps> <http://docs.oracle.com/javase/1.5.0/docs/guide/javaws/developersguide/examples.html#PrintService> I don't know where typical implementations actually store the data, but the Java Web Start cache seems likely. -- John B. Matthews trashgod at gmail dot com <http://sites.google.com/site/drjohnbmatthews>
Back to comp.lang.java.help | Previous | Next — Previous in thread | Next in thread | Find similar
Avoiding INI files Davej <galt_57@hotmail.com> - 2011-11-25 10:07 -0800
Re: Avoiding INI files Lew <lewbloch@gmail.com> - 2011-11-25 11:22 -0800
Re: Avoiding INI files Davej <galt_57@hotmail.com> - 2011-11-26 08:17 -0800
Re: Avoiding INI files markspace <-@.> - 2011-11-26 10:00 -0800
Re: Avoiding INI files Davej <galt_57@hotmail.com> - 2011-11-26 11:18 -0800
Re: Avoiding INI files "John B. Matthews" <nospam@nospam.invalid> - 2011-11-26 17:16 -0500
Re: Avoiding INI files Lew <lewbloch@gmail.com> - 2011-11-26 11:19 -0800
Re: Avoiding INI files Davej <galt_57@hotmail.com> - 2011-11-26 15:31 -0800
Re: Avoiding INI files markspace <-@.> - 2011-11-27 04:55 -0800
Re: Avoiding INI files Mayeul <mayeul.marguet@free.fr> - 2011-11-29 12:33 +0100
Re: Avoiding INI files Patricia Shanahan <pats@acm.org> - 2011-11-29 05:02 -0800
Re: Avoiding INI files Mayeul <mayeul.marguet@free.fr> - 2011-11-29 14:17 +0100
Re: Avoiding INI files "John B. Matthews" <nospam@nospam.invalid> - 2011-11-29 11:09 -0500
Re: Avoiding INI files Roedy Green <see_website@mindprod.com.invalid> - 2011-11-25 14:21 -0800
csiph-web