org.mmbase.util.externalprocess
Class EnvironmentReader

java.lang.Object
  extended byorg.mmbase.util.externalprocess.EnvironmentReader

public class EnvironmentReader
extends 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: EnvironmentReader.java,v 1.4 2003/09/01 13:29:47 pierre Exp $
Author:
Nico Klasens (Finalist IT Group)
To Do:
more OS support

Constructor Summary
EnvironmentReader()
           
 
Method Summary
static String getEnvCommand()
          Command string to get OS Environment properties
static String getEnvVar(String key)
          Get value of environment property
static Properties getEnvVars()
          Get value of environment properties
static 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
 

Constructor Detail

EnvironmentReader

public EnvironmentReader()
Method Detail

getEnvVars

public static Properties getEnvVars()
Get value of environment properties

Returns:
Properties environment

getEnvCommand

public static String getEnvCommand()
Command string to get OS Environment properties

Returns:
String

getEnvVar

public static String getEnvVar(String key)
Get value of environment property

Parameters:
key - property name
Returns:
String value of environment property

getRawEnvVars

public static String[] getRawEnvVars()
getRawEnvVars returns an array of lines read from the shell.

Returns:
String[] lines of the shell


MMBase build 1.8.1.20060716