Class Platform


  • public class Platform
    extends java.lang.Object
    Provides some platform specific properties.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isJVM()
      Returns true if the runtime is a java virtual machine.
      static boolean isLinux()
      Returns true if running on linux.
      static boolean isMac()
      Returns true if running on a mac.
      static boolean isWin()
      Returns true if running on windows.
      static java.lang.String tmpDir()
      Returns the system temporary directory location
      • Methods inherited from class java.lang.Object

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

      • isJVM

        public static boolean isJVM()
        Returns true if the runtime is a java virtual machine.
        Returns:
        true if the runtime is a java virtual machine.
      • isMac

        public static boolean isMac()
        Returns true if running on a mac.
        Returns:
        true if running on a mac.
      • isWin

        public static boolean isWin()
        Returns true if running on windows.
        Returns:
        true if running on windows.
      • isLinux

        public static boolean isLinux()
        Returns true if running on linux.
        Returns:
        true if running on linux.
      • tmpDir

        public static java.lang.String tmpDir()
        Returns the system temporary directory location
        Returns:
        the system temporary directory location