vooga.social
Class SocialProperties

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<java.lang.Object,java.lang.Object>
          extended by java.util.Properties
              extended by vooga.social.SocialProperties
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,java.lang.Object>

public class SocialProperties
extends java.util.Properties

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.

Author:
Alex Kritchevsky
See Also:
Serialized Form

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

SocialProperties

public SocialProperties(java.lang.String propertiesFileName)
Method Detail

get

public static java.lang.String get(java.lang.String key)
Retrieves a value from the properties file for the specific key.

Parameters:
key -
Returns:

putToFile

public 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.

Parameters:
key -
value -