public final class EnvUtilities extends Object
Environment Utilities for reading variables and setting them and such.
.| Modifier and Type | Field and Description | 
|---|---|
static int | 
INT  | 
| Modifier and Type | Method and Description | 
|---|---|
static Properties | 
getEnv()
This method does exactly the same thing as  
getEnvUsingWaitFor(),
 except it uses System.getenv() | 
static String | 
getEnv(String envVarName)
This method returns a particular named environment variable from the user's
 working environment using the  
getEnv() method to grab that environment. | 
static Properties | 
getEnvUsingWaitFor()
Deprecated.   
 | 
protected static InputStream | 
preProcessInputStream(InputStream is)  | 
static String | 
slurp(InputStream in)
This method turns an  
InputStream into a String. | 
public static final int INT
public static String getEnv(String envVarName)
getEnv() method to grab that environment.envVarName - The named environment variable to return.public static Properties getEnv()
getEnvUsingWaitFor(),
 except it uses System.getenv()Properties object.public static Properties getEnvUsingWaitFor()
env. Unfortunately, this method also uses
 Process.waitFor(), which seems to hang when folks have weird
 environment variables and such.
 
 A more appropriate method to call is getEnv() because it uses
 the ExecHelper class, which seems to handle process termination a
 bit more elegantly.Properites object containing the user's current
         environment variables.public static String slurp(InputStream in) throws IOException
InputStream into a String. Method taken
 from:in - The InputStream to Stringify.InputStream.IOException - If any error occurs.protected static InputStream preProcessInputStream(InputStream is) throws IOException
IOExceptionCopyright © 1999–2017 Apache OODT. All rights reserved.