Class NativeLibraryLoader
- java.lang.Object
-
- com.amazonaws.kinesisvideo.internal.producer.jni.NativeLibraryLoader
-
@ThreadSafe public class NativeLibraryLoader extends Object
Static helper for loading libraries
-
-
Constructor Summary
Constructors Constructor Description NativeLibraryLoader(org.apache.logging.log4j.Logger log)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanloadNativeLibrary(String fullPath, String libraryName)Attempts to load the native library by trying a library file first and if it fails then trying the library name
-
-
-
Constructor Detail
-
NativeLibraryLoader
public NativeLibraryLoader(@Nonnull org.apache.logging.log4j.Logger log)
-
-
Method Detail
-
loadNativeLibrary
public boolean loadNativeLibrary(String fullPath, String libraryName)
Attempts to load the native library by trying a library file first and if it fails then trying the library name- Parameters:
fullPath- Full path to the library file (with or without the extension) - OptionallibraryName- Library name - Optional- Returns:
- Whether the library was loaded OK
-
-