Class SystemUtil


  • public final class SystemUtil
    extends java.lang.Object

    Utility methods for working with System, particularly safe, default value supported lookups into System.getProperty(java.lang.String) and other OS/system level calls.

    Since:
    2.0
    Version:
    2.0 (0.6.5)
    Author:
    Michael Grove
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getProperty​(java.lang.String theProperty, java.lang.String theDefault)  
      static boolean getPropertyAsBoolean​(java.lang.String theProperty, boolean theDefault)  
      static int getPropertyAsInt​(java.lang.String theProperty, int theDefault)  
      static long getPropertyAsLong​(java.lang.String theProperty, long theDefault)  
      • Methods inherited from class java.lang.Object

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

      • getPropertyAsBoolean

        public static boolean getPropertyAsBoolean​(java.lang.String theProperty,
                                                   boolean theDefault)
      • getPropertyAsInt

        public static int getPropertyAsInt​(java.lang.String theProperty,
                                           int theDefault)
      • getPropertyAsLong

        public static long getPropertyAsLong​(java.lang.String theProperty,
                                             long theDefault)
      • getProperty

        public static java.lang.String getProperty​(java.lang.String theProperty,
                                                   java.lang.String theDefault)