| java.lang.Object java.util.prefs.Preferences java.util.prefs.AbstractPreferences java.util.prefs.FileSystemPreferences
FileSystemPreferences | class FileSystemPreferences extends AbstractPreferences (Code) | | Preferences implementation for Unix. Preferences are stored in the file
system, with one directory per preferences node. All of the preferences
at each node are stored in a single file. Atomic file system operations
(e.g. File.renameTo) are used to ensure integrity. An in-memory cache of
the "explored" portion of the tree is maintained for performance, and
written back to the disk periodically. File-locking is used to ensure
reasonable behavior when multiple VMs are running at the same time.
(The file lock is obtained only for sync(), flush() and removeNode().)
author: Josh Bloch version: 1.27, 05/05/07 See Also: Preferences since: 1.4 |
changeLog | final List changeLog(Code) | | A list of all uncommitted preference changes. The elements in this
list are of type PrefChange. If this node is concurrently modified on
disk by another VM, the two sets of changes are merged when this node
is sync'ed by overwriting our prefsCache with the preference map last
written out to disk (by the other VM), and then replaying this change
log against that map. The resulting map is then written back
to the disk.
|
nodeCreate | NodeCreate nodeCreate(Code) | | NodeCreate object for this node.
|
systemLockFile | static File systemLockFile(Code) | | The lock file for the system tree.
|
userLockFile | static File userLockFile(Code) | | The lock file for the user tree.
|
isUserNode | public boolean isUserNode()(Code) | | |
Methods inherited from java.util.prefs.AbstractPreferences | public String absolutePath()(Code)(Java Doc) public void addNodeChangeListener(NodeChangeListener ncl)(Code)(Java Doc) public void addPreferenceChangeListener(PreferenceChangeListener pcl)(Code)(Java Doc) final protected AbstractPreferences[] cachedChildren()(Code)(Java Doc) abstract protected AbstractPreferences childSpi(String name)(Code)(Java Doc) public String[] childrenNames() throws BackingStoreException(Code)(Java Doc) abstract protected String[] childrenNamesSpi() throws BackingStoreException(Code)(Java Doc) public void clear() throws BackingStoreException(Code)(Java Doc) public void exportNode(OutputStream os) throws IOException, BackingStoreException(Code)(Java Doc) public void exportSubtree(OutputStream os) throws IOException, BackingStoreException(Code)(Java Doc) public void flush() throws BackingStoreException(Code)(Java Doc) abstract protected void flushSpi() throws BackingStoreException(Code)(Java Doc) public String get(String key, String def)(Code)(Java Doc) public boolean getBoolean(String key, boolean def)(Code)(Java Doc) public byte[] getByteArray(String key, byte[] def)(Code)(Java Doc) protected AbstractPreferences getChild(String nodeName) throws BackingStoreException(Code)(Java Doc) public double getDouble(String key, double def)(Code)(Java Doc) public float getFloat(String key, float def)(Code)(Java Doc) public int getInt(String key, int def)(Code)(Java Doc) public long getLong(String key, long def)(Code)(Java Doc) abstract protected String getSpi(String key)(Code)(Java Doc) protected boolean isRemoved()(Code)(Java Doc) public boolean isUserNode()(Code)(Java Doc) public String[] keys() throws BackingStoreException(Code)(Java Doc) abstract protected String[] keysSpi() throws BackingStoreException(Code)(Java Doc) public String name()(Code)(Java Doc) public Preferences node(String path)(Code)(Java Doc) public boolean nodeExists(String path) throws BackingStoreException(Code)(Java Doc) NodeChangeListener[] nodeListeners()(Code)(Java Doc) public Preferences parent()(Code)(Java Doc) PreferenceChangeListener[] prefListeners()(Code)(Java Doc) public void put(String key, String value)(Code)(Java Doc) public void putBoolean(String key, boolean value)(Code)(Java Doc) public void putByteArray(String key, byte[] value)(Code)(Java Doc) public void putDouble(String key, double value)(Code)(Java Doc) public void putFloat(String key, float value)(Code)(Java Doc) public void putInt(String key, int value)(Code)(Java Doc) public void putLong(String key, long value)(Code)(Java Doc) abstract protected void putSpi(String key, String value)(Code)(Java Doc) public void remove(String key)(Code)(Java Doc) public void removeNode() throws BackingStoreException(Code)(Java Doc) public void removeNodeChangeListener(NodeChangeListener ncl)(Code)(Java Doc) abstract protected void removeNodeSpi() throws BackingStoreException(Code)(Java Doc) public void removePreferenceChangeListener(PreferenceChangeListener pcl)(Code)(Java Doc) abstract protected void removeSpi(String key)(Code)(Java Doc) public void sync() throws BackingStoreException(Code)(Java Doc) abstract protected void syncSpi() throws BackingStoreException(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
Methods inherited from java.util.prefs.Preferences | abstract public String absolutePath()(Code)(Java Doc) abstract public void addNodeChangeListener(NodeChangeListener ncl)(Code)(Java Doc) abstract public void addPreferenceChangeListener(PreferenceChangeListener pcl)(Code)(Java Doc) abstract public String[] childrenNames() throws BackingStoreException(Code)(Java Doc) abstract public void clear() throws BackingStoreException(Code)(Java Doc) abstract public void exportNode(OutputStream os) throws IOException, BackingStoreException(Code)(Java Doc) abstract public void exportSubtree(OutputStream os) throws IOException, BackingStoreException(Code)(Java Doc) abstract public void flush() throws BackingStoreException(Code)(Java Doc) abstract public String get(String key, String def)(Code)(Java Doc) abstract public boolean getBoolean(String key, boolean def)(Code)(Java Doc) abstract public byte[] getByteArray(String key, byte[] def)(Code)(Java Doc) abstract public double getDouble(String key, double def)(Code)(Java Doc) abstract public float getFloat(String key, float def)(Code)(Java Doc) abstract public int getInt(String key, int def)(Code)(Java Doc) abstract public long getLong(String key, long def)(Code)(Java Doc) public static void importPreferences(InputStream is) throws IOException, InvalidPreferencesFormatException(Code)(Java Doc) abstract public boolean isUserNode()(Code)(Java Doc) abstract public String[] keys() throws BackingStoreException(Code)(Java Doc) abstract public String name()(Code)(Java Doc) abstract public Preferences node(String pathName)(Code)(Java Doc) abstract public boolean nodeExists(String pathName) throws BackingStoreException(Code)(Java Doc) abstract public Preferences parent()(Code)(Java Doc) abstract public void put(String key, String value)(Code)(Java Doc) abstract public void putBoolean(String key, boolean value)(Code)(Java Doc) abstract public void putByteArray(String key, byte[] value)(Code)(Java Doc) abstract public void putDouble(String key, double value)(Code)(Java Doc) abstract public void putFloat(String key, float value)(Code)(Java Doc) abstract public void putInt(String key, int value)(Code)(Java Doc) abstract public void putLong(String key, long value)(Code)(Java Doc) abstract public void remove(String key)(Code)(Java Doc) abstract public void removeNode() throws BackingStoreException(Code)(Java Doc) abstract public void removeNodeChangeListener(NodeChangeListener ncl)(Code)(Java Doc) abstract public void removePreferenceChangeListener(PreferenceChangeListener pcl)(Code)(Java Doc) abstract public void sync() throws BackingStoreException(Code)(Java Doc) public static Preferences systemNodeForPackage(Class> c)(Code)(Java Doc) public static Preferences systemRoot()(Code)(Java Doc) abstract public String toString()(Code)(Java Doc) public static Preferences userNodeForPackage(Class> c)(Code)(Java Doc) public static Preferences userRoot()(Code)(Java Doc)
|
|
|