Class TLcdSystemPropertiesUtil

java.lang.Object
com.luciad.util.TLcdSystemPropertiesUtil

public class TLcdSystemPropertiesUtil extends Object
This class provides a set of utility methods to access System properties.
  • Constructor Details Link icon

    • TLcdSystemPropertiesUtil Link icon

      public TLcdSystemPropertiesUtil()
  • Method Details Link icon

    • isWindows Link icon

      public static boolean isWindows()
      Returns true if the Virtual Machine is running on a Windows operating system, false otherwise
      Returns:
      true if the Virtual Machine is running on a Windows operating system, false otherwise
      Since:
      2016.1
    • isMacOS Link icon

      public static boolean isMacOS()
      Returns true if the Virtual Machine is running on a Mac operating system, false otherwise
      Returns:
      true if the Virtual Machine is running on a Mac operating system, false otherwise
      Since:
      2016.1
    • isLinux Link icon

      public static boolean isLinux()
      Returns true if the Virtual Machine is running on a Linux operating system, false otherwise
      Returns:
      true if the Virtual Machine is running on a Linux operating system, false otherwise
      Since:
      2016.1
    • isJava8 Link icon

      @Deprecated public static boolean isJava8()
      Deprecated.
      The minimum JDK requirement is higher than or equal to 1.8, so this method will always return true. Code using this method to check the version can be simplified.
      Returns true if the Virtual Machine is running Java 8 or higher, false otherwise.
      Returns:
      true if the Virtual Machine is running Java 8 or higher, false otherwise.
    • isJava9 Link icon

      @Deprecated public static boolean isJava9()
      Deprecated.
      Returns true if the Virtual Machine is running Java 9 or higher, false otherwise.
      Returns:
      true if the Virtual Machine is running Java 9 or higher, false otherwise.
      Since:
      2017.1
    • isJava10 Link icon

      @Deprecated public static boolean isJava10()
      Deprecated.
      Returns true if the Virtual Machine is running Java 10 or higher, false otherwise.
      Returns:
      true if the Virtual Machine is running Java 10 or higher, false otherwise.
      Since:
      2018.1
    • isJava11 Link icon

      @Deprecated public static boolean isJava11()
      Deprecated.
      Returns true if the Virtual Machine is running Java 11 or higher, false otherwise.
      Returns:
      true if the Virtual Machine is running Java 11 or higher, false otherwise.
      Since:
      2018.1
    • isJavaVersion Link icon

      public static boolean isJavaVersion(TLcdSystemPropertiesUtil.JavaVersion aJavaVersion)
      Check if the Virtual Machine is running with the provided Java version or higher.
      Parameters:
      aJavaVersion - the java version to check against
      Returns:
      true if the Virtual Machine is running with the provided Java version or higher, false otherwise
      Since:
      2019.1
    • printSystemProperties Link icon

      public static void printSystemProperties(PrintStream aPrintStream)
      Prints all the system properties to the given PrintStream.
      Parameters:
      aPrintStream - the output PrintStream.