public final class TurnKey extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
TURNKEY_FILE_NAME
The conventional file name for turnkey metadata.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
load(String libraryPrefix,
Function<String,InputStream> getResourceAsStream)
Execute the unpack-and-load algorithm.
|
public static final String TURNKEY_FILE_NAME
public static void load(String libraryPrefix, Function<String,InputStream> getResourceAsStream)
This must be called before the first operation that uses native code (e.g., in a static initializer).
libraryPrefix - the library-specific prefix to use when loading files without leading or
terminal /. This is usually the package name of the library with . replaced
by /.getResourceAsStream - the function to use for loading resources. This is necessary in case
of, e.g., modularity restrictions on the visibility of the metadata and libraries.UnsupportedPlatformException - if the current platform is not supported.TurnkeyException - if library unpacking or linking fails.TurnkeyException - if the TurnKey library distribution is incomplete, indicating a
packaging error.