Top Fields Constructors Methods
com.sun.glass.utils

public Class NativeLibLoader

extends Object
Class Inheritance
Imports
com.sun.javafx.PlatformUtil, java.io.File, .FileInputStream, .InputStream, .IOException, .RandomAccessFile, java.net.URI, java.nio.channels.FileChannel, .FileLock, java.nio.file.Files, .Path, java.security.DigestInputStream, .MessageDigest, .NoSuchAlgorithmException, java.util.Arrays, .HashSet, .List

Field Summary

Modifier and TypeField and Description
private static File
private static String
private static String
private static final HashSet<String>
private static boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static String
cacheLibrary(InputStream is, String name, Class<T> caller)

pack-priv static byte[]
private static String[]
private static boolean
installLibraryFromResource(String libraryName, List<String> dependencies, Class<T> caller, boolean load)

If there is a library with the platform-correct name at the root of the resources in this jar, install it.

private static File
libDirForJarFile(String classUrlString)

private static File
public static synchronized void
public static synchronized void
loadLibrary(String libname, List<String> dependencies)

private static boolean
loadLibraryFromResource(String libraryName, List<String> dependencies, Class<T> caller)

If there is a library with the platform-correct name at the root of the resources in this jar, use that.

private static void
loadLibraryFullPath(String libraryName)

Load the native library either from the same directory as the jar file containing this class, or from the Java runtime.

private static void
loadLibraryInternal(String libraryName, List<String> dependencies, Class<T> caller)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

libDirback to summary
private static File libDir
libPrefixback to summary
private static String libPrefix
libSuffixback to summary
private static String libSuffix
loadedback to summary
private static final HashSet<String> loaded
verboseback to summary
private static boolean verbose

Constructor Detail

NativeLibLoaderback to summary
public NativeLibLoader()

Method Detail

cacheLibraryback to summary
private static String cacheLibrary(InputStream is, String name, Class<T> caller) throws IOException
calculateCheckSumback to summary
pack-priv static byte[] calculateCheckSum(File file)
initializePathback to summary
private static String[] initializePath(String propname)
installLibraryFromResourceback to summary
private static boolean installLibraryFromResource(String libraryName, List<String> dependencies, Class<T> caller, boolean load)

If there is a library with the platform-correct name at the root of the resources in this jar, install it. If load is true, also load it.

libDirForJarFileback to summary
private static File libDirForJarFile(String classUrlString) throws Exception
libDirForJRTback to summary
private static File libDirForJRT()
loadLibraryback to summary
public static synchronized void loadLibrary(String libname)
loadLibraryback to summary
public static synchronized void loadLibrary(String libname, List<String> dependencies)
loadLibraryFromResourceback to summary
private static boolean loadLibraryFromResource(String libraryName, List<String> dependencies, Class<T> caller)

If there is a library with the platform-correct name at the root of the resources in this jar, use that.

loadLibraryFullPathback to summary
private static void loadLibraryFullPath(String libraryName)

Load the native library either from the same directory as the jar file containing this class, or from the Java runtime.

loadLibraryInternalback to summary
private static void loadLibraryInternal(String libraryName, List<String> dependencies, Class<T> caller)