org.scijava.util
Class PlatformUtils

java.lang.Object
  extended by org.scijava.util.PlatformUtils

public final class PlatformUtils
extends Object

Useful methods for platform-specific interrogation.

Author:
Curtis Rueden, Johannes Schindelin

Method Summary
static boolean isLinux()
          Whether the operating system is Linux-based.
static boolean isMac()
          Whether the operating system is Mac-based.
static boolean isPOSIX()
          Whether the operating system is POSIX compliant.
static boolean isWindows()
          Whether the operating system is Windows-based.
static String osName()
          Gets the name of the operating system.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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.



Copyright © 2009–2015 SciJava. All rights reserved.