final class org.jruby.util.NullDeviceResource implements org.jruby.util.FileResource
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.jruby.util.NullDeviceResource
super_class: java.lang.Object
{
private static final org.jruby.util.JRubyFile file;
descriptor: Lorg/jruby/util/JRubyFile;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new org.jruby.util.JRubyFile
dup
ldc "NUL:"
invokespecial org.jruby.util.JRubyFile.<init>:(Ljava/lang/String;)V
putstatic org.jruby.util.NullDeviceResource.file:Lorg/jruby/util/JRubyFile;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>();
descriptor: ()V
flags: (0x0000)
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/jruby/util/NullDeviceResource;
public java.lang.String absolutePath();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "NUL:"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/NullDeviceResource;
public java.lang.String canonicalPath();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "NUL:"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/NullDeviceResource;
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/NullDeviceResource;
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/NullDeviceResource;
public java.nio.file.attribute.FileTime creationTime();
descriptor: ()Ljava/nio/file/attribute/FileTime;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.util.NullDeviceResource.lastModified:()J
invokestatic java.nio.file.attribute.FileTime.fromMillis:(J)Ljava/nio/file/attribute/FileTime;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/NullDeviceResource;
public java.nio.file.attribute.FileTime lastModifiedTime();
descriptor: ()Ljava/nio/file/attribute/FileTime;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.util.NullDeviceResource.lastModified:()J
invokestatic java.nio.file.attribute.FileTime.fromMillis:(J)Ljava/nio/file/attribute/FileTime;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/NullDeviceResource;
public java.nio.file.attribute.FileTime lastAccessTime();
descriptor: ()Ljava/nio/file/attribute/FileTime;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.jruby.util.NullDeviceResource.lastModified:()J
invokestatic java.nio.file.attribute.FileTime.fromMillis:(J)Ljava/nio/file/attribute/FileTime;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/NullDeviceResource;
public boolean exists();
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/NullDeviceResource;
public boolean canExecute();
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/NullDeviceResource;
public int errno();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic jnr.constants.platform.Errno.ENOENT:Ljnr/constants/platform/Errno;
invokevirtual jnr.constants.platform.Errno.intValue:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/NullDeviceResource;
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/NullDeviceResource;
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/NullDeviceResource;
public boolean isSymLink();
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/NullDeviceResource;
public boolean canRead();
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/NullDeviceResource;
public boolean canWrite();
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/NullDeviceResource;
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/NullDeviceResource;
public jnr.posix.FileStat stat();
descriptor: ()Ljnr/posix/FileStat;
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/NullDeviceResource;
public jnr.posix.FileStat lstat();
descriptor: ()Ljnr/posix/FileStat;
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/NullDeviceResource;
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "NUL:"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/NullDeviceResource;
public boolean isNull();
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/NullDeviceResource;
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 java.io.FileInputStream
dup
getstatic org.jruby.util.NullDeviceResource.file:Lorg/jruby/util/JRubyFile;
invokespecial java.io.FileInputStream.<init>:(Ljava/io/File;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/NullDeviceResource;
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=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iload 1
invokestatic org.jruby.util.io.ModeFlags.createModeFlags:(I)Lorg/jruby/util/io/ModeFlags;
invokevirtual org.jruby.util.NullDeviceResource.createChannel:(Lorg/jruby/util/io/ModeFlags;)Ljava/nio/channels/Channel;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/jruby/util/NullDeviceResource;
0 1 1 flags I
0 1 2 perm I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
flags
perm
private java.nio.channels.Channel createChannel(org.jruby.util.io.ModeFlags);
descriptor: (Lorg/jruby/util/io/ModeFlags;)Ljava/nio/channels/Channel;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.jruby.util.io.ModeFlags.isWritable:()Z
ifeq 4
aload 1
invokevirtual org.jruby.util.io.ModeFlags.isReadable:()Z
ifne 4
1: new java.io.FileOutputStream
dup
getstatic org.jruby.util.NullDeviceResource.file:Lorg/jruby/util/JRubyFile;
aload 1
invokevirtual org.jruby.util.io.ModeFlags.isAppendable:()Z
invokespecial java.io.FileOutputStream.<init>:(Ljava/io/File;Z)V
astore 3
start local 3 2: aload 3
invokevirtual java.io.FileOutputStream.getChannel:()Ljava/nio/channels/FileChannel;
astore 2
end local 3 start local 2 3: goto 9
end local 2 4: StackMap locals:
StackMap stack:
new java.io.RandomAccessFile
dup
getstatic org.jruby.util.NullDeviceResource.file:Lorg/jruby/util/JRubyFile;
aload 1
invokevirtual org.jruby.util.io.ModeFlags.toJavaModeString:()Ljava/lang/String;
invokespecial java.io.RandomAccessFile.<init>:(Ljava/io/File;Ljava/lang/String;)V
astore 3
start local 3 5: aload 3
invokevirtual java.io.RandomAccessFile.getChannel:()Ljava/nio/channels/FileChannel;
astore 2
end local 3 start local 2 6: goto 9
end local 2 7: StackMap locals:
StackMap stack: java.io.FileNotFoundException
astore 3
start local 3 8: aload 0
aload 3
invokestatic org.jruby.util.RegularFileResource.mapFileNotFoundOnGetChannel:(Lorg/jruby/util/FileResource;Ljava/io/FileNotFoundException;)Ljava/io/IOException;
athrow
end local 3 start local 2 9: StackMap locals: java.nio.channels.FileChannel
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/jruby/util/NullDeviceResource;
0 10 1 flags Lorg/jruby/util/io/ModeFlags;
3 4 2 fileChannel Ljava/nio/channels/FileChannel;
6 7 2 fileChannel Ljava/nio/channels/FileChannel;
9 10 2 fileChannel Ljava/nio/channels/FileChannel;
2 3 3 fos Ljava/io/FileOutputStream;
5 6 3 raf Ljava/io/RandomAccessFile;
8 9 3 ex Ljava/io/FileNotFoundException;
Exception table:
from to target type
0 6 7 Class java.io.FileNotFoundException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
flags
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/io/File;
if_acmpeq 1
aload 1
ldc Lorg/jruby/util/JRubyFile;
if_acmpne 2
StackMap locals:
StackMap stack:
1: getstatic org.jruby.util.NullDeviceResource.file:Lorg/jruby/util/JRubyFile;
areturn
2: 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 3 0 this Lorg/jruby/util/NullDeviceResource;
0 3 1 type Ljava/lang/Class<TT;>;
Signature: <T:Ljava/lang/Object;>(Ljava/lang/Class<TT;>;)TT;
MethodParameters:
Name Flags
type
}
SourceFile: "NullDeviceResource.java"