|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecti2p.susi.util.Config
public class Config
Warning - static - not for use by multiple applications or prefixes
Constructor Summary | |
---|---|
Config()
|
Method Summary | |
---|---|
static Properties |
getProperties()
Returns the properties, sorted, WITHOUT the prefix |
static String |
getProperty(String name)
|
static int |
getProperty(String name,
int defaultValue)
|
static String |
getProperty(String name,
String defaultValue)
|
static boolean |
hasConfigFile()
Don't bother showing a reload config button if this returns false. |
static void |
reloadConfiguration()
|
static void |
saveConfiguration(Properties newProps)
Saves the properties. |
static void |
setPrefix(String prefix)
Static! Not for use by multiple applications! |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Config()
Method Detail |
---|
public static String getProperty(String name)
name
- public static boolean hasConfigFile()
public static void reloadConfiguration()
public static Properties getProperties()
public static void saveConfiguration(Properties newProps) throws IOException
newProps
- non-null WITHOUT the prefix
IOException
public static String getProperty(String name, String defaultValue)
name
- defaultValue
- public static int getProperty(String name, int defaultValue)
name
- defaultValue
- public static void setPrefix(String prefix)
prefix
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |