Package org.scijava.util
Class PlatformUtils
- java.lang.Object
-
- org.scijava.util.PlatformUtils
-
public final class PlatformUtils extends Object
Useful methods for platform-specific interrogation.- Author:
- Curtis Rueden, Johannes Schindelin
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisLinux()Whether the operating system is Linux-based.static booleanisMac()Whether the operating system is Mac-based.static booleanisPOSIX()Whether the operating system is POSIX compliant.static booleanisWindows()Whether the operating system is Windows-based.static StringosName()Gets the name of the operating system.
-
-
-
Method Detail
-
isWindows
public static boolean isWindows()
Whether the operating system is Windows-based.
-
isMac
public static boolean isMac()
Whether the operating system is Mac-based.
-
isLinux
public static boolean isLinux()
Whether the operating system is Linux-based.
-
isPOSIX
public static boolean isPOSIX()
Whether the operating system is POSIX compliant.
-
osName
public static String osName()
Gets the name of the operating system.
-
-