class org.apache.tomcat.util.file.ConfigurationSource$1 implements org.apache.tomcat.util.file.ConfigurationSource
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.apache.tomcat.util.file.ConfigurationSource$1
super_class: java.lang.Object
{
protected final java.io.File userDir;
descriptor: Ljava/io/File;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final java.net.URI userDirUri;
descriptor: Ljava/net/URI;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=1, args_size=1
start local 0 // org.apache.tomcat.util.file.ConfigurationSource$1 this
0: .line 38
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 39
aload 0 /* this */
new java.io.File
dup
ldc "user.dir"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
putfield org.apache.tomcat.util.file.ConfigurationSource$1.userDir:Ljava/io/File;
2: .line 40
aload 0 /* this */
aload 0 /* this */
getfield org.apache.tomcat.util.file.ConfigurationSource$1.userDir:Ljava/io/File;
invokevirtual java.io.File.toURI:()Ljava/net/URI;
putfield org.apache.tomcat.util.file.ConfigurationSource$1.userDirUri:Ljava/net/URI;
3: .line 38
return
end local 0 // org.apache.tomcat.util.file.ConfigurationSource$1 this
LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/tomcat/util/file/ConfigurationSource$1;
public org.apache.tomcat.util.file.ConfigurationSource$Resource getResource(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/apache/tomcat/util/file/ConfigurationSource$Resource;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=2
start local 0 // org.apache.tomcat.util.file.ConfigurationSource$1 this
start local 1 // java.lang.String name
0: .line 43
new java.io.File
dup
aload 1 /* name */
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 2 /* f */
start local 2 // java.io.File f
1: .line 44
aload 2 /* f */
invokevirtual java.io.File.isAbsolute:()Z
ifne 3
2: .line 45
new java.io.File
dup
aload 0 /* this */
getfield org.apache.tomcat.util.file.ConfigurationSource$1.userDir:Ljava/io/File;
aload 1 /* name */
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 2 /* f */
3: .line 47
StackMap locals: java.io.File
StackMap stack:
aload 2 /* f */
invokevirtual java.io.File.isFile:()Z
ifeq 6
4: .line 48
new java.io.FileInputStream
dup
aload 2 /* f */
invokespecial java.io.FileInputStream.<init>:(Ljava/io/File;)V
astore 3 /* fis */
start local 3 // java.io.FileInputStream fis
5: .line 49
new org.apache.tomcat.util.file.ConfigurationSource$Resource
dup
aload 3 /* fis */
aload 2 /* f */
invokevirtual java.io.File.toURI:()Ljava/net/URI;
invokespecial org.apache.tomcat.util.file.ConfigurationSource$Resource.<init>:(Ljava/io/InputStream;Ljava/net/URI;)V
areturn
end local 3 // java.io.FileInputStream fis
6: .line 51
StackMap locals:
StackMap stack:
aconst_null
astore 3 /* uri */
start local 3 // java.net.URI uri
7: .line 53
aload 0 /* this */
aload 1 /* name */
invokevirtual org.apache.tomcat.util.file.ConfigurationSource$1.getURI:(Ljava/lang/String;)Ljava/net/URI;
astore 3 /* uri */
8: .line 54
goto 11
StackMap locals: org.apache.tomcat.util.file.ConfigurationSource$1 java.lang.String java.io.File java.net.URI
StackMap stack: java.lang.IllegalArgumentException
9: pop
10: .line 55
new java.io.FileNotFoundException
dup
aload 1 /* name */
invokespecial java.io.FileNotFoundException.<init>:(Ljava/lang/String;)V
athrow
11: .line 58
StackMap locals:
StackMap stack:
aload 3 /* uri */
invokevirtual java.net.URI.toURL:()Ljava/net/URL;
astore 4 /* url */
start local 4 // java.net.URL url
12: .line 59
new org.apache.tomcat.util.file.ConfigurationSource$Resource
dup
aload 4 /* url */
invokevirtual java.net.URL.openConnection:()Ljava/net/URLConnection;
invokevirtual java.net.URLConnection.getInputStream:()Ljava/io/InputStream;
aload 3 /* uri */
invokespecial org.apache.tomcat.util.file.ConfigurationSource$Resource.<init>:(Ljava/io/InputStream;Ljava/net/URI;)V
13: areturn
end local 4 // java.net.URL url
14: .line 60
StackMap locals:
StackMap stack: java.net.MalformedURLException
pop
15: .line 61
new java.io.FileNotFoundException
dup
aload 1 /* name */
invokespecial java.io.FileNotFoundException.<init>:(Ljava/lang/String;)V
athrow
end local 3 // java.net.URI uri
end local 2 // java.io.File f
end local 1 // java.lang.String name
end local 0 // org.apache.tomcat.util.file.ConfigurationSource$1 this
LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/apache/tomcat/util/file/ConfigurationSource$1;
0 16 1 name Ljava/lang/String;
1 16 2 f Ljava/io/File;
5 6 3 fis Ljava/io/FileInputStream;
7 16 3 uri Ljava/net/URI;
12 14 4 url Ljava/net/URL;
Exception table:
from to target type
7 8 9 Class java.lang.IllegalArgumentException
11 13 14 Class java.net.MalformedURLException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
name
public java.net.URI getURI(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/net/URI;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 // org.apache.tomcat.util.file.ConfigurationSource$1 this
start local 1 // java.lang.String name
0: .line 66
new java.io.File
dup
aload 1 /* name */
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 2 /* f */
start local 2 // java.io.File f
1: .line 67
aload 2 /* f */
invokevirtual java.io.File.isAbsolute:()Z
ifne 3
2: .line 68
new java.io.File
dup
aload 0 /* this */
getfield org.apache.tomcat.util.file.ConfigurationSource$1.userDir:Ljava/io/File;
aload 1 /* name */
invokespecial java.io.File.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 2 /* f */
3: .line 70
StackMap locals: java.io.File
StackMap stack:
aload 2 /* f */
invokevirtual java.io.File.isFile:()Z
ifeq 5
4: .line 71
aload 2 /* f */
invokevirtual java.io.File.toURI:()Ljava/net/URI;
areturn
5: .line 73
StackMap locals:
StackMap stack:
aload 0 /* this */
getfield org.apache.tomcat.util.file.ConfigurationSource$1.userDirUri:Ljava/net/URI;
aload 1 /* name */
invokevirtual java.net.URI.resolve:(Ljava/lang/String;)Ljava/net/URI;
areturn
end local 2 // java.io.File f
end local 1 // java.lang.String name
end local 0 // org.apache.tomcat.util.file.ConfigurationSource$1 this
LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/tomcat/util/file/ConfigurationSource$1;
0 6 1 name Ljava/lang/String;
1 6 2 f Ljava/io/File;
MethodParameters:
Name Flags
name
}
SourceFile: "ConfigurationSource.java"
EnclosingMethod: org.apache.tomcat.util.file.ConfigurationSource
NestHost: org.apache.tomcat.util.file.ConfigurationSource
InnerClasses:
org.apache.tomcat.util.file.ConfigurationSource$1
public Resource = org.apache.tomcat.util.file.ConfigurationSource$Resource of org.apache.tomcat.util.file.ConfigurationSource