public class PropertiesPreferencesFactory
extends java.lang.Object
implements java.util.prefs.PreferencesFactory
| Constructor and Description |
|---|
PropertiesPreferencesFactory() |
| Modifier and Type | Method and Description |
|---|---|
static java.io.File |
directory(java.lang.String name)
Get a directory within the preferences folder for storing user specific
data.
|
static java.util.prefs.Preferences |
fromFile(java.nio.file.Path propertiesPath)
Create a Preferences object backed up by a given properties
file.
|
java.util.prefs.Preferences |
systemRoot() |
java.util.prefs.Preferences |
userRoot() |
public java.util.prefs.Preferences systemRoot()
systemRoot in interface java.util.prefs.PreferencesFactorypublic java.util.prefs.Preferences userRoot()
userRoot in interface java.util.prefs.PreferencesFactorypublic static java.util.prefs.Preferences fromFile(java.nio.file.Path propertiesPath)
propertiesPath - The properties file use for backing up the
preferences.public static java.io.File directory(java.lang.String name)
If the directory does not yet exist, it is created.
name - The directory name to use.