Class PlatformUtil

java.lang.Object
org.cip4.jdflib.util.PlatformUtil

public class PlatformUtil extends Object
helper util for platform identifying.
  • Constructor Details

    • PlatformUtil

      public PlatformUtil()
  • Method Details

    • isWindows

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

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

      public static String getJavaVersion()
    • listProperties

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

      public static boolean hasProperty(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