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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • loadLibrary

      public static void loadLibrary​(java.lang.String libName) throws java.lang.Exception
      Loads the specified native library. The libName 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)