public class Config
extends java.lang.Object
| コンストラクタ | 説明 |
|---|---|
Config() |
| 修飾子とタイプ | メソッド | 説明 |
|---|---|---|
static java.util.Properties |
getProperties() |
Returns the properties, sorted, WITHOUT the prefix
|
static java.lang.String |
getProperty(java.lang.String name) |
|
static int |
getProperty(java.lang.String name,
int defaultValue) |
|
static java.lang.String |
getProperty(java.lang.String name,
java.lang.String defaultValue) |
|
static boolean |
hasConfigFile() |
Don't bother showing a reload config button if this returns false.
|
static void |
reloadConfiguration() |
|
static void |
saveConfiguration(java.util.Properties newProps) |
Saves the properties.
|
static void |
setPrefix(java.lang.String prefix) |
Static! Not for use by multiple applications!
|
public static java.lang.String getProperty(java.lang.String name)
name - public static boolean hasConfigFile()
public static void reloadConfiguration()
public static java.util.Properties getProperties()
public static void saveConfiguration(java.util.Properties newProps)
throws java.io.IOException
newProps - non-null WITHOUT the prefixjava.io.IOExceptionpublic static java.lang.String getProperty(java.lang.String name,
java.lang.String defaultValue)
name - defaultValue - public static int getProperty(java.lang.String name,
int defaultValue)
name - defaultValue - public static void setPrefix(java.lang.String prefix)
prefix -