Class SystemUtils


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

      Constructors 
      Constructor Description
      SystemUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getJavaIoTmpDir()  
      static java.lang.String getProperty​(java.lang.String name)
      Gets a System property, defaulting to null if the property cannot be read.
      static java.lang.String getProperty​(java.lang.String name, java.lang.String defVal)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SystemUtils

        public SystemUtils()
    • Method Detail

      • getProperty

        public static java.lang.String getProperty​(java.lang.String name)

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

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

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

        public static java.lang.String getProperty​(java.lang.String name,
                                                   java.lang.String defVal)
      • getJavaIoTmpDir

        public static java.lang.String getJavaIoTmpDir()