public class io.vertx.core.file.impl.FileResolver
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.core.file.impl.FileResolver
super_class: java.lang.Object
{
public static final java.lang.String DISABLE_FILE_CACHING_PROP_NAME;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "vertx.disableFileCaching"
public static final java.lang.String DISABLE_CP_RESOLVING_PROP_NAME;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "vertx.disableFileCPResolving"
public static final java.lang.String CACHE_DIR_BASE_PROP_NAME;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "vertx.cacheDirBase"
private static final java.lang.String FILE_SEP;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final boolean NON_UNIX_FILE_SEP;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.io.File cwd;
descriptor: Ljava/io/File;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean enableCaching;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean closeCache;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.vertx.core.file.impl.FileCache cache;
descriptor: Lio/vertx/core/file/impl/FileCache;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc "file.separator"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
putstatic io.vertx.core.file.impl.FileResolver.FILE_SEP:Ljava/lang/String;
1: getstatic io.vertx.core.file.impl.FileResolver.FILE_SEP:Ljava/lang/String;
ldc "/"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 2
iconst_0
goto 3
StackMap locals:
StackMap stack:
2: iconst_1
StackMap locals:
StackMap stack: int
3: putstatic io.vertx.core.file.impl.FileResolver.NON_UNIX_FILE_SEP:Z
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
new io.vertx.core.file.FileSystemOptions
dup
invokespecial io.vertx.core.file.FileSystemOptions.<init>:()V
invokespecial io.vertx.core.file.impl.FileResolver.<init>:(Lio/vertx/core/file/FileSystemOptions;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/core/file/impl/FileResolver;
public void <init>(io.vertx.core.file.FileSystemOptions);
descriptor: (Lio/vertx/core/file/FileSystemOptions;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
1: aload 1
invokevirtual io.vertx.core.file.FileSystemOptions.isFileCachingEnabled:()Z
2: aload 1
invokevirtual io.vertx.core.file.FileSystemOptions.isClassPathResolvingEnabled:()Z
ifeq 3
aload 1
invokevirtual io.vertx.core.file.FileSystemOptions.getFileCacheDir:()Ljava/lang/String;
invokestatic io.vertx.core.file.impl.FileCache.setupCache:(Ljava/lang/String;)Lio/vertx/core/file/impl/FileCache;
goto 4
StackMap locals: uninitialized-this io.vertx.core.file.FileSystemOptions
StackMap stack: uninitialized-this int
3: aconst_null
4: StackMap locals: uninitialized-this io.vertx.core.file.FileSystemOptions
StackMap stack: uninitialized-this int io.vertx.core.file.impl.FileCache
aload 1
invokevirtual io.vertx.core.file.FileSystemOptions.isClassPathResolvingEnabled:()Z
invokespecial io.vertx.core.file.impl.FileResolver.<init>:(ZLio/vertx/core/file/impl/FileCache;Z)V
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/vertx/core/file/impl/FileResolver;
0 6 1 fileSystemOptions Lio/vertx/core/file/FileSystemOptions;
MethodParameters:
Name Flags
fileSystemOptions
public void <init>(boolean, io.vertx.core.file.impl.FileCache, boolean);
descriptor: (ZLio/vertx/core/file/impl/FileCache;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iload 1
putfield io.vertx.core.file.impl.FileResolver.enableCaching:Z
2: aload 0
aload 2
putfield io.vertx.core.file.impl.FileResolver.cache:Lio/vertx/core/file/impl/FileCache;
3: aload 0
iload 3
putfield io.vertx.core.file.impl.FileResolver.closeCache:Z
4: ldc "vertx.cwd"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 5: aload 4
ifnull 8
6: aload 0
new java.io.File
dup
aload 4
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokevirtual java.io.File.getAbsoluteFile:()Ljava/io/File;
putfield io.vertx.core.file.impl.FileResolver.cwd:Ljava/io/File;
7: goto 9
8: StackMap locals: io.vertx.core.file.impl.FileResolver int io.vertx.core.file.impl.FileCache int java.lang.String
StackMap stack:
aload 0
aconst_null
putfield io.vertx.core.file.impl.FileResolver.cwd:Ljava/io/File;
9: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lio/vertx/core/file/impl/FileResolver;
0 10 1 enableCaching Z
0 10 2 cache Lio/vertx/core/file/impl/FileCache;
0 10 3 closeCache Z
5 10 4 cwdOverride Ljava/lang/String;
MethodParameters:
Name Flags
enableCaching
cache
closeCache
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.core.file.impl.FileResolver.closeCache:Z
ifeq 2
1: aload 0
getfield io.vertx.core.file.impl.FileResolver.cache:Lio/vertx/core/file/impl/FileCache;
invokevirtual io.vertx.core.file.impl.FileCache.close:()V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/core/file/impl/FileResolver;
Exceptions:
throws java.io.IOException
public java.io.File resolveFile(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/io/File;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=8, args_size=2
start local 0 start local 1 0: new java.io.File
dup
aload 1
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 2
start local 2 1: aload 0
getfield io.vertx.core.file.impl.FileResolver.cwd:Ljava/io/File;
ifnull 3
aload 2
invokevirtual java.io.File.isAbsolute:()Z
ifne 3
2: new java.io.File
dup
aload 0
getfield io.vertx.core.file.impl.FileResolver.cwd:Ljava/io/File;
aload 1
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 2
3: StackMap locals: java.io.File
StackMap stack:
aload 0
getfield io.vertx.core.file.impl.FileResolver.cache:Lio/vertx/core/file/impl/FileCache;
ifnonnull 5
4: aload 2
areturn
5: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.core.file.impl.FileResolver.cache:Lio/vertx/core/file/impl/FileCache;
dup
astore 3
monitorenter
6: aload 2
invokevirtual java.io.File.exists:()Z
ifne 25
7: aload 0
getfield io.vertx.core.file.impl.FileResolver.cache:Lio/vertx/core/file/impl/FileCache;
aload 1
invokevirtual io.vertx.core.file.impl.FileCache.getFile:(Ljava/lang/String;)Ljava/io/File;
astore 4
start local 4 8: aload 0
getfield io.vertx.core.file.impl.FileResolver.enableCaching:Z
ifeq 11
aload 4
invokevirtual java.io.File.exists:()Z
ifeq 11
9: aload 4
aload 3
monitorexit
10: areturn
11: StackMap locals: io.vertx.core.file.impl.FileCache java.io.File
StackMap stack:
aload 0
invokevirtual io.vertx.core.file.impl.FileResolver.getClassLoader:()Ljava/lang/ClassLoader;
astore 5
start local 5 12: aload 2
invokevirtual java.io.File.getParent:()Ljava/lang/String;
astore 6
start local 6 13: aload 6
ifnull 19
14: getstatic io.vertx.core.file.impl.FileResolver.NON_UNIX_FILE_SEP:Z
ifeq 16
15: aload 6
getstatic io.vertx.core.file.impl.FileResolver.FILE_SEP:Ljava/lang/String;
ldc "/"
invokevirtual java.lang.String.replace:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
astore 6
16: StackMap locals: java.lang.ClassLoader java.lang.String
StackMap stack:
aload 5
aload 6
invokestatic io.vertx.core.file.impl.FileResolver.getValidClassLoaderResource:(Ljava/lang/ClassLoader;Ljava/lang/String;)Ljava/net/URL;
astore 7
start local 7 17: aload 7
ifnull 19
18: aload 0
aload 7
aload 6
aload 5
iconst_1
invokevirtual io.vertx.core.file.impl.FileResolver.unpackUrlResource:(Ljava/net/URL;Ljava/lang/String;Ljava/lang/ClassLoader;Z)Ljava/io/File;
pop
end local 7 19: StackMap locals:
StackMap stack:
getstatic io.vertx.core.file.impl.FileResolver.NON_UNIX_FILE_SEP:Z
ifeq 21
20: aload 1
getstatic io.vertx.core.file.impl.FileResolver.FILE_SEP:Ljava/lang/String;
ldc "/"
invokevirtual java.lang.String.replace:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;
astore 1
21: StackMap locals:
StackMap stack:
aload 5
aload 1
invokestatic io.vertx.core.file.impl.FileResolver.getValidClassLoaderResource:(Ljava/lang/ClassLoader;Ljava/lang/String;)Ljava/net/URL;
astore 7
start local 7 22: aload 7
ifnull 25
23: aload 0
aload 7
aload 1
aload 5
iconst_0
invokevirtual io.vertx.core.file.impl.FileResolver.unpackUrlResource:(Ljava/net/URL;Ljava/lang/String;Ljava/lang/ClassLoader;Z)Ljava/io/File;
aload 3
monitorexit
24: areturn
end local 7 end local 6 end local 5 end local 4 25: StackMap locals:
StackMap stack:
aload 3
monitorexit
26: goto 29
StackMap locals:
StackMap stack: java.lang.Throwable
27: aload 3
monitorexit
28: athrow
29: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 this Lio/vertx/core/file/impl/FileResolver;
0 30 1 fileName Ljava/lang/String;
1 30 2 file Ljava/io/File;
8 25 4 cacheFile Ljava/io/File;
12 25 5 cl Ljava/lang/ClassLoader;
13 25 6 parentFileName Ljava/lang/String;
17 19 7 directoryContents Ljava/net/URL;
22 25 7 url Ljava/net/URL;
Exception table:
from to target type
6 10 27 any
11 24 27 any
25 26 27 any
27 28 27 any
MethodParameters:
Name Flags
fileName
private static boolean isValidWindowsCachePath(char);
descriptor: (C)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
bipush 32
if_icmpge 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
iload 0
lookupswitch { // 7
34: 3
42: 3
58: 3
60: 3
62: 3
63: 3
124: 3
default: 4
}
3: StackMap locals:
StackMap stack:
iconst_0
ireturn
4: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 c C
MethodParameters:
Name Flags
c
private static boolean isValidCachePath(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: invokestatic io.netty.util.internal.PlatformDependent.isWindows:()Z
ifeq 12
1: aload 0
invokevirtual java.lang.String.length:()I
istore 1
start local 1 2: iconst_0
istore 2
start local 2 3: goto 10
4: StackMap locals: int int
StackMap stack:
aload 0
iload 2
invokevirtual java.lang.String.charAt:(I)C
istore 3
start local 3 5: iload 3
invokestatic io.vertx.core.file.impl.FileResolver.isValidWindowsCachePath:(C)Z
ifne 7
6: iconst_0
ireturn
7: StackMap locals: int
StackMap stack:
iload 3
bipush 32
if_icmpne 9
iload 2
iconst_1
iadd
iload 1
if_icmpeq 8
aload 0
iload 2
iconst_1
iadd
invokevirtual java.lang.String.charAt:(I)C
bipush 47
if_icmpne 9
8: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 3 9: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
10: iload 2
iload 1
if_icmplt 4
end local 2 11: iconst_1
ireturn
end local 1 12: StackMap locals:
StackMap stack:
aload 0
iconst_0
invokevirtual java.lang.String.indexOf:(I)I
iconst_m1
if_icmpne 13
iconst_1
ireturn
StackMap locals:
StackMap stack:
13: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 fileName Ljava/lang/String;
2 12 1 len I
3 11 2 i I
5 9 3 c C
MethodParameters:
Name Flags
fileName
private static java.net.URL getValidClassLoaderResource(java.lang.ClassLoader, java.lang.String);
descriptor: (Ljava/lang/ClassLoader;Ljava/lang/String;)Ljava/net/URL;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual java.lang.ClassLoader.getResource:(Ljava/lang/String;)Ljava/net/URL;
astore 2
start local 2 1: aload 2
ifnull 3
aload 1
invokestatic io.vertx.core.file.impl.FileResolver.isValidCachePath:(Ljava/lang/String;)Z
ifne 3
2: aconst_null
areturn
3: StackMap locals: java.net.URL
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 cl Ljava/lang/ClassLoader;
0 4 1 fileName Ljava/lang/String;
1 4 2 resource Ljava/net/URL;
MethodParameters:
Name Flags
cl
fileName
private java.io.File unpackUrlResource(java.net.URL, java.lang.String, java.lang.ClassLoader, boolean);
descriptor: (Ljava/net/URL;Ljava/lang/String;Ljava/lang/ClassLoader;Z)Ljava/io/File;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 1
invokevirtual java.net.URL.getProtocol:()Ljava/lang/String;
astore 5
start local 5 1: aload 5
dup
astore 6
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 6
-1377881982: 2
-341064690: 3
-239609552: 4
104987: 5
3143036: 6
1780175504: 7
default: 11
}
StackMap locals: java.lang.String java.lang.String
StackMap stack:
2: aload 6
ldc "bundle"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 10
goto 11
StackMap locals:
StackMap stack:
3: aload 6
ldc "resource"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 10
goto 11
StackMap locals:
StackMap stack:
4: aload 6
ldc "bundleentry"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 10
goto 11
StackMap locals:
StackMap stack:
5: aload 6
ldc "jar"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 9
goto 11
StackMap locals:
StackMap stack:
6: aload 6
ldc "file"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 8
goto 11
StackMap locals:
StackMap stack:
7: aload 6
ldc "bundleresource"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 10
goto 11
8: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
aload 3
invokevirtual io.vertx.core.file.impl.FileResolver.unpackFromFileURL:(Ljava/net/URL;Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/io/File;
areturn
9: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
aload 3
invokevirtual io.vertx.core.file.impl.FileResolver.unpackFromJarURL:(Ljava/net/URL;Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/io/File;
areturn
10: StackMap locals:
StackMap stack:
aload 0
aload 1
iload 4
invokevirtual io.vertx.core.file.impl.FileResolver.unpackFromBundleURL:(Ljava/net/URL;Z)Ljava/io/File;
areturn
11: StackMap locals:
StackMap stack:
new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "Invalid url protocol: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lio/vertx/core/file/impl/FileResolver;
0 12 1 url Ljava/net/URL;
0 12 2 fileName Ljava/lang/String;
0 12 3 cl Ljava/lang/ClassLoader;
0 12 4 isDir Z
1 12 5 prot Ljava/lang/String;
MethodParameters:
Name Flags
url
fileName
cl
isDir
private java.io.File unpackFromFileURL(java.net.URL, java.lang.String, java.lang.ClassLoader);
descriptor: (Ljava/net/URL;Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/io/File;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=14, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new java.io.File
dup
aload 1
invokevirtual java.net.URL.getPath:()Ljava/lang/String;
iconst_0
invokestatic io.vertx.core.net.impl.URIDecoder.decodeURIComponent:(Ljava/lang/String;Z)Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 4
start local 4 1: aload 4
invokevirtual java.io.File.isDirectory:()Z
istore 5
start local 5 2: aload 0
getfield io.vertx.core.file.impl.FileResolver.cache:Lio/vertx/core/file/impl/FileCache;
aload 2
aload 4
aload 0
getfield io.vertx.core.file.impl.FileResolver.enableCaching:Z
ifeq 3
iconst_0
goto 4
StackMap locals: io.vertx.core.file.impl.FileResolver java.net.URL java.lang.String java.lang.ClassLoader java.io.File int
StackMap stack: io.vertx.core.file.impl.FileCache java.lang.String java.io.File
3: iconst_1
StackMap locals: io.vertx.core.file.impl.FileResolver java.net.URL java.lang.String java.lang.ClassLoader java.io.File int
StackMap stack: io.vertx.core.file.impl.FileCache java.lang.String java.io.File int
4: invokevirtual io.vertx.core.file.impl.FileCache.cache:(Ljava/lang/String;Ljava/io/File;Z)Ljava/io/File;
astore 6
start local 6 5: goto 8
end local 6 StackMap locals:
StackMap stack: java.io.IOException
6: astore 7
start local 7 7: new io.vertx.core.VertxException
dup
aload 7
invokespecial io.vertx.core.VertxException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 7 start local 6 8: StackMap locals: java.io.File
StackMap stack:
iload 5
ifeq 20
9: aload 4
invokevirtual java.io.File.list:()[Ljava/lang/String;
astore 7
start local 7 10: aload 7
ifnull 20
11: aload 7
dup
astore 11
arraylength
istore 10
iconst_0
istore 9
goto 19
StackMap locals: io.vertx.core.file.impl.FileResolver java.net.URL java.lang.String java.lang.ClassLoader java.io.File int java.io.File java.lang.String[] top int int java.lang.String[]
StackMap stack:
12: aload 11
iload 9
aaload
astore 8
start local 8 13: new java.lang.StringBuilder
dup
aload 2
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 8
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 12
start local 12 14: aload 3
aload 12
invokestatic io.vertx.core.file.impl.FileResolver.getValidClassLoaderResource:(Ljava/lang/ClassLoader;Ljava/lang/String;)Ljava/net/URL;
astore 13
start local 13 15: aload 13
ifnonnull 17
16: new io.vertx.core.VertxException
dup
new java.lang.StringBuilder
dup
ldc "Invalid resource: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 12
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial io.vertx.core.VertxException.<init>:(Ljava/lang/String;)V
athrow
17: StackMap locals: io.vertx.core.file.impl.FileResolver java.net.URL java.lang.String java.lang.ClassLoader java.io.File int java.io.File java.lang.String[] java.lang.String int int java.lang.String[] java.lang.String java.net.URL
StackMap stack:
aload 0
aload 13
aload 12
aload 3
invokevirtual io.vertx.core.file.impl.FileResolver.unpackFromFileURL:(Ljava/net/URL;Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/io/File;
pop
end local 13 end local 12 end local 8 18: iinc 9 1
StackMap locals: io.vertx.core.file.impl.FileResolver java.net.URL java.lang.String java.lang.ClassLoader java.io.File int java.io.File java.lang.String[] top int int java.lang.String[]
StackMap stack:
19: iload 9
iload 10
if_icmplt 12
end local 7 20: StackMap locals: io.vertx.core.file.impl.FileResolver java.net.URL java.lang.String java.lang.ClassLoader java.io.File int java.io.File
StackMap stack:
aload 6
areturn
end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lio/vertx/core/file/impl/FileResolver;
0 21 1 url Ljava/net/URL;
0 21 2 fileName Ljava/lang/String;
0 21 3 cl Ljava/lang/ClassLoader;
1 21 4 resource Ljava/io/File;
2 21 5 isDirectory Z
5 6 6 cacheFile Ljava/io/File;
8 21 6 cacheFile Ljava/io/File;
7 8 7 e Ljava/io/IOException;
10 20 7 listing [Ljava/lang/String;
13 18 8 file Ljava/lang/String;
14 18 12 subResource Ljava/lang/String;
15 18 13 url2 Ljava/net/URL;
Exception table:
from to target type
2 5 6 Class java.io.IOException
MethodParameters:
Name Flags
url
fileName
cl
private java.io.File unpackFromJarURL(java.net.URL, java.lang.String, java.lang.ClassLoader);
descriptor: (Ljava/net/URL;Ljava/lang/String;Ljava/lang/ClassLoader;)Ljava/io/File;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=15, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aconst_null
astore 4
start local 4 1: aload 1
invokevirtual java.net.URL.getPath:()Ljava/lang/String;
astore 5
start local 5 2: aload 5
ldc ".jar!"
invokevirtual java.lang.String.lastIndexOf:(Ljava/lang/String;)I
istore 6
start local 6 3: iload 6
iconst_m1
if_icmpne 5
4: aload 5
ldc ".zip!"
invokevirtual java.lang.String.lastIndexOf:(Ljava/lang/String;)I
istore 6
5: StackMap locals: java.util.zip.ZipFile java.lang.String int
StackMap stack:
aload 5
ldc ".jar!"
iload 6
iconst_1
isub
invokevirtual java.lang.String.lastIndexOf:(Ljava/lang/String;I)I
istore 7
start local 7 6: iload 7
iconst_m1
if_icmpne 8
7: aload 5
ldc ".zip!"
iload 6
iconst_1
isub
invokevirtual java.lang.String.lastIndexOf:(Ljava/lang/String;I)I
istore 7
8: StackMap locals: int
StackMap stack:
iload 7
iconst_m1
if_icmpne 12
9: new java.io.File
dup
aload 5
iconst_5
iload 6
iconst_4
iadd
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
iconst_0
invokestatic io.vertx.core.net.impl.URIDecoder.decodeURIComponent:(Ljava/lang/String;Z)Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 8
start local 8 10: new java.util.zip.ZipFile
dup
aload 8
invokespecial java.util.zip.ZipFile.<init>:(Ljava/io/File;)V
astore 4
end local 8 11: goto 15
12: StackMap locals:
StackMap stack:
aload 5
iload 7
bipush 6
iadd
iload 6
iconst_4
iadd
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 8
start local 8 13: aload 0
aload 8
invokevirtual io.vertx.core.file.impl.FileResolver.resolveFile:(Ljava/lang/String;)Ljava/io/File;
astore 9
start local 9 14: new java.util.zip.ZipFile
dup
aload 9
invokespecial java.util.zip.ZipFile.<init>:(Ljava/io/File;)V
astore 4
end local 9 end local 8 15: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.util.zip.ZipFile.entries:()Ljava/util/Enumeration;
astore 8
start local 8 16: goto 34
17: StackMap locals: java.util.Enumeration
StackMap stack:
aload 8
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast java.util.zip.ZipEntry
astore 9
start local 9 18: aload 9
invokevirtual java.util.zip.ZipEntry.getName:()Ljava/lang/String;
astore 10
start local 10 19: aload 10
aload 2
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 34
20: aload 10
ldc "/"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 23
21: aload 0
getfield io.vertx.core.file.impl.FileResolver.cache:Lio/vertx/core/file/impl/FileCache;
aload 10
invokevirtual io.vertx.core.file.impl.FileCache.cacheDir:(Ljava/lang/String;)V
22: goto 34
23: StackMap locals: java.util.zip.ZipEntry java.lang.String
StackMap stack:
aconst_null
astore 11
aconst_null
astore 12
24: aload 4
aload 9
invokevirtual java.util.zip.ZipFile.getInputStream:(Ljava/util/zip/ZipEntry;)Ljava/io/InputStream;
astore 13
start local 13 25: aload 0
getfield io.vertx.core.file.impl.FileResolver.cache:Lio/vertx/core/file/impl/FileCache;
aload 10
aload 13
aload 0
getfield io.vertx.core.file.impl.FileResolver.enableCaching:Z
ifeq 26
iconst_0
goto 27
StackMap locals: io.vertx.core.file.impl.FileResolver java.net.URL java.lang.String java.lang.ClassLoader java.util.zip.ZipFile java.lang.String int int java.util.Enumeration java.util.zip.ZipEntry java.lang.String java.lang.Throwable java.lang.Throwable java.io.InputStream
StackMap stack: io.vertx.core.file.impl.FileCache java.lang.String java.io.InputStream
26: iconst_1
StackMap locals: io.vertx.core.file.impl.FileResolver java.net.URL java.lang.String java.lang.ClassLoader java.util.zip.ZipFile java.lang.String int int java.util.Enumeration java.util.zip.ZipEntry java.lang.String java.lang.Throwable java.lang.Throwable java.io.InputStream
StackMap stack: io.vertx.core.file.impl.FileCache java.lang.String java.io.InputStream int
27: invokevirtual io.vertx.core.file.impl.FileCache.cacheFile:(Ljava/lang/String;Ljava/io/InputStream;Z)V
28: aload 13
ifnull 34
aload 13
invokevirtual java.io.InputStream.close:()V
goto 34
StackMap locals:
StackMap stack: java.lang.Throwable
29: astore 11
aload 13
ifnull 30
aload 13
invokevirtual java.io.InputStream.close:()V
end local 13 StackMap locals:
StackMap stack:
30: aload 11
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
31: astore 12
aload 11
ifnonnull 32
aload 12
astore 11
goto 33
StackMap locals:
StackMap stack:
32: aload 11
aload 12
if_acmpeq 33
aload 11
aload 12
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
33: aload 11
athrow
end local 10 end local 9 34: StackMap locals: io.vertx.core.file.impl.FileResolver java.net.URL java.lang.String java.lang.ClassLoader java.util.zip.ZipFile java.lang.String int int java.util.Enumeration
StackMap stack:
aload 8
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 17
end local 8 end local 7 end local 6 end local 5 35: goto 41
StackMap locals: io.vertx.core.file.impl.FileResolver java.net.URL java.lang.String java.lang.ClassLoader java.util.zip.ZipFile
StackMap stack: java.io.IOException
36: astore 5
start local 5 37: new io.vertx.core.VertxException
dup
aload 5
invokespecial io.vertx.core.VertxException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 5 38: StackMap locals:
StackMap stack: java.lang.Throwable
astore 14
39: aload 0
aload 4
invokevirtual io.vertx.core.file.impl.FileResolver.closeQuietly:(Ljava/io/Closeable;)V
40: aload 14
athrow
41: StackMap locals:
StackMap stack:
aload 0
aload 4
invokevirtual io.vertx.core.file.impl.FileResolver.closeQuietly:(Ljava/io/Closeable;)V
42: aload 0
getfield io.vertx.core.file.impl.FileResolver.cache:Lio/vertx/core/file/impl/FileCache;
aload 2
invokevirtual io.vertx.core.file.impl.FileCache.getFile:(Ljava/lang/String;)Ljava/io/File;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 43 0 this Lio/vertx/core/file/impl/FileResolver;
0 43 1 url Ljava/net/URL;
0 43 2 fileName Ljava/lang/String;
0 43 3 cl Ljava/lang/ClassLoader;
1 43 4 zip Ljava/util/zip/ZipFile;
2 35 5 path Ljava/lang/String;
3 35 6 idx1 I
6 35 7 idx2 I
10 11 8 file Ljava/io/File;
13 15 8 s Ljava/lang/String;
14 15 9 file Ljava/io/File;
16 35 8 entries Ljava/util/Enumeration<+Ljava/util/zip/ZipEntry;>;
18 34 9 entry Ljava/util/zip/ZipEntry;
19 34 10 name Ljava/lang/String;
25 30 13 is Ljava/io/InputStream;
37 38 5 e Ljava/io/IOException;
Exception table:
from to target type
25 28 29 any
24 31 31 any
1 35 36 Class java.io.IOException
1 38 38 any
MethodParameters:
Name Flags
url
fileName
cl
private void closeQuietly(java.io.Closeable);
descriptor: (Ljava/io/Closeable;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnull 4
1: aload 1
invokeinterface java.io.Closeable.close:()V
2: goto 4
StackMap locals:
StackMap stack: java.io.IOException
3: pop
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/vertx/core/file/impl/FileResolver;
0 5 1 zip Ljava/io/Closeable;
Exception table:
from to target type
1 2 3 Class java.io.IOException
MethodParameters:
Name Flags
zip
private boolean isBundleUrlDirectory(java.net.URL);
descriptor: (Ljava/net/URL;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.net.URL.toExternalForm:()Ljava/lang/String;
ldc "/"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 3
1: aload 0
invokevirtual io.vertx.core.file.impl.FileResolver.getClassLoader:()Ljava/lang/ClassLoader;
new java.lang.StringBuilder
dup
aload 1
invokevirtual java.net.URL.getPath:()Ljava/lang/String;
iconst_1
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic io.vertx.core.file.impl.FileResolver.getValidClassLoaderResource:(Ljava/lang/ClassLoader;Ljava/lang/String;)Ljava/net/URL;
ifnonnull 3
2: iconst_0
ireturn
StackMap locals:
StackMap stack:
3: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/core/file/impl/FileResolver;
0 4 1 url Ljava/net/URL;
MethodParameters:
Name Flags
url
private java.io.File unpackFromBundleURL(java.net.URL, boolean);
descriptor: (Ljava/net/URL;Z)Ljava/io/File;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: new java.lang.StringBuilder
dup
aload 1
invokevirtual java.net.URL.getHost:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic java.io.File.separator:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.net.URL.getFile:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
start local 3 1: aload 0
invokevirtual io.vertx.core.file.impl.FileResolver.getClassLoader:()Ljava/lang/ClassLoader;
ifnull 2
aload 0
aload 1
invokevirtual io.vertx.core.file.impl.FileResolver.isBundleUrlDirectory:(Ljava/net/URL;)Z
ifne 3
StackMap locals: java.lang.String
StackMap stack:
2: iload 2
ifeq 5
3: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.core.file.impl.FileResolver.cache:Lio/vertx/core/file/impl/FileCache;
aload 3
invokevirtual io.vertx.core.file.impl.FileCache.cacheDir:(Ljava/lang/String;)V
4: goto 18
5: StackMap locals:
StackMap stack:
aconst_null
astore 4
aconst_null
astore 5
6: aload 1
invokevirtual java.net.URL.openStream:()Ljava/io/InputStream;
astore 6
start local 6 7: aload 0
getfield io.vertx.core.file.impl.FileResolver.cache:Lio/vertx/core/file/impl/FileCache;
aload 3
aload 6
aload 0
getfield io.vertx.core.file.impl.FileResolver.enableCaching:Z
ifeq 8
iconst_0
goto 9
StackMap locals: io.vertx.core.file.impl.FileResolver java.net.URL int java.lang.String java.lang.Throwable java.lang.Throwable java.io.InputStream
StackMap stack: io.vertx.core.file.impl.FileCache java.lang.String java.io.InputStream
8: iconst_1
StackMap locals: io.vertx.core.file.impl.FileResolver java.net.URL int java.lang.String java.lang.Throwable java.lang.Throwable java.io.InputStream
StackMap stack: io.vertx.core.file.impl.FileCache java.lang.String java.io.InputStream int
9: invokevirtual io.vertx.core.file.impl.FileCache.cacheFile:(Ljava/lang/String;Ljava/io/InputStream;Z)V
10: aload 6
ifnull 18
aload 6
invokevirtual java.io.InputStream.close:()V
goto 18
StackMap locals:
StackMap stack: java.lang.Throwable
11: astore 4
aload 6
ifnull 12
aload 6
invokevirtual java.io.InputStream.close:()V
end local 6 StackMap locals:
StackMap stack:
12: aload 4
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
13: astore 5
aload 4
ifnonnull 14
aload 5
astore 4
goto 15
StackMap locals:
StackMap stack:
14: aload 4
aload 5
if_acmpeq 15
aload 4
aload 5
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
15: aload 4
athrow
16: StackMap locals: io.vertx.core.file.impl.FileResolver java.net.URL int java.lang.String
StackMap stack: java.io.IOException
astore 4
start local 4 17: new io.vertx.core.VertxException
dup
aload 4
invokespecial io.vertx.core.VertxException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 4 18: StackMap locals:
StackMap stack:
aload 0
getfield io.vertx.core.file.impl.FileResolver.cache:Lio/vertx/core/file/impl/FileCache;
aload 3
invokevirtual io.vertx.core.file.impl.FileCache.getFile:(Ljava/lang/String;)Ljava/io/File;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lio/vertx/core/file/impl/FileResolver;
0 19 1 url Ljava/net/URL;
0 19 2 isDir Z
1 19 3 file Ljava/lang/String;
7 12 6 is Ljava/io/InputStream;
17 18 4 e Ljava/io/IOException;
Exception table:
from to target type
7 10 11 any
6 13 13 any
1 16 16 Class java.io.IOException
MethodParameters:
Name Flags
url
isDir
private java.lang.ClassLoader getClassLoader();
descriptor: ()Ljava/lang/ClassLoader;
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=2, args_size=1
start local 0 0: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
astore 1
3: StackMap locals: java.lang.ClassLoader
StackMap stack:
aload 1
ifnonnull 5
4: ldc Ljava/lang/Object;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
astore 1
5: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/vertx/core/file/impl/FileResolver;
1 6 1 cl Ljava/lang/ClassLoader;
}
SourceFile: "FileResolver.java"