Package com.tailf.ncs

Class OsEnv

Object
com.tailf.ncs.OsEnv

public class OsEnv extends Object
Unix "env" environment representation class
  • Method Details

    • get

      public static Properties get()
      Return a Properties object containing the environment variables.
      Returns:
      a Properties object containing the environment variables and their associated values.
    • getProperty

      public static String getProperty(String key)
      Searches for the property with the specified key in the environment. The method returns null if the property is not found.
      Parameters:
      key - the property key.
      Returns:
      the value in environment with the specified key value.
    • getProperty

      public static String getProperty(String key, String defaultValue)
      Searches for the property with the specified key in environment. The method returns the default value argument if the property is not found.
      Parameters:
      key - the hashtable key.
      defaultValue - a default value.
      Returns:
      the value in this property list with the specified key value.
    • main

      public static void main(String[] args)