Package com.formdev.flatlaf.util
Class NativeLibrary
- java.lang.Object
-
- com.formdev.flatlaf.util.NativeLibrary
-
public class NativeLibrary extends java.lang.Object
Helper class to load native library (.dll, .so or .dylib) stored in Jar.Copies native library to users temporary folder before loading it.
- Since:
- 1.1
-
-
Constructor Summary
Constructors Constructor Description NativeLibrary(java.lang.String libraryName, java.lang.ClassLoader classLoader, boolean supported)
Load native library from given classloader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isLoaded()
Returns whether the native library is loaded.
-
-
-
Constructor Detail
-
NativeLibrary
public NativeLibrary(java.lang.String libraryName, java.lang.ClassLoader classLoader, boolean supported)
Load native library from given classloader.- Parameters:
libraryName
- resource name of the native library (without "lib" prefix and without extension)classLoader
- the classloader used to locate the librarysupported
- whether the native library is supported on the current platform
-
-