Package i2p.susi.util
Class Config
java.lang.Object
i2p.susi.util.Config
Warning - static - not for use by multiple applications or prefixes
- Author:
- susi
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Properties
Returns the properties, sorted, WITHOUT the prefixstatic String
getProperty
(String name) static int
getProperty
(String name, int defaultValue) static String
getProperty
(String name, String defaultValue) static boolean
Don't bother showing a reload config button if this returns false.static void
static void
saveConfiguration
(Properties newProps) Saves the properties.static void
Static! Not for use by multiple applications!
-
Constructor Details
-
Config
public Config()
-
-
Method Details
-
getProperty
- Parameters:
name
-
-
hasConfigFile
public static boolean hasConfigFile()Don't bother showing a reload config button if this returns false.- Since:
- 0.9.13
-
reloadConfiguration
public static void reloadConfiguration() -
getProperties
Returns the properties, sorted, WITHOUT the prefix- Since:
- 0.9.13
-
saveConfiguration
Saves the properties. A property not in newProps will be removed but will not override the default in the resource.- Parameters:
newProps
- non-null WITHOUT the prefix- Throws:
IOException
- Since:
- 0.9.13
-
getProperty
- Parameters:
name
-defaultValue
-
-
getProperty
- Parameters:
name
-defaultValue
-
-
setPrefix
Static! Not for use by multiple applications!- Parameters:
prefix
-
-