Class SystemUtils

java.lang.Object
com.aspectran.utils.SystemUtils

public abstract class SystemUtils extends Object
Helpers for java.lang.System.
  • Constructor Details

    • SystemUtils

      public SystemUtils()
  • Method Details

    • getProperty

      @Nullable public static String getProperty(String key)

      Gets a System property, defaulting to null if the property cannot be read.

      If a SecurityException is caught, the return value is null.

      Parameters:
      key - the name of the system property
      Returns:
      the system property value or null if a security problem occurs
    • getProperty

      public static String getProperty(String name, String defVal)
    • getJavaIoTmpDir

      public static String getJavaIoTmpDir()
    • getUserHome

      public static String getUserHome()
    • getUserDir

      public static String getUserDir()