|
Quaqua 7.4.2 2011-07-05 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectch.randelshofer.quaqua.osx.OSXPreferences
public class OSXPreferences
Utility class for accessing Mac OS X Preferences.
Field Summary | |
---|---|
static java.io.File |
FINDER_PREFERENCES
Path to finder preferences. |
static java.io.File |
GLOBAL_PREFERENCES
Path to global preferences. |
Constructor Summary | |
---|---|
OSXPreferences()
Creates a new instance. |
Method Summary | |
---|---|
static void |
clearAllCaches()
Clears all caches. |
static void |
clearCache(java.io.File f)
Clears the cache for the specified preference file. |
static java.lang.Object |
get(java.io.File file,
java.lang.String key)
|
static java.lang.Object |
get(java.io.File file,
java.lang.String key,
java.lang.Object defaultValue)
Get a value from a Mac OS X preferences file. |
static java.util.Set<java.lang.String> |
getKeySet(java.io.File file)
Returns all known keys for the specified preferences file. |
static java.lang.String |
getString(java.io.File file,
java.lang.String key)
|
static java.lang.String |
getString(java.io.File file,
java.lang.String key,
java.lang.String defaultValue)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.io.File GLOBAL_PREFERENCES
public static final java.io.File FINDER_PREFERENCES
Constructor Detail |
---|
public OSXPreferences()
Method Detail |
---|
public static java.lang.String getString(java.io.File file, java.lang.String key)
public static java.lang.String getString(java.io.File file, java.lang.String key, java.lang.String defaultValue)
public static java.lang.Object get(java.io.File file, java.lang.String key)
public static java.util.Set<java.lang.String> getKeySet(java.io.File file)
public static void clearAllCaches()
public static void clearCache(java.io.File f)
public static java.lang.Object get(java.io.File file, java.lang.String key, java.lang.Object defaultValue)
file
- The preferences file.key
- Hierarchical keys are separated by \t characters.defaultValue
- This value is returned when the key does not exist.
|
Copyright 2003-2007 (c) Werner Randelshofer. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |