Package net.i2p.apps.systray
Class ConfigFile
java.lang.Object
net.i2p.apps.systray.ConfigFile
Simple config file handler.
Warning - browser needs double quotes and double backslashes on Windows
e.g.
browser="C:\\Program Files\\Mozilla Firefox\\firefox.exe"
- Author:
- hypercubus
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetProperty
(String key) getProperty
(String key, String defaultValue) boolean
Initializes theConfigFile
object.void
setProperty
(String key, String value)
-
Constructor Details
-
ConfigFile
public ConfigFile()
-
-
Method Details
-
init
Initializes theConfigFile
object.- Parameters:
configFile
- The config file to use.- Returns:
false
if the given config file cannot be located or accessed, otherwisetrue
.
-
getProperty
-
getProperty
-
setProperty
-