| Modifier and Type | Class and Description |
|---|---|
| public static enum | StubLoader.CPU
The common names of cpu architectures Note The names of the enum values are used in other parts of the code to determine where to find the native stub library. |
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String | |
| private static volatile StubLoader. | |
| private static volatile Throwable | |
| private static final String | |
| private static final String | |
| private static final File | |
| private static final String | |
| private static volatile boolean | |
| private static final Locale | |
| private static volatile StubLoader. | |
| private static final String | |
| private static final String | |
| private static final String | |
| public static final String | |
| private static final String | |
| public static final String | |
| public static final int | |
| public static final int | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static File | |
| pack-priv static File | |
| private static StubLoader. | Returns: A member of theCPU enum.Determines the CPU architecture the JVM is running on. |
| private static StubLoader. | |
| private static SecurityException | |
| pack-priv static String | |
| private static String | |
| private static String | |
| public static StubLoader. | |
| public static final Throwable | |
| public static StubLoader. | |
| public static String | |
| private static InputStream | |
| private static String | Returns: The name of the stub library as aStringGets the name of the stub library. |
| private static String | Returns: The path of the jar file.Gets the path within the jar file of the stub native library. |
| private static InputStream | Returns: A newInputStreamGets an |
| private static int | |
| public static final boolean | |
| pack-priv static void | |
| private static boolean | |
| private static void | |
| private static SecurityException | |
| private static UnsatisfiedLinkError | |
| private static IOException | |
| private static void | |
| private static void |
| bootLibraryPropertyName | back to summary |
|---|---|
| private static final String bootLibraryPropertyName | |
| bootPropertyFilename | back to summary |
|---|---|
| private static final String bootPropertyFilename | |
| cpu | back to summary |
|---|---|
| private static volatile StubLoader. | |
| failureCause | back to summary |
|---|---|
| private static volatile Throwable failureCause | |
| JFFI_EXTRACT_DIR | back to summary |
|---|---|
| private static final String JFFI_EXTRACT_DIR | |
| JFFI_EXTRACT_NAME | back to summary |
|---|---|
| private static final String JFFI_EXTRACT_NAME | |
| jffiExtractDir | back to summary |
|---|---|
| private static final File jffiExtractDir | |
| jffiExtractName | back to summary |
|---|---|
| private static final String jffiExtractName | |
| loaded | back to summary |
|---|---|
| private static volatile boolean loaded | |
| LOCALE | back to summary |
|---|---|
| private static final Locale LOCALE | |
| os | back to summary |
|---|---|
| private static volatile StubLoader. | |
| stubLibraryName | back to summary |
|---|---|
| private static final String stubLibraryName | |
| TMPDIR | back to summary |
|---|---|
| private static final String TMPDIR | |
| TMPDIR_ENV | back to summary |
|---|---|
| private static final String TMPDIR_ENV | |
| TMPDIR_EXEC_ERROR | back to summary |
|---|---|
| public static final String TMPDIR_EXEC_ERROR | |
| TMPDIR_RECOMMENDATION | back to summary |
|---|---|
| private static final String TMPDIR_RECOMMENDATION | |
| TMPDIR_WRITE_ERROR | back to summary |
|---|---|
| public static final String TMPDIR_WRITE_ERROR | |
| VERSION_MAJOR | back to summary |
|---|---|
| public static final int VERSION_MAJOR | |
| VERSION_MINOR | back to summary |
|---|---|
| public static final int VERSION_MINOR | |
| versionClassName | back to summary |
|---|---|
| private static final String versionClassName | |
| StubLoader | back to summary |
|---|---|
| public StubLoader() | |
| calculateExtractPath | back to summary |
|---|---|
| pack-priv static File calculateExtractPath(File tmpDirFile, String jffiExtractName) throws IOException | |
| calculateExtractPath | back to summary |
|---|---|
| pack-priv static File calculateExtractPath(File tmpDirFile) throws IOException | |
| determineCPU | back to summary |
|---|---|
| private static StubLoader. Determines the CPU architecture the JVM is running on. This normalizes all the variations that are equivalent (e.g. i386, x86, i86pc) into a common cpu type.
| |
| determineOS | back to summary |
|---|---|
| private static StubLoader. Determines the operating system jffi is running on
| |
| digestMismatchError | back to summary |
|---|---|
| private static SecurityException digestMismatchError(File dstFile) | |
| dlExtension | back to summary |
|---|---|
| pack-priv static String dlExtension() | |
| getAlternateLibraryPath | back to summary |
|---|---|
| private static String getAlternateLibraryPath(String path) | |
| getBootPath | back to summary |
|---|---|
| private static String getBootPath() | |
| getCPU | back to summary |
|---|---|
| public static StubLoader. | |
| getFailureCause | back to summary |
|---|---|
| public static final Throwable getFailureCause() | |
| getOS | back to summary |
|---|---|
| public static StubLoader. | |
| getPlatformName | back to summary |
|---|---|
| public static String getPlatformName() Gets the name of this
| |
| getResourceAsStream | back to summary |
|---|---|
| private static InputStream getResourceAsStream(String resourceName) | |
| getStubLibraryName | back to summary |
|---|---|
| private static String getStubLibraryName() Gets the name of the stub library.
| |
| getStubLibraryPath | back to summary |
|---|---|
| private static String getStubLibraryPath() Gets the path within the jar file of the stub native library.
| |
| getStubLibraryStream | back to summary |
|---|---|
| private static InputStream getStubLibraryStream() Gets an
| |
| getVersionField | back to summary |
|---|---|
| private static int getVersionField(String name) | |
| isLoaded | back to summary |
|---|---|
| public static final boolean isLoaded() | |
| load | back to summary |
|---|---|
| pack-priv static void load() Loads the stub library | |
| loadFromBootPath | back to summary |
|---|---|
| private static boolean loadFromBootPath(String libName, String bootPath, Collection<Throwable> errors) | |
| loadFromJar | back to summary |
|---|---|
| private static void loadFromJar(File tmpDirFile) throws IOException, LinkageError | |
| sizeMismatchError | back to summary |
|---|---|
| private static SecurityException sizeMismatchError(File dstFile, int sourceSize, int targetSize) | |
| tempLoadError | back to summary |
|---|---|
| private static UnsatisfiedLinkError tempLoadError(UnsatisfiedLinkError ule) | |
| tempReadonlyError | back to summary |
|---|---|
| private static IOException tempReadonlyError(IOException ioe) | |
| unpackLibrary | back to summary |
|---|---|
| private static void unpackLibrary(File dstFile, InputStream sourceIS) throws IOException | |
| verifyExistingLibrary | back to summary |
|---|---|
| private static void verifyExistingLibrary(File dstFile, InputStream sourceIS) throws IOException | |
Note
The names of the enum values are used in other parts of the code to determine where to find the native stub library. Do not rename.
| Modifier and Type | Field and Description |
|---|---|
| public static final StubLoader. | AARCH64
AArch64 |
| public static final StubLoader. | ARM
ARM |
| public static final StubLoader. | I386
Intel ia32 |
| public static final StubLoader. | MIPS64EL
MIPS 64-bit little endian |
| public static final StubLoader. | PPC
Power PC 32 bit |
| public static final StubLoader. | PPC64
Power PC 64 bit |
| public static final StubLoader. | PPC64LE
Power PC 64 bit little endian |
| public static final StubLoader. | S390X
IBM zSeries S/390 64 bit |
| public static final StubLoader. | SPARC
Sun sparc 32 bit |
| public static final StubLoader. | SPARCV9
Sun sparc 64 bit |
| public static final StubLoader. | UNKNOWN
Unknown CPU |
| public static final StubLoader. | X86_64
AMD 64 bit (aka EM64T/X64) |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | toString()
Overrides java. |
| public static StubLoader. | |
| public static StubLoader. |
| AARCH64 | back to summary |
|---|---|
| public static final StubLoader. AArch64 | |
| ARM | back to summary |
|---|---|
| public static final StubLoader. ARM | |
| I386 | back to summary |
|---|---|
| public static final StubLoader. Intel ia32 | |
| MIPS64EL | back to summary |
|---|---|
| public static final StubLoader. MIPS 64-bit little endian | |
| PPC | back to summary |
|---|---|
| public static final StubLoader. Power PC 32 bit | |
| PPC64 | back to summary |
|---|---|
| public static final StubLoader. Power PC 64 bit | |
| PPC64LE | back to summary |
|---|---|
| public static final StubLoader. Power PC 64 bit little endian | |
| S390X | back to summary |
|---|---|
| public static final StubLoader. IBM zSeries S/390 64 bit | |
| SPARC | back to summary |
|---|---|
| public static final StubLoader. Sun sparc 32 bit | |
| SPARCV9 | back to summary |
|---|---|
| public static final StubLoader. Sun sparc 64 bit | |
| UNKNOWN | back to summary |
|---|---|
| public static final StubLoader. Unknown CPU | |
| X86_64 | back to summary |
|---|---|
| public static final StubLoader. AMD 64 bit (aka EM64T/X64) | |
| CPU | back to summary |
|---|---|
| private CPU() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists. | |
| valueOf | back to summary |
|---|---|
| public static StubLoader. | |
| values | back to summary |
|---|---|
| public static StubLoader. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final StubLoader. | AIX
IBM AIX |
| public static final StubLoader. | DARWIN
MacOSX |
| public static final StubLoader. | DRAGONFLY
DragonFly |
| public static final StubLoader. | FREEBSD
FreeBSD |
| public static final StubLoader. | IBMI
IBM i |
| public static final StubLoader. | LINUX
Linux |
| public static final StubLoader. | NETBSD
NetBSD |
| public static final StubLoader. | OPENBSD
OpenBSD |
| public static final StubLoader. | SOLARIS
Solaris (and OpenSolaris) |
| public static final StubLoader. | UNKNOWN
No idea what the operating system is |
| public static final StubLoader. | WINDOWS
The evil borg operating system |
| public static final StubLoader. | ZLINUX
IBM zOS |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | toString()
Overrides java. |
| public static StubLoader. | |
| public static StubLoader. |
| AIX | back to summary |
|---|---|
| public static final StubLoader. IBM AIX | |
| DARWIN | back to summary |
|---|---|
| public static final StubLoader. MacOSX | |
| DRAGONFLY | back to summary |
|---|---|
| public static final StubLoader. DragonFly | |
| FREEBSD | back to summary |
|---|---|
| public static final StubLoader. FreeBSD | |
| IBMI | back to summary |
|---|---|
| public static final StubLoader. IBM i | |
| LINUX | back to summary |
|---|---|
| public static final StubLoader. Linux | |
| NETBSD | back to summary |
|---|---|
| public static final StubLoader. NetBSD | |
| OPENBSD | back to summary |
|---|---|
| public static final StubLoader. OpenBSD | |
| SOLARIS | back to summary |
|---|---|
| public static final StubLoader. Solaris (and OpenSolaris) | |
| UNKNOWN | back to summary |
|---|---|
| public static final StubLoader. No idea what the operating system is | |
| WINDOWS | back to summary |
|---|---|
| public static final StubLoader. The evil borg operating system | |
| ZLINUX | back to summary |
|---|---|
| public static final StubLoader. IBM zOS | |
| OS | back to summary |
|---|---|
| private OS() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists. | |
| valueOf | back to summary |
|---|---|
| public static StubLoader. | |
| values | back to summary |
|---|---|
| public static StubLoader. | |