uk.co.caprica.vlcj.runtime
Class RuntimeUtil

java.lang.Object
  extended by uk.co.caprica.vlcj.runtime.RuntimeUtil

public class RuntimeUtil
extends java.lang.Object

Crude heuristics to determine the current Operating System.

The com.sun.jna.Platform class provides similar functionality.


Constructor Summary
RuntimeUtil()
           
 
Method Summary
static boolean isMac()
          Test whether the runtime operating system is a Mac variant.
static boolean isNix()
          Test whether the runtime operating system is "unix-like".
static boolean isWindows()
          Test whether the runtime operating system is a Windows variant.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuntimeUtil

public RuntimeUtil()
Method Detail

isNix

public static boolean isNix()
Test whether the runtime operating system is "unix-like".

Returns:
true if the runtime OS is unix-like, Linux, Unix, FreeBSD etc

isWindows

public static boolean isWindows()
Test whether the runtime operating system is a Windows variant.

Returns:
true if the runtime OS is Windows

isMac

public static boolean isMac()
Test whether the runtime operating system is a Mac variant.

Returns:
true if the runtime OS is Mac

(C)2010 Caprica Software Limited