com.ibm.lpex.util
Class LpexSysutil

java.lang.Object
  |
  +--com.ibm.lpex.util.LpexSysutil

public final class LpexSysutil
extends java.lang.Object

System-related methods. An alternative to these methods is implemented in native code for certain platforms.


Inner Class Summary
static interface LpexSysutil.Sysutil
          Interface defining the native system utilities.
 
Constructor Summary
LpexSysutil()
           
 
Method Summary
static java.lang.String getEnvVariable(java.lang.String var)
          Retrieve an environment variable.
static java.lang.String getUserHomeDirectory()
          Retrieve LPEX's user-data home directory.
static void main(java.lang.String[] args)
          An entry point for testing purposes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LpexSysutil

public LpexSysutil()
Method Detail

getEnvVariable

public static java.lang.String getEnvVariable(java.lang.String var)
Retrieve an environment variable.
Parameters:
var - name of an environment variable
Returns:
value of the environment variable, or null if it is not obtainable or not found

getUserHomeDirectory

public static java.lang.String getUserHomeDirectory()
Retrieve LPEX's user-data home directory. This directory is assembled like this:
   <"user.home">/IBM/Editor 

main

public static void main(java.lang.String[] args)
An entry point for testing purposes. Shows the value LPEX reads for an environment variable. Usage: java com.ibm.lpex.util.LpexSysutil environment_variable.