Class NativeLibraryLoader


  • public final class NativeLibraryLoader
    extends java.lang.Object
    Helper class to load JNI resources.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private NativeLibraryLoader()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static boolean isOSX()  
      private static boolean isWindows()  
      static void load​(java.lang.String name, java.lang.ClassLoader loader)
      Load the given library with the specified ClassLoader
      private static java.io.File tmpdir()  
      private static java.io.File toDirectory​(java.lang.String path)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • NATIVE_RESOURCE_HOME

        private static final java.lang.String NATIVE_RESOURCE_HOME
        See Also:
        Constant Field Values
      • OSNAME

        private static final java.lang.String OSNAME
      • WORKDIR

        private static final java.io.File WORKDIR
    • Constructor Detail

      • NativeLibraryLoader

        private NativeLibraryLoader()
    • Method Detail

      • tmpdir

        private static java.io.File tmpdir()
      • toDirectory

        private static java.io.File toDirectory​(java.lang.String path)
      • isWindows

        private static boolean isWindows()
      • isOSX

        private static boolean isOSX()
      • load

        public static void load​(java.lang.String name,
                                java.lang.ClassLoader loader)
        Load the given library with the specified ClassLoader