Package net.i2p.apps.systray
Class ConfigFile
java.lang.Object
net.i2p.apps.systray.ConfigFile
public class ConfigFile extends Object
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
Constructors Constructor Description ConfigFile() -
Method Summary
Modifier and Type Method Description StringgetProperty(String key)StringgetProperty(String key, String defaultValue)booleaninit(String configFile)Initializes theConfigFileobject.voidsetProperty(String key, String value)
-
Constructor Details
-
ConfigFile
public ConfigFile()
-
-
Method Details
-
init
Initializes theConfigFileobject.- Parameters:
configFile- The config file to use.- Returns:
falseif the given config file cannot be located or accessed, otherwisetrue.
-
getProperty
-
getProperty
-
setProperty
-