public final class RuntimeUtil extends Object
The com.sun.jna.Platform class provides similar functionality.
Modifier and Type | Method and Description |
---|---|
static String |
getLibVlcCoreName()
Get the operating system file name for the libvlc core shared object.
|
static String |
getLibVlcLibraryName()
Get the native library name.
|
static String |
getLibVlcName()
Get the operating system file name for the libvlc shared object.
|
static String |
getPluginsDirectoryName()
Get the default directory name for the vlc plugins directory.
|
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.
|
static RuntimeType |
runtimeType()
Get the runtime operating system type.
|
static int |
safeLongToInt(long value)
Try to safely convert a long value to an int.
|
public static boolean isNix()
public static boolean isWindows()
public static boolean isMac()
public static RuntimeType runtimeType()
public static int safeLongToInt(long value)
Therefore there is a chance that we are given a native window handle that we can not use with libvlc.
In practice, I have never seen this happen on Linux or Windows.
value
- long valueIllegalArgumentException
- if the long value can not be safely converted to an intpublic static String getLibVlcLibraryName()
public static String getLibVlcName()
This is only used to generate help/error messages.
public static String getLibVlcCoreName()
This is only used to generate help/error messages.
public static String getPluginsDirectoryName()
This is only used to generate help/error messages.
Copyright © 2009–2015 Caprica Software Limited. All rights reserved.