|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jniwrapper.win32.system.SystemVariables
public class SystemVariables
This class allows managing system environment variables.
| Constructor Summary | |
|---|---|
SystemVariables()
|
|
| Method Summary | |
|---|---|
boolean |
contains(java.lang.String variable)
Verifies if there is a specified variable in the environment. |
java.lang.String |
getValue(java.lang.String variable)
Returns the value of the specified variable from the environment block of the calling process. |
java.lang.String[] |
getVariableNames()
Returns an array of variable names. |
void |
release()
Releases resources allocated for this object. |
void |
removeVariable(java.lang.String variable)
Removes specified environment variable |
void |
setValue(java.lang.String variable,
java.lang.String value)
Sets the value of an environment variable for the current process. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SystemVariables()
| Method Detail |
|---|
public java.lang.String getValue(java.lang.String variable)
getValue in interface EnvironmentVariablesvariable - name of the variable to get the value for.
public void setValue(java.lang.String variable,
java.lang.String value)
setValue in interface EnvironmentVariablesvariable - variable name.value - variable value.public void removeVariable(java.lang.String variable)
removeVariable in interface EnvironmentVariablesvariable - variable name.public boolean contains(java.lang.String variable)
contains in interface EnvironmentVariablesvariable - variable name.
public java.lang.String[] getVariableNames()
getVariableNames in interface EnvironmentVariablespublic void release()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||