org.mmbase.util.externalprocess
Class EnvironmentReader
java.lang.Object
|
+--org.mmbase.util.externalprocess.EnvironmentReader
- public class EnvironmentReader
- extends java.lang.Object
Reader for importing the OS Environment properties into java.
java.lang.System.getProperties() has only some environment info
- Since:
- MMBase-1.6
- Version:
- $Id:
- Author:
- Nico Klasens (Finalist IT Group)
|
Method Summary |
static java.lang.String |
getEnvCommand()
Command string to get OS Environment properties |
static java.lang.String |
getEnvVar(java.lang.String key)
Get value of environment property |
static java.util.Properties |
getEnvVars()
Get value of environment properties |
static java.lang.String[] |
getRawEnvVars()
getRawEnvVars returns an array of lines read from the shell. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EnvironmentReader
public EnvironmentReader()
getEnvVars
public static java.util.Properties getEnvVars()
- Get value of environment properties
- Returns:
- Properties environment
getEnvCommand
public static java.lang.String getEnvCommand()
- Command string to get OS Environment properties
- Returns:
- String
getEnvVar
public static java.lang.String getEnvVar(java.lang.String key)
- Get value of environment property
- Parameters:
key - property name- Returns:
- String value of environment property
getRawEnvVars
public static java.lang.String[] getRawEnvVars()
- getRawEnvVars returns an array of lines read from the shell.
- Returns:
- String[] lines of the shell
MMBase build 1.6.5.20030923