Package com.tailf.ncs
Class OsEnv
Object
com.tailf.ncs.OsEnv
Unix "env" environment representation class
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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
-
Method Details
-
get
Return a Properties object containing the environment variables.- Returns:
- a Properties object containing the environment variables and their associated values.
-
getProperty
Searches for the property with the specified key in the environment. The method returnsnull
if the property is not found.- Parameters:
key
- the property key.- Returns:
- the value in environment with the specified key value.
-
getProperty
Searches for the property with the specified key in environment. The method returns the default value argument if the property is not found.- Parameters:
key
- the hashtable key.defaultValue
- a default value.- Returns:
- the value in this property list with the specified key value.
-
main
-