com.starbase.util
Class OSEnvironment

java.lang.Object
  |
  +--com.starbase.util.OSEnvironment

public class OSEnvironment
extends java.lang.Object

Support for reading environment varaibles from the OS.


Constructor Summary
OSEnvironment()
          Deprecated.  
 
Method Summary
static java.lang.String getEnvironmentVariable(java.lang.String varName)
          Returns a value of the specified environment variable.
static boolean isAvailable()
          Determines if the needed support for environment variables is working.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OSEnvironment

public OSEnvironment()
Deprecated.  

Method Detail

isAvailable

public static boolean isAvailable()
Determines if the needed support for environment variables is working.

Returns:
true if calls to getEnvironmentVariable will be valid.
See Also:
OSEnvironment.getEnvironmentVariable(java.lang.String)

getEnvironmentVariable

public static java.lang.String getEnvironmentVariable(java.lang.String varName)
                                               throws java.io.IOException
Returns a value of the specified environment variable. Calls to this method are only valid if isAvailable returns true.

Parameters:
varName - name of the environment variable to lookup.
Returns:
the value of the variable if set, null otherwise.
java.io.IOException
See Also:
OSEnvironment.isAvailable()


StarTeam SDK 10.4, Build 36
Copyright © 2003-2008 Borland Software Corporation. All rights reserved.