Class SystemUtil

java.lang.Object
jodd.util.SystemUtil

public class SystemUtil extends Object
  • Field Details

    • systemInfo

      private static final SystemInfo systemInfo
  • Constructor Details

    • SystemUtil

      public SystemUtil()
  • Method Details

    • get

      public static String get(String name)
      Returns system property or null if not set.
    • get

      public static String get(String name, String defaultValue)
      Returns system property. If key is not available, returns the default value.
    • getBoolean

      public static boolean getBoolean(String name, boolean defaultValue)
      Returns system property as boolean.
    • getInt

      public static long getInt(String name, int defaultValue)
      Returns system property as an int.
    • getLong

      public static long getLong(String name, long defaultValue)
      Returns system property as a long.
    • info

      public static SystemInfo info()
      Returns system information.