public class RNative extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
IS_LINUX |
static boolean |
IS_WINDOWS |
static String |
RESOURCE_PREFIX |
| Constructor and Description |
|---|
RNative() |
| Modifier and Type | Method and Description |
|---|---|
static File |
extractFromResourcePath(String name,
ClassLoader loader)
Attempt to extract a native library from the resource path using the
given class loader.
|
public static final String RESOURCE_PREFIX
public static final boolean IS_WINDOWS
public static final boolean IS_LINUX
public static File extractFromResourcePath(String name, ClassLoader loader) throws IOException
name - Base name of native library to extract. May also be an
absolute resource path (i.e. starts with "/"), in which case the
no transformations of the library name are performed. If only the base
name is given, the resource path is attempted both with and without
Platform#RESOURCE_PREFIX, after mapping the library name via
NativeLibrary#mapSharedLibraryName(String).loader - Class loader to use to load resourcesIOException - if resource not foundCopyright © 2006–2018 CodeLutin. All rights reserved.