public class OsEnv extends Object
| Modifier and Type | Method and Description |
|---|---|
static Properties |
get()
Return a Properties object containing the environment
variables.
|
static String |
getProperty(String key)
Searches for the property with the specified key in the environment.
|
static String |
getProperty(String key,
String defaultValue)
Searches for the property with the specified key in environment.
|
static void |
main(String[] args) |
public static Properties get()
public static String getProperty(String key)
null if the property is not found.key - the property key.public static String getProperty(String key, String defaultValue)
key - the hashtable key.defaultValue - a default value.public static void main(String[] args)