Class PlatformUtil


  • public class PlatformUtil
    extends java.lang.Object
    helper util for platform identifying.
    • Constructor Summary

      Constructors 
      Constructor Description
      PlatformUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static int getConnectionTimeout()
      Deprecated. 
      static java.lang.String getJavaVersion()  
      static java.lang.String getProperty​(java.lang.String key)
      Returns either the non-empty property or environment variable key
      static boolean hasProperty​(java.lang.String key)
      Returns true if we have a variable
      static boolean isWindows()
      Returns true when system platform is Microsoft Windows.
      static JDFAttributeMap listProperties​(boolean java, boolean env)  
      • Methods inherited from class java.lang.Object

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

      • PlatformUtil

        public PlatformUtil()
    • Method Detail

      • isWindows

        public static boolean isWindows()
        Returns true when system platform is Microsoft Windows.
        Returns:
        true if platform is windows.
      • getProperty

        public static java.lang.String getProperty​(java.lang.String key)
        Returns either the non-empty property or environment variable key
        Returns:
        the value
      • getJavaVersion

        public static java.lang.String getJavaVersion()
      • listProperties

        public static JDFAttributeMap listProperties​(boolean java,
                                                     boolean env)
      • hasProperty

        public static boolean hasProperty​(java.lang.String key)
        Returns true if we have a variable
        Returns:
        the value
      • getConnectionTimeout

        @Deprecated
        public static int getConnectionTimeout()
        Deprecated.
        Returns connection timeout in milliseconds as integer.
        Returns:
        connectionTimeout in milliseconds