|
Servertec Foundation Classes 1.3.3 09/04/2005 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectstec.sfc.Win32.Env
public final class Env
Used to retrieve, set and remove environment variables.
| Constructor Summary | |
|---|---|
Env()
|
|
| Method Summary | |
|---|---|
static java.lang.String[] |
getEnv()
Returns all environment variables as an array of strings. |
static java.lang.String |
getEnv(java.lang.String name)
Returns the value associated with the specified environment variable. |
static java.lang.String |
getEnv(java.lang.String name,
java.lang.String default_value)
Returns the value associated with the specified environment variable or the specified default if the specified environment variable does not exist. |
static void |
putEnv(java.lang.String name,
java.lang.String value)
Used to create a new environment variable or modify or remove an existing one. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Env()
| Method Detail |
|---|
public static final java.lang.String[] getEnv()
public static final java.lang.String getEnv(java.lang.String name)
name - the name of the environment variable.
public static final void putEnv(java.lang.String name,
java.lang.String value)
throws Win32Exception
name - the name of the environment variable.value - the value to use. If empty String is used then the specified environment variable will be removed.
Win32Exception - if any error occurs.
public static final java.lang.String getEnv(java.lang.String name,
java.lang.String default_value)
name - the name of the environment variable.default_value - the default value to use if the specified environment variable does not exist.
|
Servertec Foundation Classes 1.3.3 09/04/2005 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright © 2001-2005 Servertec. All rights reserved.