Package dev.onvoid.webrtc.internal
Class NativeLoader
java.lang.Object
dev.onvoid.webrtc.internal.NativeLoader
public class NativeLoader
extends java.lang.Object
Loads a native library from inside a JAR.
- Author:
- Alex Andres
-
Constructor Summary
Constructors Constructor Description NativeLoader()
-
Method Summary
Modifier and Type Method Description static void
loadLibrary(java.lang.String libName)
Loads the specified native library.
-
Constructor Details
-
NativeLoader
public NativeLoader()
-
-
Method Details
-
loadLibrary
public static void loadLibrary(java.lang.String libName) throws java.lang.ExceptionLoads the specified native library. ThelibName
argument must not contain any platform specific prefix, file extension or path.- Parameters:
libName
- The name of library to load.- Throws:
java.lang.Exception
- if the library could not be loaded.- See Also:
System.load(String)
,System.loadLibrary(String)
-