ch.javasoft.util
Class Env

java.lang.Object
  extended by ch.javasoft.util.Env

public class Env
extends Object

Represents the environment settings, i.e. System.getenv()


Constructor Summary
Env()
          Constructor for Env with no values.
 
Method Summary
 void append(String key, String value)
           
 Map<String,String> getAppendings()
           
static String[] toEnvp()
          Returns the system environment as string array
static String[] toEnvp(Map<String,String> env)
          Returns the given map values as string array
 String[] toEnvpAppended()
          Original env stuff first, then the appendings, i.e.
 String[] toEnvpInserted()
          Appendings first, then the original env stuff, i.e.
 Map<String,String> toMapAppended()
          Original env stuff first, then the appendings, i.e.
 Map<String,String> toMapInserted()
          Appendings first, then the original env stuff, i.e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Env

public Env()
Constructor for Env with no values. Use one of toMapAppended(), toMapInserted(), toEnvpAppended() or toEnvpInserted() to append or insert the system environment values.

Method Detail

append

public void append(String key,
                   String value)

toMapAppended

public Map<String,String> toMapAppended()
Original env stuff first, then the appendings, i.e. original values are overriden by appended values.


toMapInserted

public Map<String,String> toMapInserted()
Appendings first, then the original env stuff, i.e. appended values are defaults only.


getAppendings

public Map<String,String> getAppendings()

toEnvpAppended

public String[] toEnvpAppended()
Original env stuff first, then the appendings, i.e. original values are overriden by appended values.


toEnvpInserted

public String[] toEnvpInserted()
Appendings first, then the original env stuff, i.e. appended values are defaults only.


toEnvp

public static String[] toEnvp()
Returns the system environment as string array


toEnvp

public static String[] toEnvp(Map<String,String> env)
Returns the given map values as string array