class org.jruby.util.JarFileResource extends org.jruby.util.JarResource
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.jruby.util.JarFileResource
super_class: org.jruby.util.JarResource
{
private final org.jruby.util.JarCache$JarIndex index;
descriptor: Lorg/jruby/util/JarCache$JarIndex;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.jar.JarEntry entry;
descriptor: Ljava/util/jar/JarEntry;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(java.lang.String, boolean, org.jruby.util.JarCache$JarIndex, java.util.jar.JarEntry);
descriptor: (Ljava/lang/String;ZLorg/jruby/util/JarCache$JarIndex;Ljava/util/jar/JarEntry;)V
flags: (0x0000)
Code:
stack=3, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
iload 2
invokespecial org.jruby.util.JarResource.<init>:(Ljava/lang/String;Z)V
1: aload 0
aload 3
putfield org.jruby.util.JarFileResource.index:Lorg/jruby/util/JarCache$JarIndex;
2: aload 0
aload 4
putfield org.jruby.util.JarFileResource.entry:Ljava/util/jar/JarEntry;
3: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/jruby/util/JarFileResource;
0 4 1 jarPath Ljava/lang/String;
0 4 2 rootSlashPrefix Z
0 4 3 index Lorg/jruby/util/JarCache$JarIndex;
0 4 4 entry Ljava/util/jar/JarEntry;
MethodParameters:
Name Flags
jarPath
rootSlashPrefix
index
entry
public java.lang.String entryName();
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.util.JarFileResource.entry:Ljava/util/jar/JarEntry;
invokevirtual java.util.jar.JarEntry.getName:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/JarFileResource;
public boolean isDirectory();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/JarFileResource;
public boolean isFile();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/JarFileResource;
public long length();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.JarFileResource.entry:Ljava/util/jar/JarEntry;
invokevirtual java.util.jar.JarEntry.getSize:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/JarFileResource;
public java.nio.file.attribute.FileTime creationTime();
descriptor: ()Ljava/nio/file/attribute/FileTime;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.JarFileResource.entry:Ljava/util/jar/JarEntry;
invokevirtual java.util.jar.JarEntry.getCreationTime:()Ljava/nio/file/attribute/FileTime;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/JarFileResource;
public java.nio.file.attribute.FileTime lastAccessTime();
descriptor: ()Ljava/nio/file/attribute/FileTime;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.JarFileResource.entry:Ljava/util/jar/JarEntry;
invokevirtual java.util.jar.JarEntry.getLastAccessTime:()Ljava/nio/file/attribute/FileTime;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/JarFileResource;
public java.nio.file.attribute.FileTime lastModifiedTime();
descriptor: ()Ljava/nio/file/attribute/FileTime;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.JarFileResource.entry:Ljava/util/jar/JarEntry;
invokevirtual java.util.jar.JarEntry.getLastModifiedTime:()Ljava/nio/file/attribute/FileTime;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/JarFileResource;
public java.lang.String[] list();
descriptor: ()[Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/JarFileResource;
public java.io.InputStream openInputStream();
descriptor: ()Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.JarFileResource.index:Lorg/jruby/util/JarCache$JarIndex;
aload 0
getfield org.jruby.util.JarFileResource.entry:Ljava/util/jar/JarEntry;
invokevirtual org.jruby.util.JarCache$JarIndex.getInputStream:(Ljava/util/jar/JarEntry;)Ljava/io/InputStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/JarFileResource;
Exceptions:
throws java.io.IOException
public java.nio.channels.Channel openChannel(int, int);
descriptor: (II)Ljava/nio/channels/Channel;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.jruby.util.JarFileResource.openInputStream:()Ljava/io/InputStream;
invokestatic java.nio.channels.Channels.newChannel:(Ljava/io/InputStream;)Ljava/nio/channels/ReadableByteChannel;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/JarFileResource;
0 1 1 flags I
0 1 2 perm I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
flags
perm
public <T> T unwrap(java.lang.Class<T>);
descriptor: (Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ldc Ljava/util/jar/JarEntry;
if_acmpne 1
aload 0
getfield org.jruby.util.JarFileResource.entry:Ljava/util/jar/JarEntry;
areturn
1: StackMap locals:
StackMap stack:
new java.lang.UnsupportedOperationException
dup
new java.lang.StringBuilder
dup
ldc "unwrap: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/util/JarFileResource;
0 2 1 type Ljava/lang/Class<TT;>;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
type
}
SourceFile: "JarFileResource.java"
InnerClasses:
JarIndex = org.jruby.util.JarCache$JarIndex of org.jruby.util.JarCache