frysk.proc
Class Environ

java.lang.Object
  extended by frysk.proc.Environ

public class Environ
extends Object

The environment vector.


Field Summary
private  HashMap environ
           
 
Constructor Summary
Environ()
          Create a new empty environment.
Environ(String[] environ)
          Create a new environment populated by the existing environ.
 
Method Summary
 String get(String name)
          Get an environment variable.
 void put(String name)
          Decode then add an environment variable.
 void put(String[] environ)
          Put all elements of the the ENVIRON array into the ENVIRON set.
 void put(String name, String value)
          Put the variable into the environ set with the provided value.
 void remove(String name)
          Delete the entry.
 String[] toStringArray()
          Return the environ as a string array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

environ

private final HashMap environ
Constructor Detail

Environ

public Environ()
Create a new empty environment.


Environ

public Environ(String[] environ)
Create a new environment populated by the existing environ.

Method Detail

toStringArray

public String[] toStringArray()
Return the environ as a string array.


get

public String get(String name)
Get an environment variable.

Parameters:
name - is the environment variable name.
Returns:
the value of the variable.

put

public void put(String name,
                String value)
Put the variable into the environ set with the provided value.

Parameters:
name - is the environment variable name.
value - is the environment variable value.

put

public void put(String name)
Decode then add an environment variable.

Parameters:
name - is the variable=value pair.

put

public void put(String[] environ)
Put all elements of the the ENVIRON array into the ENVIRON set.


remove

public void remove(String name)
Delete the entry.