public class org.jruby.runtime.load.LoadServiceResource
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.runtime.load.LoadServiceResource
super_class: java.lang.Object
{
private final java.net.URL resource;
descriptor: Ljava/net/URL;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.io.File path;
descriptor: Ljava/io/File;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String name;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final boolean absolute;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.lang.String absolutePath;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
public void <init>(java.net.URL, java.lang.String);
descriptor: (Ljava/net/URL;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.jruby.runtime.load.LoadServiceResource.resource:Ljava/net/URL;
2: aload 0
aconst_null
putfield org.jruby.runtime.load.LoadServiceResource.path:Ljava/io/File;
3: aload 0
aload 2
putfield org.jruby.runtime.load.LoadServiceResource.name:Ljava/lang/String;
4: aload 0
iconst_0
putfield org.jruby.runtime.load.LoadServiceResource.absolute:Z
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/runtime/load/LoadServiceResource;
0 6 1 resource Ljava/net/URL;
0 6 2 name Ljava/lang/String;
MethodParameters:
Name Flags
resource
name
public void <init>(java.net.URL, java.lang.String, boolean);
descriptor: (Ljava/net/URL;Ljava/lang/String;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, 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
aload 1
putfield org.jruby.runtime.load.LoadServiceResource.resource:Ljava/net/URL;
2: aload 0
aconst_null
putfield org.jruby.runtime.load.LoadServiceResource.path:Ljava/io/File;
3: aload 0
aload 2
putfield org.jruby.runtime.load.LoadServiceResource.name:Ljava/lang/String;
4: aload 0
iload 3
putfield org.jruby.runtime.load.LoadServiceResource.absolute:Z
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/runtime/load/LoadServiceResource;
0 6 1 resource Ljava/net/URL;
0 6 2 name Ljava/lang/String;
0 6 3 absolute Z
MethodParameters:
Name Flags
resource
name
absolute
public void <init>(java.io.File, java.lang.String);
descriptor: (Ljava/io/File;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield org.jruby.runtime.load.LoadServiceResource.resource:Ljava/net/URL;
2: aload 0
aload 1
putfield org.jruby.runtime.load.LoadServiceResource.path:Ljava/io/File;
3: aload 0
aload 2
putfield org.jruby.runtime.load.LoadServiceResource.name:Ljava/lang/String;
4: aload 0
iconst_0
putfield org.jruby.runtime.load.LoadServiceResource.absolute:Z
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/runtime/load/LoadServiceResource;
0 6 1 path Ljava/io/File;
0 6 2 name Ljava/lang/String;
MethodParameters:
Name Flags
path
name
public void <init>(java.io.File, java.lang.String, boolean);
descriptor: (Ljava/io/File;Ljava/lang/String;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, 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
aconst_null
putfield org.jruby.runtime.load.LoadServiceResource.resource:Ljava/net/URL;
2: aload 0
aload 1
putfield org.jruby.runtime.load.LoadServiceResource.path:Ljava/io/File;
3: aload 0
aload 2
putfield org.jruby.runtime.load.LoadServiceResource.name:Ljava/lang/String;
4: aload 0
iload 3
putfield org.jruby.runtime.load.LoadServiceResource.absolute:Z
5: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/runtime/load/LoadServiceResource;
0 6 1 path Ljava/io/File;
0 6 2 name Ljava/lang/String;
0 6 3 absolute Z
MethodParameters:
Name Flags
path
name
absolute
public java.io.InputStream getInputStream();
descriptor: ()Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
getfield org.jruby.runtime.load.LoadServiceResource.resource:Ljava/net/URL;
ifnull 8
1: aload 0
getfield org.jruby.runtime.load.LoadServiceResource.resource:Ljava/net/URL;
invokevirtual java.net.URL.openStream:()Ljava/io/InputStream;
astore 1
start local 1 2: new org.jruby.runtime.load.LoadServiceResourceInputStream
dup
aload 1
invokespecial org.jruby.runtime.load.LoadServiceResourceInputStream.<init>:(Ljava/io/InputStream;)V
astore 3
3: aload 1
invokevirtual java.io.InputStream.close:()V
4: aload 3
areturn
5: StackMap locals: org.jruby.runtime.load.LoadServiceResource java.io.InputStream
StackMap stack: java.lang.Throwable
astore 2
6: aload 1
invokevirtual java.io.InputStream.close:()V
7: aload 2
athrow
end local 1 8: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.runtime.load.LoadServiceResource.path:Ljava/io/File;
invokevirtual java.io.File.length:()J
l2i
newarray 8
astore 1
start local 1 9: aload 1
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
astore 2
start local 2 10: new java.io.FileInputStream
dup
aload 0
getfield org.jruby.runtime.load.LoadServiceResource.path:Ljava/io/File;
invokespecial java.io.FileInputStream.<init>:(Ljava/io/File;)V
astore 3
start local 3 11: aload 3
invokevirtual java.io.FileInputStream.getChannel:()Ljava/nio/channels/FileChannel;
astore 4
start local 4 12: aload 4
aload 2
invokevirtual java.nio.channels.FileChannel.read:(Ljava/nio/ByteBuffer;)I
pop
13: aload 3
invokevirtual java.io.FileInputStream.close:()V
14: new org.jruby.runtime.load.LoadServiceResourceInputStream
dup
aload 1
invokespecial org.jruby.runtime.load.LoadServiceResourceInputStream.<init>:([B)V
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/jruby/runtime/load/LoadServiceResource;
2 8 1 is Ljava/io/InputStream;
9 15 1 bytes [B
10 15 2 buffer Ljava/nio/ByteBuffer;
11 15 3 fis Ljava/io/FileInputStream;
12 15 4 fc Ljava/nio/channels/FileChannel;
Exception table:
from to target type
2 3 5 any
Exceptions:
throws java.io.IOException
public java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.runtime.load.LoadServiceResource.name:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/runtime/load/LoadServiceResource;
public java.io.File getPath();
descriptor: ()Ljava/io/File;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.runtime.load.LoadServiceResource.path:Ljava/io/File;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/runtime/load/LoadServiceResource;
public java.net.URL getURL();
descriptor: ()Ljava/net/URL;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
getfield org.jruby.runtime.load.LoadServiceResource.resource:Ljava/net/URL;
ifnull 2
1: aload 0
getfield org.jruby.runtime.load.LoadServiceResource.resource:Ljava/net/URL;
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.runtime.load.LoadServiceResource.path:Ljava/io/File;
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
astore 1
start local 1 3: new java.net.URI
dup
ldc "file"
aload 1
aconst_null
invokespecial java.net.URI.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
invokevirtual java.net.URI.toURL:()Ljava/net/URL;
4: areturn
5: StackMap locals: org.jruby.runtime.load.LoadServiceResource java.lang.String
StackMap stack: java.net.URISyntaxException
pop
6: new java.net.URI
dup
ldc "file"
aload 1
invokestatic org.jruby.runtime.load.LoadServiceResource.escapeReservedChars:(Ljava/lang/String;)Ljava/lang/String;
aconst_null
invokespecial java.net.URI.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
invokevirtual java.net.URI.toURL:()Ljava/net/URL;
7: areturn
8: StackMap locals:
StackMap stack: java.net.URISyntaxException
astore 2
start local 2 9: new java.io.IOException
dup
aload 2
invokevirtual java.net.URISyntaxException.getMessage:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/jruby/runtime/load/LoadServiceResource;
3 10 1 absolutePath Ljava/lang/String;
9 10 2 ee Ljava/net/URISyntaxException;
Exception table:
from to target type
3 4 5 Class java.net.URISyntaxException
6 7 8 Class java.net.URISyntaxException
Exceptions:
throws java.io.IOException
private static java.lang.String escapeReservedChars(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
astore 1
start local 1 1: aload 1
ldc "["
ldc "%5b"
invokestatic org.jruby.util.StringSupport.replaceAll:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/CharSequence;
invokeinterface java.lang.CharSequence.toString:()Ljava/lang/String;
astore 1
2: aload 1
ldc "]"
ldc "%5a"
invokestatic org.jruby.util.StringSupport.replaceAll:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/CharSequence;
invokeinterface java.lang.CharSequence.toString:()Ljava/lang/String;
astore 1
3: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 path Ljava/lang/String;
1 4 1 str Ljava/lang/String;
MethodParameters:
Name Flags
path
public java.lang.String getAbsolutePath();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.runtime.load.LoadServiceResource.absolutePath:Ljava/lang/String;
ifnull 1
aload 0
getfield org.jruby.runtime.load.LoadServiceResource.absolutePath:Ljava/lang/String;
areturn
1: StackMap locals:
StackMap stack:
aload 0
new java.io.File
dup
aload 0
invokevirtual org.jruby.runtime.load.LoadServiceResource.getURL:()Ljava/net/URL;
invokestatic org.jruby.util.URLUtil.getPath:(Ljava/net/URL;)Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokevirtual java.io.File.getCanonicalPath:()Ljava/lang/String;
dup_x1
putfield org.jruby.runtime.load.LoadServiceResource.absolutePath:Ljava/lang/String;
2: areturn
3: StackMap locals:
StackMap stack: java.io.IOException
pop
4: aload 0
aload 0
getfield org.jruby.runtime.load.LoadServiceResource.resource:Ljava/net/URL;
invokevirtual java.net.URL.toString:()Ljava/lang/String;
dup_x1
putfield org.jruby.runtime.load.LoadServiceResource.absolutePath:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/jruby/runtime/load/LoadServiceResource;
Exception table:
from to target type
1 2 3 Class java.io.IOException
public boolean isAbsolute();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.runtime.load.LoadServiceResource.absolute:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/runtime/load/LoadServiceResource;
}
SourceFile: "LoadServiceResource.java"