Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #4923
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail |
|---|---|
| From | "John B. Matthews" <nospam@nospam.invalid> |
| Newsgroups | comp.lang.java.gui |
| Subject | Re: Properties file ? |
| Date | Wed, 11 Jan 2012 08:13:22 -0500 |
| Organization | The Wasteland |
| Lines | 20 |
| Message-ID | <nospam-20FEEB.08132211012012@news.aioe.org> (permalink) |
| References | <657850d3-2af5-4c99-9677-e18b3ad91bf6@q8g2000yqa.googlegroups.com> <7n5Pq.1608$nn3.361@newsfe16.iad> <9d525b48-8a9a-450b-ae24-398cdaa985f5@f11g2000yql.googlegroups.com> <nospam-CC61BB.21244510012012@news.aioe.org> <0974b569-e6e0-4918-8b46-a5a12b974fcd@r5g2000yqc.googlegroups.com> |
| NNTP-Posting-Host | LQJtZWzu+iKlBROuDg+IUg.user.speranza.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | 7bit |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) |
| X-Notice | Filtered by postfilter v. 0.8.2 |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.java.gui:4923 |
Show key headers only | View raw
In article <0974b569-e6e0-4918-8b46-a5a12b974fcd@r5g2000yqc.googlegroups.com>, The Nigga <fernandopaivabr@gmail.com> wrote: > I am reading about Preferences API in Java Core book and Javadoc, but > I don't understand how to that API keeps config because it does not > create a file in my package. I need export and import a file.xml of > config. Right, you want to treat the original properties as read-only values; only subsequently modified values of your Properties need be written by invoking putXxx(). Conveniently, the getXxx() methods allow you to specify a default, which should be the value returned by getProperty(). The net effect is that only _changed_ properties are written to the (platform dependent) Preferences store. Similarly, the store may be deleted entirely to restore your (factory) defaults. -- [Please omit signatures when replying.]
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Find similar
Properties file ? The Nigga <fernandopaivabr@gmail.com> - 2012-01-10 13:36 -0800
Re: Properties file ? Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-01-10 17:13 -0800
Re: Properties file ? The Nigga <fernandopaivabr@gmail.com> - 2012-01-10 18:09 -0800
Re: Properties file ? "John B. Matthews" <nospam@nospam.invalid> - 2012-01-10 21:24 -0500
Re: Properties file ? The Nigga <fernandopaivabr@gmail.com> - 2012-01-10 19:31 -0800
Re: Properties file ? The Nigga <fernandopaivabr@gmail.com> - 2012-01-11 02:08 -0800
Re: Properties file ? "John B. Matthews" <nospam@nospam.invalid> - 2012-01-11 08:13 -0500
csiph-web