Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-3) was last changed on 17-Dec-2006 17:04 by MurrayAltheim  

This page was created on 17-Dec-2006 16:01 by MurrayAltheim

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 1 changed one line
With JDK 1.4 Java has expanded on its Properties class and now provides a Preferences API. This is the product of JSR-10 (Java Specification Request) ''Preferences API Specication: A simple API allowing programs to manipulate user preference data and configuration data'', and is a substantial improvement on the Preferences functionality.
With JDK 1.4 Java has expanded on its Properties class and now provides a Preferences API. This is the product of JSR-10 (Java Specification Request) ''Preferences API Specification: A simple API allowing programs to manipulate user preference data and configuration data'', and is a substantial improvement on the Preferences functionality.
At line 3 changed one line
Part of the reason I'm looking into this is that given it provides a hierarchical preferences model, it might suit the needs of WikiFarms.
Part of the reason I'm looking into this is that given it provides a hierarchical preferences model, it might suit the needs of WikiFarms (see MultipleWikis, MultiWikiDevelopment, IdeasMultipleWikiWebs), since it would be possible to share both system configuration and user-level information across multiple wiki. -- MurrayAltheim
At line 24 changed one line
!! "Implementation"
!! Notes on "Implementation"
At line 31 added 2 lines
The Preferences API permits XML import and export of preference data. The DTD is posted as part of the javadocs
for the java.util.prefs.Preferences class. There are methods for both importing and exporting the XML using
At line 34 added 3 lines
; {{importPreferences(~InputStream is)}} : Imports all of the preferences represented by the XML document on the specified input stream.
; {{exportNode(~OutputStream os)}} : Emits on the specified output stream an XML document representing all of the preferences contained in this node (but not its descendants).
; {{exportSubtree(~OutputStream os)}} : Emits an XML document representing all of the preferences contained in this node and all of its descendants.
At line 38 added 7 lines
but normally developers wouldn't even have to deal with these unless one wanted to control where the J2SE implementation was storing the prefs, e.g., to permit the XML to be hand-edited.
%%blockquote
This class contains an export/import facility, allowing preferences to be "exported" to an XML document, and XML documents representing preferences to be "imported" back into the system. This facility may be used to back up all or part of a preference tree, and subsequently restore from the backup.
%%
At line 37 changed 2 lines
* [Preferences API documentation in J2SE 1.4.2 | http://java.sun.com/j2se/1.4.2/docs/guide/lang/preferences.html]
* [Preferences API documentation in J2SE 1.5 | http://java.sun.com/j2se/1.5.0/docs/guide/preferences/index.html]
* [Preferences API Guide in J2SE 1.4.2 | http://java.sun.com/j2se/1.4.2/docs/guide/lang/preferences.html]
* [Preferences API Guide in J2SE 1.5 | http://java.sun.com/j2se/1.5.0/docs/guide/preferences/index.html]
* [Preferences API Javadoc | http://java.sun.com/j2se/1.4.2/docs/api/java/util/prefs/package-summary.html]
At line 65 added one line
----
At line 67 added one line
! Discussion
At line 69 added 4 lines
...
Version Date Modified Size Author Changes ... Change note
3 17-Dec-2006 17:04 6.382 kB MurrayAltheim to previous spelling error fix
2 17-Dec-2006 16:15 6.38 kB MurrayAltheim to previous | to last more info
1 17-Dec-2006 16:01 4.855 kB MurrayAltheim to last initial content
« This page (revision-3) was last changed on 17-Dec-2006 17:04 by MurrayAltheim