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

    • TLcdSystemPropertiesUtil

      public TLcdSystemPropertiesUtil()
  • Method Details

    • isWindows

      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

      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

      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

      @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

      @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

      @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

      @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

      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

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