public class Library
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) static java.lang.String |
DELIMITER |
(package private) static boolean |
IS_64 |
static int |
JAVA_VERSION
The JAVA and SWT versions
|
(package private) static int |
MAJOR_VERSION
SWT Major version number (must be >= 0)
|
(package private) static int |
MINOR_VERSION
SWT Minor version number (must be in the range 0..999)
|
(package private) static int |
REVISION
SWT revision number (must be >= 0)
|
(package private) static java.lang.String |
SEPARATOR |
(package private) static java.lang.String |
SUFFIX_64 |
(package private) static java.lang.String |
SWT_LIB_DIR |
static int |
SWT_VERSION
The JAVA and SWT versions
|
Constructor and Description |
---|
Library() |
Modifier and Type | Method and Description |
---|---|
(package private) static java.lang.String |
arch() |
(package private) static void |
chmod(java.lang.String permision,
java.lang.String path) |
(package private) static boolean |
extract(java.lang.String fileName,
java.lang.String mappedName,
java.lang.StringBuffer message) |
(package private) static boolean |
isLoadable() |
static int |
JAVA_VERSION(int major,
int minor,
int micro)
Returns the Java version number as an integer.
|
(package private) static boolean |
load(java.lang.String libName,
java.lang.StringBuffer message) |
static void |
loadLibrary(java.lang.String name)
Loads the shared library that matches the version of the
Java code which is currently running.
|
static void |
loadLibrary(java.lang.String name,
boolean mapName)
Loads the shared library that matches the version of the
Java code which is currently running.
|
(package private) static long |
longConst() |
(package private) static java.lang.String |
mapLibraryName(java.lang.String libName) |
(package private) static java.lang.String |
os() |
(package private) static int |
parseVersion(java.lang.String version) |
static int |
SWT_VERSION(int major,
int minor)
Returns the SWT version number as an integer.
|
static int MAJOR_VERSION
static int MINOR_VERSION
static int REVISION
public static final int JAVA_VERSION
public static final int SWT_VERSION
static final java.lang.String SEPARATOR
static final java.lang.String DELIMITER
static final boolean IS_64
static final java.lang.String SUFFIX_64
static final java.lang.String SWT_LIB_DIR
static java.lang.String arch()
static java.lang.String os()
static void chmod(java.lang.String permision, java.lang.String path)
static long longConst()
static int parseVersion(java.lang.String version)
public static int JAVA_VERSION(int major, int minor, int micro)
major
- minor
- micro
- public static int SWT_VERSION(int major, int minor)
major
- minor
- static boolean extract(java.lang.String fileName, java.lang.String mappedName, java.lang.StringBuffer message)
static boolean isLoadable()
static boolean load(java.lang.String libName, java.lang.StringBuffer message)
public static void loadLibrary(java.lang.String name)
name
is used to load the library. If this fails,
name
is used in another attempt to load the library,
this time ignoring the SWT version encoding scheme.name
- the name of the library to loadpublic static void loadLibrary(java.lang.String name, boolean mapName)
name
is used to load the library. If this fails,
name
is used in another attempt to load the library,
this time ignoring the SWT version encoding scheme.name
- the name of the library to loadmapName
- true if the name should be mapped, false otherwisestatic java.lang.String mapLibraryName(java.lang.String libName)