|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttribble.util.GetEnvironment
Contains the environment variable settings from the native operating system.
System.getenv()| Constructor Summary | |
GetEnvironment()
|
|
| Method Summary | |
static java.lang.String |
getEnv(int index)
Retrieve a native environment variable setting by index. |
static java.lang.String |
getEnv(java.lang.String name)
Retrieve a native environment variable setting. |
static java.lang.String |
getEnvName(int index)
Retrieve a native environment variable name by index. |
static int |
getEnvSize()
Retrieve the number of native environment variables. |
static void |
main(java.lang.String[] args)
Test driver. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GetEnvironment()
| Method Detail |
public static java.lang.String getEnv(java.lang.String name)
throws java.lang.Exception
name - Environment variable name to retrieve.
java.lang.Exception
public static java.lang.String getEnv(int index)
throws java.lang.Exception
index - Index number of the environment variable value to retrieve.
java.lang.ArrayIndexOutOfBoundsException - (unchecked)
Thrown if index does not specify a valid environment variable.
java.lang.Exception
public static java.lang.String getEnvName(int index)
throws java.lang.Exception
index - Index number of the environment variable name to retrieve.
java.lang.ArrayIndexOutOfBoundsException - (unchecked)
Thrown if index does not specify a valid environment variable.
java.lang.Exceptionpublic static int getEnvSize()
public static void main(java.lang.String[] args)
throws java.lang.Exception
args - Command line args (not used).
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||