|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Dictionary<K,V>
java.util.Hashtable<java.lang.Object,java.lang.Object>
java.util.Properties
vooga.social.SocialProperties
public class SocialProperties
consolidated properties management for social stuff, because we do a lot of reading/writing to files. Extends/wraps normal Properties with a few bonus methods. Awkward, EXPERIMENTAL use of static. (okay, just questionable). I hope it doesn't offend.
Field Summary |
---|
Fields inherited from class java.util.Properties |
---|
defaults |
Constructor Summary | |
---|---|
SocialProperties(java.lang.String propertiesFileName)
|
Method Summary | |
---|---|
static java.lang.String |
get(java.lang.String key)
Retrieves a value from the properties file for the specific key. |
static void |
putToFile(java.lang.String key,
java.lang.String value)
Puts a value into the properties file and the map, such that it persists between sessions. |
Methods inherited from class java.util.Properties |
---|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames |
Methods inherited from class java.util.Hashtable |
---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SocialProperties(java.lang.String propertiesFileName)
Method Detail |
---|
public static java.lang.String get(java.lang.String key)
key
-
public static void putToFile(java.lang.String key, java.lang.String value)
key
- value
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |