public abstract class org.springframework.util.ResourceUtils
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.springframework.util.ResourceUtils
super_class: java.lang.Object
{
public static final java.lang.String CLASSPATH_URL_PREFIX;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "classpath:"
public static final java.lang.String FILE_URL_PREFIX;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "file:"
public static final java.lang.String JAR_URL_PREFIX;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "jar:"
public static final java.lang.String WAR_URL_PREFIX;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "war:"
public static final java.lang.String URL_PROTOCOL_FILE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "file"
public static final java.lang.String URL_PROTOCOL_JAR;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "jar"
public static final java.lang.String URL_PROTOCOL_WAR;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "war"
public static final java.lang.String URL_PROTOCOL_ZIP;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "zip"
public static final java.lang.String URL_PROTOCOL_WSJAR;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "wsjar"
public static final java.lang.String URL_PROTOCOL_VFSZIP;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "vfszip"
public static final java.lang.String URL_PROTOCOL_VFSFILE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "vfsfile"
public static final java.lang.String URL_PROTOCOL_VFS;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "vfs"
public static final java.lang.String JAR_FILE_EXTENSION;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: ".jar"
public static final java.lang.String JAR_URL_SEPARATOR;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "!/"
public static final java.lang.String WAR_URL_SEPARATOR;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "*/"
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
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 Lorg/springframework/util/ResourceUtils;
public static boolean isUrl(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
ldc "classpath:"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 4
3: iconst_1
ireturn
4: StackMap locals:
StackMap stack:
new java.net.URL
aload 0
invokespecial java.net.URL.<init>:(Ljava/lang/String;)V
5: iconst_1
ireturn
6: StackMap locals:
StackMap stack: java.net.MalformedURLException
pop
7: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 resourceLocation Ljava/lang/String;
Exception table:
from to target type
4 5 6 Class java.net.MalformedURLException
RuntimeVisibleParameterAnnotations:
0:
org.springframework.lang.Nullable()
MethodParameters:
Name Flags
resourceLocation
public static java.net.URL getURL(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/net/URL;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=1
start local 0 0: aload 0
ldc "Resource location must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
1: aload 0
ldc "classpath:"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 13
2: aload 0
ldc "classpath:"
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 1
start local 1 3: invokestatic org.springframework.util.ClassUtils.getDefaultClassLoader:()Ljava/lang/ClassLoader;
astore 2
start local 2 4: aload 2
ifnull 5
aload 2
aload 1
invokevirtual java.lang.ClassLoader.getResource:(Ljava/lang/String;)Ljava/net/URL;
goto 6
StackMap locals: java.lang.String java.lang.ClassLoader
StackMap stack:
5: aload 1
invokestatic java.lang.ClassLoader.getSystemResource:(Ljava/lang/String;)Ljava/net/URL;
StackMap locals:
StackMap stack: java.net.URL
6: astore 3
start local 3 7: aload 3
ifnonnull 12
8: new java.lang.StringBuilder
dup
ldc "class path resource ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 4
start local 4 9: new java.io.FileNotFoundException
dup
new java.lang.StringBuilder
dup
aload 4
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
10: ldc " cannot be resolved to URL because it does not exist"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
11: invokespecial java.io.FileNotFoundException.<init>:(Ljava/lang/String;)V
athrow
end local 4 12: StackMap locals: java.net.URL
StackMap stack:
aload 3
areturn
end local 3 end local 2 end local 1 13: StackMap locals:
StackMap stack:
new java.net.URL
dup
aload 0
invokespecial java.net.URL.<init>:(Ljava/lang/String;)V
14: areturn
15: StackMap locals:
StackMap stack: java.net.MalformedURLException
pop
16: new java.io.File
dup
aload 0
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokevirtual java.io.File.toURI:()Ljava/net/URI;
invokevirtual java.net.URI.toURL:()Ljava/net/URL;
17: areturn
18: StackMap locals:
StackMap stack: java.net.MalformedURLException
pop
19: new java.io.FileNotFoundException
dup
new java.lang.StringBuilder
dup
ldc "Resource location ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
20: ldc "] is neither a URL not a well-formed file path"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
21: invokespecial java.io.FileNotFoundException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 resourceLocation Ljava/lang/String;
3 13 1 path Ljava/lang/String;
4 13 2 cl Ljava/lang/ClassLoader;
7 13 3 url Ljava/net/URL;
9 12 4 description Ljava/lang/String;
Exception table:
from to target type
13 14 15 Class java.net.MalformedURLException
16 17 18 Class java.net.MalformedURLException
Exceptions:
throws java.io.FileNotFoundException
MethodParameters:
Name Flags
resourceLocation
public static java.io.File getFile(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/io/File;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=1
start local 0 0: aload 0
ldc "Resource location must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
1: aload 0
ldc "classpath:"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 13
2: aload 0
ldc "classpath:"
invokevirtual java.lang.String.length:()I
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 1
start local 1 3: new java.lang.StringBuilder
dup
ldc "class path resource ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
start local 2 4: invokestatic org.springframework.util.ClassUtils.getDefaultClassLoader:()Ljava/lang/ClassLoader;
astore 3
start local 3 5: aload 3
ifnull 6
aload 3
aload 1
invokevirtual java.lang.ClassLoader.getResource:(Ljava/lang/String;)Ljava/net/URL;
goto 7
StackMap locals: java.lang.String java.lang.String java.lang.ClassLoader
StackMap stack:
6: aload 1
invokestatic java.lang.ClassLoader.getSystemResource:(Ljava/lang/String;)Ljava/net/URL;
StackMap locals:
StackMap stack: java.net.URL
7: astore 4
start local 4 8: aload 4
ifnonnull 12
9: new java.io.FileNotFoundException
dup
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
10: ldc " cannot be resolved to absolute file path because it does not exist"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
11: invokespecial java.io.FileNotFoundException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals: java.net.URL
StackMap stack:
aload 4
aload 2
invokestatic org.springframework.util.ResourceUtils.getFile:(Ljava/net/URL;Ljava/lang/String;)Ljava/io/File;
areturn
end local 4 end local 3 end local 2 end local 1 13: StackMap locals: java.lang.String
StackMap stack:
new java.net.URL
dup
aload 0
invokespecial java.net.URL.<init>:(Ljava/lang/String;)V
invokestatic org.springframework.util.ResourceUtils.getFile:(Ljava/net/URL;)Ljava/io/File;
14: areturn
15: StackMap locals:
StackMap stack: java.net.MalformedURLException
pop
16: new java.io.File
dup
aload 0
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 resourceLocation Ljava/lang/String;
3 13 1 path Ljava/lang/String;
4 13 2 description Ljava/lang/String;
5 13 3 cl Ljava/lang/ClassLoader;
8 13 4 url Ljava/net/URL;
Exception table:
from to target type
13 14 15 Class java.net.MalformedURLException
Exceptions:
throws java.io.FileNotFoundException
MethodParameters:
Name Flags
resourceLocation
public static java.io.File getFile(java.net.URL);
descriptor: (Ljava/net/URL;)Ljava/io/File;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "URL"
invokestatic org.springframework.util.ResourceUtils.getFile:(Ljava/net/URL;Ljava/lang/String;)Ljava/io/File;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 resourceUrl Ljava/net/URL;
Exceptions:
throws java.io.FileNotFoundException
MethodParameters:
Name Flags
resourceUrl
public static java.io.File getFile(java.net.URL, java.lang.String);
descriptor: (Ljava/net/URL;Ljava/lang/String;)Ljava/io/File;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ldc "Resource URL must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
1: ldc "file"
aload 0
invokevirtual java.net.URL.getProtocol:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 7
2: new java.io.FileNotFoundException
dup
3: new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " cannot be resolved to absolute file path "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: ldc "because it does not reside in the file system: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
5: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
6: invokespecial java.io.FileNotFoundException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
new java.io.File
dup
aload 0
invokestatic org.springframework.util.ResourceUtils.toURI:(Ljava/net/URL;)Ljava/net/URI;
invokevirtual java.net.URI.getSchemeSpecificPart:()Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
8: areturn
9: StackMap locals:
StackMap stack: java.net.URISyntaxException
pop
10: new java.io.File
dup
aload 0
invokevirtual java.net.URL.getFile:()Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 resourceUrl Ljava/net/URL;
0 11 1 description Ljava/lang/String;
Exception table:
from to target type
7 8 9 Class java.net.URISyntaxException
Exceptions:
throws java.io.FileNotFoundException
MethodParameters:
Name Flags
resourceUrl
description
public static java.io.File getFile(java.net.URI);
descriptor: (Ljava/net/URI;)Ljava/io/File;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "URI"
invokestatic org.springframework.util.ResourceUtils.getFile:(Ljava/net/URI;Ljava/lang/String;)Ljava/io/File;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 resourceUri Ljava/net/URI;
Exceptions:
throws java.io.FileNotFoundException
MethodParameters:
Name Flags
resourceUri
public static java.io.File getFile(java.net.URI, java.lang.String);
descriptor: (Ljava/net/URI;Ljava/lang/String;)Ljava/io/File;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
ldc "Resource URI must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
1: ldc "file"
aload 0
invokevirtual java.net.URI.getScheme:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 7
2: new java.io.FileNotFoundException
dup
3: new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc " cannot be resolved to absolute file path "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: ldc "because it does not reside in the file system: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
5: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
6: invokespecial java.io.FileNotFoundException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
new java.io.File
dup
aload 0
invokevirtual java.net.URI.getSchemeSpecificPart:()Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 resourceUri Ljava/net/URI;
0 8 1 description Ljava/lang/String;
Exceptions:
throws java.io.FileNotFoundException
MethodParameters:
Name Flags
resourceUri
description
public static boolean isFileURL(java.net.URL);
descriptor: (Ljava/net/URL;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.net.URL.getProtocol:()Ljava/lang/String;
astore 1
start local 1 1: ldc "file"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 4
ldc "vfsfile"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 4
2: ldc "vfs"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 4
3: iconst_0
ireturn
StackMap locals: java.lang.String
StackMap stack:
4: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 url Ljava/net/URL;
1 5 1 protocol Ljava/lang/String;
MethodParameters:
Name Flags
url
public static boolean isJarURL(java.net.URL);
descriptor: (Ljava/net/URL;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual java.net.URL.getProtocol:()Ljava/lang/String;
astore 1
start local 1 1: ldc "jar"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 5
ldc "war"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 5
2: ldc "zip"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 5
ldc "vfszip"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 5
3: ldc "wsjar"
aload 1
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 5
4: iconst_0
ireturn
StackMap locals: java.lang.String
StackMap stack:
5: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 url Ljava/net/URL;
1 6 1 protocol Ljava/lang/String;
MethodParameters:
Name Flags
url
public static boolean isJarFileURL(java.net.URL);
descriptor: (Ljava/net/URL;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: ldc "file"
aload 0
invokevirtual java.net.URL.getProtocol:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 3
1: aload 0
invokevirtual java.net.URL.getPath:()Ljava/lang/String;
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
ldc ".jar"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 3
2: iconst_1
ireturn
StackMap locals:
StackMap stack:
3: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 url Ljava/net/URL;
MethodParameters:
Name Flags
url
public static java.net.URL (java.net.URL);
descriptor: (Ljava/net/URL;)Ljava/net/URL;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual java.net.URL.getFile:()Ljava/lang/String;
astore 1
start local 1 1: aload 1
ldc "!/"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 2
start local 2 2: iload 2
iconst_m1
if_icmpeq 10
3: aload 1
iconst_0
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 3
start local 3 4: new java.net.URL
dup
aload 3
invokespecial java.net.URL.<init>:(Ljava/lang/String;)V
5: areturn
6: StackMap locals: java.net.URL java.lang.String int java.lang.String
StackMap stack: java.net.MalformedURLException
pop
7: aload 3
ldc "/"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 9
8: new java.lang.StringBuilder
dup
ldc "/"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
9: StackMap locals:
StackMap stack:
new java.net.URL
dup
new java.lang.StringBuilder
dup
ldc "file:"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.net.URL.<init>:(Ljava/lang/String;)V
areturn
end local 3 10: StackMap locals:
StackMap stack:
aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 jarUrl Ljava/net/URL;
1 11 1 urlFile Ljava/lang/String;
2 11 2 separatorIndex I
4 10 3 jarFile Ljava/lang/String;
Exception table:
from to target type
4 5 6 Class java.net.MalformedURLException
Exceptions:
throws java.net.MalformedURLException
MethodParameters:
Name Flags
jarUrl
public static java.net.URL (java.net.URL);
descriptor: (Ljava/net/URL;)Ljava/net/URL;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=5, args_size=1
start local 0 0: aload 0
invokevirtual java.net.URL.getFile:()Ljava/lang/String;
astore 1
start local 1 1: aload 1
ldc "*/"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 2
start local 2 2: iload 2
iconst_m1
if_icmpeq 9
3: aload 1
iconst_0
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 3
start local 3 4: ldc "war"
aload 0
invokevirtual java.net.URL.getProtocol:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 6
5: new java.net.URL
dup
aload 3
invokespecial java.net.URL.<init>:(Ljava/lang/String;)V
areturn
6: StackMap locals: java.lang.String int java.lang.String
StackMap stack:
aload 3
ldc "war:"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 4
start local 4 7: iload 4
iconst_m1
if_icmpeq 9
8: new java.net.URL
dup
aload 3
iload 4
ldc "war:"
invokevirtual java.lang.String.length:()I
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokespecial java.net.URL.<init>:(Ljava/lang/String;)V
areturn
end local 4 end local 3 9: StackMap locals:
StackMap stack:
aload 0
invokestatic org.springframework.util.ResourceUtils.extractJarFileURL:(Ljava/net/URL;)Ljava/net/URL;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 jarUrl Ljava/net/URL;
1 10 1 urlFile Ljava/lang/String;
2 10 2 endIndex I
4 9 3 warFile Ljava/lang/String;
7 9 4 startIndex I
Exceptions:
throws java.net.MalformedURLException
MethodParameters:
Name Flags
jarUrl
public static java.net.URI toURI(java.net.URL);
descriptor: (Ljava/net/URL;)Ljava/net/URI;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.net.URL.toString:()Ljava/lang/String;
invokestatic org.springframework.util.ResourceUtils.toURI:(Ljava/lang/String;)Ljava/net/URI;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 url Ljava/net/URL;
Exceptions:
throws java.net.URISyntaxException
MethodParameters:
Name Flags
url
public static java.net.URI toURI(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/net/URI;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: new java.net.URI
dup
aload 0
ldc " "
ldc "%20"
invokestatic org.springframework.util.StringUtils.replace:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokespecial java.net.URI.<init>:(Ljava/lang/String;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 location Ljava/lang/String;
Exceptions:
throws java.net.URISyntaxException
MethodParameters:
Name Flags
location
public static void useCachesIfNecessary(java.net.URLConnection);
descriptor: (Ljava/net/URLConnection;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getSimpleName:()Ljava/lang/String;
ldc "JNLP"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
invokevirtual java.net.URLConnection.setUseCaches:(Z)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 con Ljava/net/URLConnection;
MethodParameters:
Name Flags
con
}
SourceFile: "ResourceUtils.java"