public class Config extends Object
Constructor and Description |
---|
Config() |
Modifier and Type | Method and Description |
---|---|
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!
|
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 prefixIOException
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
-