class org.jruby.util.JarDirectoryResource extends org.jruby.util.JarResource
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.jruby.util.JarDirectoryResource
super_class: org.jruby.util.JarResource
{
private final java.lang.String path;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String[] contents;
descriptor: [Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(java.lang.String, boolean, java.lang.String, java.lang.String[]);
descriptor: (Ljava/lang/String;ZLjava/lang/String;[Ljava/lang/String;)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.JarDirectoryResource.path:Ljava/lang/String;
2: aload 0
aload 4
putfield org.jruby.util.JarDirectoryResource.contents:[Ljava/lang/String;
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/JarDirectoryResource;
0 4 1 jarPath Ljava/lang/String;
0 4 2 rootSlashPrefix Z
0 4 3 path Ljava/lang/String;
0 4 4 contents [Ljava/lang/String;
MethodParameters:
Name Flags
jarPath
rootSlashPrefix
path
contents
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.JarDirectoryResource.path:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/JarDirectoryResource;
public boolean isDirectory();
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/JarDirectoryResource;
public boolean isFile();
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/JarDirectoryResource;
public long length();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: lconst_0
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/JarDirectoryResource;
public long lastModified();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: lconst_0
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/JarDirectoryResource;
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: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/JarDirectoryResource;
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: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/JarDirectoryResource;
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: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/JarDirectoryResource;
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: aload 0
getfield org.jruby.util.JarDirectoryResource.contents:[Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/JarDirectoryResource;
public boolean isRoot();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: ldc "/"
aload 0
getfield org.jruby.util.JarDirectoryResource.path:Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/JarDirectoryResource;
public java.io.InputStream openInputStream();
descriptor: ()Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new org.jruby.util.ResourceException$FileIsDirectory
dup
aload 0
getfield org.jruby.util.JarDirectoryResource.path:Ljava/lang/String;
invokespecial org.jruby.util.ResourceException$FileIsDirectory.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/JarDirectoryResource;
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=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new org.jruby.util.ResourceException$PermissionDenied
dup
aload 0
invokevirtual org.jruby.util.JarDirectoryResource.absolutePath:()Ljava/lang/String;
invokespecial org.jruby.util.ResourceException$PermissionDenied.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/JarDirectoryResource;
0 1 1 flags I
0 1 2 perm I
Exceptions:
throws org.jruby.util.ResourceException
MethodParameters:
Name Flags
flags final
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: 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 1 0 this Lorg/jruby/util/JarDirectoryResource;
0 1 1 type Ljava/lang/Class<TT;>;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
type
}
SourceFile: "JarDirectoryResource.java"
InnerClasses:
public FileIsDirectory = org.jruby.util.ResourceException$FileIsDirectory of org.jruby.util.ResourceException
public PermissionDenied = org.jruby.util.ResourceException$PermissionDenied of org.jruby.util.ResourceException