com.groupbyinc.flux.common.sun.jna.NativeLibrary.class Maven / Gradle / Ivy
???? 2s 0com/groupbyinc/flux/common/sun/jna/NativeLibrary java/lang/Object NativeLibrary.java 2com/groupbyinc/flux/common/sun/jna/NativeLibrary$2 2com/groupbyinc/flux/common/sun/jna/NativeLibrary$1 java/util/Map$Entry
java/util/Map Entry handle J libraryName Ljava/lang/String; libraryPath functions Ljava/util/Map; PLjava/util/Map; callFlags I encoding options $Ljava/util/Map; libraries pLjava/util/Map;>; searchPaths GLjava/util/Map;>; librarySearchPath Ljava/util/List; $Ljava/util/List; DEFAULT_OPEN_OPTIONS???? functionKey 9(Ljava/lang/String;ILjava/lang/String;)Ljava/lang/String; java/lang/StringBuilder ' ()V ) *
( + append -(Ljava/lang/String;)Ljava/lang/StringBuilder; - .
( / | 1 (I)Ljava/lang/StringBuilder; - 3
( 4 toString ()Ljava/lang/String; 6 7
( 8 name flags 7(Ljava/lang/String;Ljava/lang/String;JLjava/util/Map;)V
+ java/util/HashMap >
? + A getLibraryName &(Ljava/lang/String;)Ljava/lang/String; C D
E G I K calling-convention M get &(Ljava/lang/Object;)Ljava/lang/Object; O P
Q java/lang/Number S intValue ()I U V
T W java/lang/String Y [ ] string-encoding _ a )com/groupbyinc/flux/common/sun/jna/Native c getDefaultStringEncoding e 7
d f +com/groupbyinc/flux/common/sun/jna/Platform h isWindows ()Z j k
i l kernel32 n toLowerCase p 7
Z q equals (Ljava/lang/Object;)Z s t
Z u GetLastError w ?(Lcom/groupbyinc/flux/common/sun/jna/NativeLibrary;Lcom/groupbyinc/flux/common/sun/jna/NativeLibrary;Ljava/lang/String;ILjava/lang/String;)V ) y
z % &
| put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ~
? java/lang/Throwable ? f -Lcom/groupbyinc/flux/common/sun/jna/Function; this 2Lcom/groupbyinc/flux/common/sun/jna/NativeLibrary; option Ljava/lang/Object; callingConvention openFlags (Ljava/util/Map;)I
open-flags ? opt loadLibrary U(Ljava/lang/String;Ljava/util/Map;)Lcom/groupbyinc/flux/common/sun/jna/NativeLibrary; java/lang/UnsatisfiedLinkError ? java/io/IOException ?
DEBUG_LOAD Z ? ? d ? java/lang/System ? out Ljava/io/PrintStream; ? ? ? ? Looking for library ' ? ' ? java/io/PrintStream ? println (Ljava/lang/String;)V ? ?
? ? java/io/File ? ) ?
? ?
isAbsolute ? k
? ? java/util/ArrayList ?
? + ? ?
? getWebStartLibraryPath ? D
d ? Adding web start path ? java/util/List ? add ? t ? ? ? addAll (ILjava/util/Collection;)Z ? ? ? ? $Adding paths from jna.library.path: ? jna.library.path ? getProperty ? D
? ? initPaths $(Ljava/lang/String;)Ljava/util/List; ? ?
? (Ljava/util/Collection;)Z ? ? ? ? findLibraryPath 6(Ljava/lang/String;Ljava/util/List;)Ljava/lang/String; ? ?
? Trying ? open (Ljava/lang/String;I)J ? ?
d ? Adding system paths: ? ! ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; - ?
( ? Failed to load library ' ?
? ? isAndroid ? k
i ? !Preload (via System.loadLibrary) ? ? ?
? ? isLinux ? k
i ? isFreeBSD ? k
i ? Looking for version variants ? matchLibrary ? ?
? isMac ? k
i ? .dylib ? endsWith (Ljava/lang/String;)Z ?
Z Looking for matching frameworks matchFramework D
Looking for lib- prefix lib
classloader java/lang/ClassLoader extractFromResourcePath 9(Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/io/File;
d getAbsolutePath 7
?
isUnpacked (Ljava/io/File;)Z
d
deleteLibrary
d
getMessage 7
? Unable to load library '! ': #
? Found library '& ' at ( ) <
* e Ljava/lang/UnsatisfiedLinkError; e2 embedded Ljava/io/File; Ljava/io/IOException; isAbsolutePath
searchPath webstartPath customPaths
.framework6 indexOf (Ljava/lang/String;)I89
Z: exists<