I want to use the java.util.Preferences API but I don\'t want my program to attempt to read or write to the Windows registry. How would I go about this?
It is always possible to extend java.util.prefs.AbstractPreferences.
An alternative could be to use The Configuration package of Apache Commons allows you to read and write configuration data from/to different sources.