
com.groupbyinc.flux.common.jboss.netty.util.internal.NativeLibraryLoader.class Maven / Gradle / Ivy
???? 1) Hcom/groupbyinc/flux/common/jboss/netty/util/internal/NativeLibraryLoader java/lang/Object NativeLibraryLoader.java logger ?Lcom/groupbyinc/flux/common/jboss/netty/logging/InternalLogger; NATIVE_RESOURCE_HOME Ljava/lang/String; META-INF/native/
OSNAME WORKDIR Ljava/io/File; tmpdir ()Ljava/io/File; java/lang/Exception io.netty.tmpdir Gcom/groupbyinc/flux/common/jboss/netty/util/internal/SystemPropertyUtil get &(Ljava/lang/String;)Ljava/lang/String;
toDirectory "(Ljava/lang/String;)Ljava/io/File;
java/lang/StringBuilder ! ()V # $
" % -Dio.netty.tmpdir: ' append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ) *
" + -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ) -
" . toString ()Ljava/lang/String; 0 1
" 2 =com/groupbyinc/flux/common/jboss/netty/logging/InternalLogger 4 debug (Ljava/lang/String;)V 6 7 5 8 java.io.tmpdir : (java.io.tmpdir) < isWindows ()Z > ?
@ TEMP B java/lang/System D getenv F
E G (%TEMP%) I USERPROFILE K \AppData\Local\Temp M # (%USERPROFILE%\AppData\Local\Temp) O \Local Settings\Temp Q $ (%USERPROFILE%\Local Settings\Temp) S TMPDIR U
($TMPDIR) W java/io/File Y C:\Windows\Temp [ # 7
Z ] /tmp _ 8Failed to get the temporary directory; falling back to: a warn c 7 5 d userprofile ignored Ljava/lang/Exception; f exists j ?
Z k mkdirs m ?
Z n isDirectory p ?
Z q getAbsoluteFile s
Z t path w windows y java/lang/String {
startsWith (Ljava/lang/String;)Z } ~
| isOSX macosx ? osx ? load ,(Ljava/lang/String;Ljava/lang/ClassLoader;)V java/io/IOException ? mapLibraryName ?
E ? java/lang/ClassLoader ? getResource "(Ljava/lang/String;)Ljava/net/URL; ? ?
? ? ? ?
? .jnilib ? endsWith ? ~
| ? META-INF/native/lib ? .dynlib ? loadLibrary ? 7
E ? lastIndexOf (I)I ? ?
| ? substring (II)Ljava/lang/String; ? ?
| ? length ()I ? ?
| ?
? createTempFile B(Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Ljava/io/File; ? ?
Z ? java/net/URL ?
openStream ()Ljava/io/InputStream; ? ?
? ? java/io/FileOutputStream ? (Ljava/io/File;)V # ?
? ? java/io/InputStream ? read ([B)I ? ?
? ? java/io/OutputStream ? write ([BII)V ? ?
? ? flush ? $
? ? close ? $
? ? getPath ? 1
Z ? ? 7
E ? java/lang/UnsatisfiedLinkError ? !could not load a native library: ?
? ] initCause ,(Ljava/lang/Throwable;)Ljava/lang/Throwable; ? ?
? ?
? ? deleteOnExit ? $
Z ? delete ? ?
Z ? buffer [B I e ignore Ljava/io/IOException; name loader Ljava/lang/ClassLoader; libname url Ljava/net/URL; index prefix suffix in Ljava/io/InputStream; out Ljava/io/OutputStream; tmpFile loaded Z
% this JLcom/groupbyinc/flux/common/jboss/netty/util/internal/NativeLibraryLoader; Dcom/groupbyinc/flux/common/jboss/netty/logging/InternalLoggerFactory ? getInstance R(Ljava/lang/Class;)Lcom/groupbyinc/flux/common/jboss/netty/logging/InternalLogger;
os.name 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
java/util/Locale US Ljava/util/Locale;
toLowerCase &(Ljava/util/Locale;)Ljava/lang/String;
|
[^a-z0-9]+
replaceAll
| io.netty.native.workdir -Dio.netty.netty.workdir:
(io.netty.tmpdir)! workdir
ConstantValue Code LocalVariableTable LineNumberTable
SourceFile 1 $
% ? ?? ? K*? ? ? "Y? &(? ,*? /? 3? 9 *?;? ? K*? %? ? "Y? &(? ,*? /=? ,? 3? 9 *?? A? ?C? H? K*? %? ? "Y? &(? ,*? /J? ,? 3? 9 *?L? HL+? }? "Y? &+? ,N? ,? 3? K*? %? ? "Y? &(? ,*? /P? ,? 3? 9 *?? "Y? &+? ,R? ,? 3? K*? %? ? "Y? &(? ,*? /T? ,? 3? 9 *?? 2V? H? K*? %? ? "Y? &(? ,*? /X? ,? 3? 9 *?? L? A? ? ZY\? ^K?
? ZY`? ^K? ? "Y? &b? ,*? /? 3? e *? )G * XG Y ?G ? ?G ?G CG &