class sun.net.www.protocol.jar.JarFileFactory implements sun.net.www.protocol.jar.URLJarFile$URLJarFileCloseController
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: sun.net.www.protocol.jar.JarFileFactory
super_class: java.lang.Object
{
private static final java.util.HashMap<java.lang.String, java.util.jar.JarFile> fileCache;
descriptor: Ljava/util/HashMap;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/HashMap<Ljava/lang/String;Ljava/util/jar/JarFile;>;
private static final java.util.HashMap<java.util.jar.JarFile, java.net.URL> urlCache;
descriptor: Ljava/util/HashMap;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/HashMap<Ljava/util/jar/JarFile;Ljava/net/URL;>;
private static final sun.net.www.protocol.jar.JarFileFactory instance;
descriptor: Lsun/net/www/protocol/jar/JarFileFactory;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Lsun/net/www/protocol/jar/JarFileFactory;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic sun.net.www.protocol.jar.JarFileFactory.$assertionsDisabled:Z
3: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putstatic sun.net.www.protocol.jar.JarFileFactory.fileCache:Ljava/util/HashMap;
4: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putstatic sun.net.www.protocol.jar.JarFileFactory.urlCache:Ljava/util/HashMap;
5: new sun.net.www.protocol.jar.JarFileFactory
dup
invokespecial sun.net.www.protocol.jar.JarFileFactory.<init>:()V
putstatic sun.net.www.protocol.jar.JarFileFactory.instance:Lsun/net/www/protocol/jar/JarFileFactory;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/www/protocol/jar/JarFileFactory;
public static sun.net.www.protocol.jar.JarFileFactory getInstance();
descriptor: ()Lsun/net/www/protocol/jar/JarFileFactory;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic sun.net.www.protocol.jar.JarFileFactory.instance:Lsun/net/www/protocol/jar/JarFileFactory;
areturn
LocalVariableTable:
Start End Slot Name Signature
java.net.URLConnection getConnection(java.util.jar.JarFile);
descriptor: (Ljava/util/jar/JarFile;)Ljava/net/URLConnection;
flags: (0x0000)
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: getstatic sun.net.www.protocol.jar.JarFileFactory.instance:Lsun/net/www/protocol/jar/JarFileFactory;
dup
astore 3
monitorenter
1: getstatic sun.net.www.protocol.jar.JarFileFactory.urlCache:Ljava/util/HashMap;
aload 1
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.net.URL
astore 2
start local 2 2: aload 3
monitorexit
3: goto 6
end local 2 StackMap locals: sun.net.www.protocol.jar.JarFileFactory java.util.jar.JarFile top sun.net.www.protocol.jar.JarFileFactory
StackMap stack: java.lang.Throwable
4: aload 3
monitorexit
5: athrow
start local 2 6: StackMap locals: sun.net.www.protocol.jar.JarFileFactory java.util.jar.JarFile java.net.URL
StackMap stack:
aload 2
ifnull 8
7: aload 2
invokevirtual java.net.URL.openConnection:()Ljava/net/URLConnection;
areturn
8: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/net/www/protocol/jar/JarFileFactory;
0 9 1 jarFile Ljava/util/jar/JarFile;
2 4 2 u Ljava/net/URL;
6 9 2 u Ljava/net/URL;
Exception table:
from to target type
1 3 4 any
4 5 4 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
jarFile
public java.util.jar.JarFile get(java.net.URL);
descriptor: (Ljava/net/URL;)Ljava/util/jar/JarFile;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_1
invokevirtual sun.net.www.protocol.jar.JarFileFactory.get:(Ljava/net/URL;Z)Ljava/util/jar/JarFile;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/www/protocol/jar/JarFileFactory;
0 1 1 url Ljava/net/URL;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
url
java.util.jar.JarFile get(java.net.URL, boolean);
descriptor: (Ljava/net/URL;Z)Ljava/util/jar/JarFile;
flags: (0x0000)
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: iload 2
ifeq 22
1: getstatic sun.net.www.protocol.jar.JarFileFactory.instance:Lsun/net/www/protocol/jar/JarFileFactory;
dup
astore 5
monitorenter
2: aload 0
aload 1
invokevirtual sun.net.www.protocol.jar.JarFileFactory.getCachedJarFile:(Ljava/net/URL;)Ljava/util/jar/JarFile;
astore 3
start local 3 3: aload 5
monitorexit
4: goto 7
end local 3 StackMap locals: sun.net.www.protocol.jar.JarFileFactory java.net.URL int top top sun.net.www.protocol.jar.JarFileFactory
StackMap stack: java.lang.Throwable
5: aload 5
monitorexit
6: athrow
start local 3 7: StackMap locals: sun.net.www.protocol.jar.JarFileFactory java.net.URL int java.util.jar.JarFile
StackMap stack:
aload 3
ifnonnull 23
8: aload 1
aload 0
invokestatic sun.net.www.protocol.jar.URLJarFile.getJarFile:(Ljava/net/URL;Lsun/net/www/protocol/jar/URLJarFile$URLJarFileCloseController;)Ljava/util/jar/JarFile;
astore 4
start local 4 9: getstatic sun.net.www.protocol.jar.JarFileFactory.instance:Lsun/net/www/protocol/jar/JarFileFactory;
dup
astore 5
monitorenter
10: aload 0
aload 1
invokevirtual sun.net.www.protocol.jar.JarFileFactory.getCachedJarFile:(Ljava/net/URL;)Ljava/util/jar/JarFile;
astore 3
11: aload 3
ifnonnull 16
12: getstatic sun.net.www.protocol.jar.JarFileFactory.fileCache:Ljava/util/HashMap;
aload 0
aload 1
invokevirtual sun.net.www.protocol.jar.JarFileFactory.urlKey:(Ljava/net/URL;)Ljava/lang/String;
aload 4
invokevirtual java.util.HashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
13: getstatic sun.net.www.protocol.jar.JarFileFactory.urlCache:Ljava/util/HashMap;
aload 4
aload 1
invokevirtual java.util.HashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
14: aload 4
astore 3
15: goto 18
16: StackMap locals: java.util.jar.JarFile sun.net.www.protocol.jar.JarFileFactory
StackMap stack:
aload 4
ifnull 18
17: aload 4
invokevirtual java.util.jar.JarFile.close:()V
18: StackMap locals:
StackMap stack:
aload 5
monitorexit
19: goto 23
StackMap locals:
StackMap stack: java.lang.Throwable
20: aload 5
monitorexit
21: athrow
end local 4 end local 3 22: StackMap locals:
StackMap stack:
aload 1
aload 0
invokestatic sun.net.www.protocol.jar.URLJarFile.getJarFile:(Ljava/net/URL;Lsun/net/www/protocol/jar/URLJarFile$URLJarFileCloseController;)Ljava/util/jar/JarFile;
astore 3
start local 3 23: StackMap locals: java.util.jar.JarFile
StackMap stack:
aload 3
ifnonnull 25
24: new java.io.FileNotFoundException
dup
aload 1
invokevirtual java.net.URL.toString:()Ljava/lang/String;
invokespecial java.io.FileNotFoundException.<init>:(Ljava/lang/String;)V
athrow
25: StackMap locals:
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lsun/net/www/protocol/jar/JarFileFactory;
0 26 1 url Ljava/net/URL;
0 26 2 useCaches Z
3 5 3 result Ljava/util/jar/JarFile;
7 22 3 result Ljava/util/jar/JarFile;
23 26 3 result Ljava/util/jar/JarFile;
9 22 4 local_result Ljava/util/jar/JarFile;
Exception table:
from to target type
2 4 5 any
5 6 5 any
10 19 20 any
20 21 20 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
url
useCaches
public void close(java.util.jar.JarFile);
descriptor: (Ljava/util/jar/JarFile;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: getstatic sun.net.www.protocol.jar.JarFileFactory.instance:Lsun/net/www/protocol/jar/JarFileFactory;
dup
astore 2
monitorenter
1: getstatic sun.net.www.protocol.jar.JarFileFactory.urlCache:Ljava/util/HashMap;
aload 1
invokevirtual java.util.HashMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.net.URL
astore 3
start local 3 2: aload 3
ifnull 4
3: getstatic sun.net.www.protocol.jar.JarFileFactory.fileCache:Ljava/util/HashMap;
aload 0
aload 3
invokevirtual sun.net.www.protocol.jar.JarFileFactory.urlKey:(Ljava/net/URL;)Ljava/lang/String;
invokevirtual java.util.HashMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 3 4: StackMap locals: sun.net.www.protocol.jar.JarFileFactory
StackMap stack:
aload 2
monitorexit
5: goto 8
StackMap locals:
StackMap stack: java.lang.Throwable
6: aload 2
monitorexit
7: athrow
8: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/net/www/protocol/jar/JarFileFactory;
0 9 1 jarFile Ljava/util/jar/JarFile;
2 4 3 urlRemoved Ljava/net/URL;
Exception table:
from to target type
1 5 6 any
6 7 6 any
MethodParameters:
Name Flags
jarFile
private java.util.jar.JarFile getCachedJarFile(java.net.URL);
descriptor: (Ljava/net/URL;)Ljava/util/jar/JarFile;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: getstatic sun.net.www.protocol.jar.JarFileFactory.$assertionsDisabled:Z
ifne 1
getstatic sun.net.www.protocol.jar.JarFileFactory.instance:Lsun/net/www/protocol/jar/JarFileFactory;
invokestatic java.lang.Thread.holdsLock:(Ljava/lang/Object;)Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
getstatic sun.net.www.protocol.jar.JarFileFactory.fileCache:Ljava/util/HashMap;
aload 0
aload 1
invokevirtual sun.net.www.protocol.jar.JarFileFactory.urlKey:(Ljava/net/URL;)Ljava/lang/String;
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.jar.JarFile
astore 2
start local 2 2: aload 2
ifnull 20
3: aload 0
aload 2
invokevirtual sun.net.www.protocol.jar.JarFileFactory.getPermission:(Ljava/util/jar/JarFile;)Ljava/security/Permission;
astore 3
start local 3 4: aload 3
ifnull 20
5: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 4
start local 4 6: aload 4
ifnull 20
7: aload 4
aload 3
invokevirtual java.lang.SecurityManager.checkPermission:(Ljava/security/Permission;)V
8: goto 20
StackMap locals: sun.net.www.protocol.jar.JarFileFactory java.net.URL java.util.jar.JarFile java.security.Permission java.lang.SecurityManager
StackMap stack: java.lang.SecurityException
9: astore 5
start local 5 10: aload 3
instanceof java.io.FilePermission
ifeq 14
11: aload 3
invokevirtual java.security.Permission.getActions:()Ljava/lang/String;
ldc "read"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
iconst_m1
if_icmpeq 14
12: aload 4
aload 3
invokevirtual java.security.Permission.getName:()Ljava/lang/String;
invokevirtual java.lang.SecurityManager.checkRead:(Ljava/lang/String;)V
13: goto 20
StackMap locals: java.lang.SecurityException
StackMap stack:
14: aload 3
instanceof java.net.SocketPermission
15: ifeq 19
16: aload 3
invokevirtual java.security.Permission.getActions:()Ljava/lang/String;
ldc "connect"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
iconst_m1
if_icmpeq 19
17: aload 4
aload 1
invokevirtual java.net.URL.getHost:()Ljava/lang/String;
aload 1
invokevirtual java.net.URL.getPort:()I
invokevirtual java.lang.SecurityManager.checkConnect:(Ljava/lang/String;I)V
18: goto 20
19: StackMap locals:
StackMap stack:
aload 5
athrow
end local 5 end local 4 end local 3 20: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lsun/net/www/protocol/jar/JarFileFactory;
0 21 1 url Ljava/net/URL;
2 21 2 result Ljava/util/jar/JarFile;
4 20 3 perm Ljava/security/Permission;
6 20 4 sm Ljava/lang/SecurityManager;
10 20 5 se Ljava/lang/SecurityException;
Exception table:
from to target type
7 8 9 Class java.lang.SecurityException
MethodParameters:
Name Flags
url
private java.lang.String urlKey(java.net.URL);
descriptor: (Ljava/net/URL;)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokestatic sun.net.util.URLUtil.urlNoFragString:(Ljava/net/URL;)Ljava/lang/String;
astore 2
start local 2 1: ldc "runtime"
aload 1
invokevirtual java.net.URL.getRef:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 2
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 "#runtime"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
2: StackMap locals: java.lang.String
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/net/www/protocol/jar/JarFileFactory;
0 3 1 url Ljava/net/URL;
1 3 2 urlstr Ljava/lang/String;
MethodParameters:
Name Flags
url
private java.security.Permission getPermission(java.util.jar.JarFile);
descriptor: (Ljava/util/jar/JarFile;)Ljava/security/Permission;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual sun.net.www.protocol.jar.JarFileFactory.getConnection:(Ljava/util/jar/JarFile;)Ljava/net/URLConnection;
astore 2
start local 2 1: aload 2
ifnull 5
2: aload 2
invokevirtual java.net.URLConnection.getPermission:()Ljava/security/Permission;
3: areturn
end local 2 4: StackMap locals:
StackMap stack: java.io.IOException
pop
5: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/net/www/protocol/jar/JarFileFactory;
0 6 1 jarFile Ljava/util/jar/JarFile;
1 4 2 uc Ljava/net/URLConnection;
Exception table:
from to target type
0 3 4 Class java.io.IOException
MethodParameters:
Name Flags
jarFile
}
SourceFile: "JarFileFactory.java"
InnerClasses:
public abstract URLJarFileCloseController = sun.net.www.protocol.jar.URLJarFile$URLJarFileCloseController of sun.net.www.protocol.jar.URLJarFile