public class org.jruby.util.IOOutputStream extends java.io.OutputStream
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.jruby.util.IOOutputStream
super_class: java.io.OutputStream
{
private final org.jruby.runtime.builtin.IRubyObject io;
descriptor: Lorg/jruby/runtime/builtin/IRubyObject;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.io.OutputStream out;
descriptor: Ljava/io/OutputStream;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.jruby.runtime.CallSite writeAdapter;
descriptor: Lorg/jruby/runtime/CallSite;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.jruby.runtime.CallSite closeAdapter;
descriptor: Lorg/jruby/runtime/CallSite;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final org.jcodings.Encoding encoding;
descriptor: Lorg/jcodings/Encoding;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(org.jruby.runtime.builtin.IRubyObject, org.jcodings.Encoding, boolean, boolean);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jcodings/Encoding;ZZ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.io.OutputStream.<init>:()V
1: aload 0
ldc "close"
invokestatic org.jruby.runtime.MethodIndex.getFunctionalCallSite:(Ljava/lang/String;)Lorg/jruby/runtime/CallSite;
putfield org.jruby.util.IOOutputStream.closeAdapter:Lorg/jruby/runtime/CallSite;
2: aload 0
aload 1
putfield org.jruby.util.IOOutputStream.io:Lorg/jruby/runtime/builtin/IRubyObject;
3: aload 0
aload 1
instanceof org.jruby.RubyIO
ifeq 6
aload 1
checkcast org.jruby.RubyIO
invokevirtual org.jruby.RubyIO.isClosed:()Z
ifne 6
4: aload 1
checkcast org.jruby.RubyIO
ldc "write"
invokevirtual org.jruby.RubyIO.isBuiltin:(Ljava/lang/String;)Z
ifeq 6
5: aload 1
checkcast org.jruby.RubyIO
invokevirtual org.jruby.RubyIO.getOutStream:()Ljava/io/OutputStream;
goto 7
StackMap locals: org.jruby.util.IOOutputStream org.jruby.runtime.builtin.IRubyObject org.jcodings.Encoding int int
StackMap stack: org.jruby.util.IOOutputStream
6: aconst_null
7: StackMap locals: org.jruby.util.IOOutputStream org.jruby.runtime.builtin.IRubyObject org.jcodings.Encoding int int
StackMap stack: org.jruby.util.IOOutputStream java.io.OutputStream
putfield org.jruby.util.IOOutputStream.out:Ljava/io/OutputStream;
8: aload 0
getfield org.jruby.util.IOOutputStream.out:Ljava/io/OutputStream;
ifnull 9
iload 4
ifeq 22
9: StackMap locals:
StackMap stack:
aload 1
ldc "write"
invokeinterface org.jruby.runtime.builtin.IRubyObject.respondsTo:(Ljava/lang/String;)Z
ifeq 12
10: ldc "write"
astore 5
start local 5 11: goto 20
end local 5 StackMap locals:
StackMap stack:
12: iload 3
ifeq 15
aload 1
ldc "<<"
invokeinterface org.jruby.runtime.builtin.IRubyObject.respondsTo:(Ljava/lang/String;)Z
ifeq 15
13: ldc "<<"
astore 5
start local 5 14: goto 20
end local 5 StackMap locals:
StackMap stack:
15: iload 4
ifeq 19
16: aload 1
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
new java.lang.StringBuilder
dup
ldc "Object: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " is not a legal argument to this wrapper, "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
17: ldc "cause it doesn't respond to \"write\"."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
18: invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
athrow
19: StackMap locals:
StackMap stack:
ldc "write"
astore 5
start local 5 20: StackMap locals: java.lang.String
StackMap stack:
aload 0
aload 5
invokestatic org.jruby.runtime.MethodIndex.getFunctionalCallSite:(Ljava/lang/String;)Lorg/jruby/runtime/CallSite;
putfield org.jruby.util.IOOutputStream.writeAdapter:Lorg/jruby/runtime/CallSite;
end local 5 21: goto 23
22: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield org.jruby.util.IOOutputStream.writeAdapter:Lorg/jruby/runtime/CallSite;
23: StackMap locals:
StackMap stack:
aload 0
aload 2
putfield org.jruby.util.IOOutputStream.encoding:Lorg/jcodings/Encoding;
24: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lorg/jruby/util/IOOutputStream;
0 25 1 io Lorg/jruby/runtime/builtin/IRubyObject;
0 25 2 encoding Lorg/jcodings/Encoding;
0 25 3 checkAppend Z
0 25 4 verifyCanWrite Z
11 12 5 site Ljava/lang/String;
14 15 5 site Ljava/lang/String;
20 21 5 site Ljava/lang/String;
MethodParameters:
Name Flags
io final
encoding
checkAppend
verifyCanWrite
public void <init>(org.jruby.runtime.builtin.IRubyObject, boolean, boolean);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;ZZ)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
getstatic org.jcodings.specific.ASCIIEncoding.INSTANCE:Lorg/jcodings/specific/ASCIIEncoding;
iload 2
iload 3
invokespecial org.jruby.util.IOOutputStream.<init>:(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jcodings/Encoding;ZZ)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/util/IOOutputStream;
0 2 1 io Lorg/jruby/runtime/builtin/IRubyObject;
0 2 2 checkAppend Z
0 2 3 verifyCanWrite Z
MethodParameters:
Name Flags
io final
checkAppend
verifyCanWrite
public void <init>(org.jruby.runtime.builtin.IRubyObject);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_1
iconst_1
invokespecial org.jruby.util.IOOutputStream.<init>:(Lorg/jruby/runtime/builtin/IRubyObject;ZZ)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/util/IOOutputStream;
0 2 1 io Lorg/jruby/runtime/builtin/IRubyObject;
MethodParameters:
Name Flags
io final
public void <init>(org.jruby.runtime.builtin.IRubyObject, org.jcodings.Encoding);
descriptor: (Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jcodings/Encoding;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
iconst_1
iconst_1
invokespecial org.jruby.util.IOOutputStream.<init>:(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jcodings/Encoding;ZZ)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/util/IOOutputStream;
0 2 1 io Lorg/jruby/runtime/builtin/IRubyObject;
0 2 2 encoding Lorg/jcodings/Encoding;
MethodParameters:
Name Flags
io final
encoding
public void write(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=11, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.util.IOOutputStream.out:Ljava/io/OutputStream;
ifnull 3
1: aload 0
getfield org.jruby.util.IOOutputStream.out:Ljava/io/OutputStream;
iload 1
invokevirtual java.io.OutputStream.write:(I)V
2: goto 7
3: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.util.IOOutputStream.io:Lorg/jruby/runtime/builtin/IRubyObject;
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
astore 2
start local 2 4: aload 0
getfield org.jruby.util.IOOutputStream.writeAdapter:Lorg/jruby/runtime/CallSite;
aload 2
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
aload 0
getfield org.jruby.util.IOOutputStream.io:Lorg/jruby/runtime/builtin/IRubyObject;
aload 0
getfield org.jruby.util.IOOutputStream.io:Lorg/jruby/runtime/builtin/IRubyObject;
5: aload 2
new org.jruby.util.ByteList
dup
iconst_1
newarray 8
dup
iconst_0
iload 1
i2b
bastore
aload 0
getfield org.jruby.util.IOOutputStream.encoding:Lorg/jcodings/Encoding;
iconst_0
invokespecial org.jruby.util.ByteList.<init>:([BLorg/jcodings/Encoding;Z)V
invokestatic org.jruby.RubyString.newStringLight:(Lorg/jruby/Ruby;Lorg/jruby/util/ByteList;)Lorg/jruby/RubyString;
6: invokevirtual org.jruby.runtime.CallSite.call:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
end local 2 7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/jruby/util/IOOutputStream;
0 8 1 bite I
4 7 2 runtime Lorg/jruby/Ruby;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
bite final
public void write(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
aload 1
arraylength
invokevirtual org.jruby.util.IOOutputStream.write:([BII)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/jruby/util/IOOutputStream;
0 2 1 b [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b final
public void write(byte[], int, int);
descriptor: ([BII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=12, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.jruby.util.IOOutputStream.out:Ljava/io/OutputStream;
ifnull 3
1: aload 0
getfield org.jruby.util.IOOutputStream.out:Ljava/io/OutputStream;
aload 1
iload 2
iload 3
invokevirtual java.io.OutputStream.write:([BII)V
2: goto 7
3: StackMap locals:
StackMap stack:
aload 0
getfield org.jruby.util.IOOutputStream.io:Lorg/jruby/runtime/builtin/IRubyObject;
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
astore 4
start local 4 4: aload 0
getfield org.jruby.util.IOOutputStream.writeAdapter:Lorg/jruby/runtime/CallSite;
aload 4
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
aload 0
getfield org.jruby.util.IOOutputStream.io:Lorg/jruby/runtime/builtin/IRubyObject;
aload 0
getfield org.jruby.util.IOOutputStream.io:Lorg/jruby/runtime/builtin/IRubyObject;
5: aload 4
new org.jruby.util.ByteList
dup
aload 1
iload 2
iload 3
aload 0
getfield org.jruby.util.IOOutputStream.encoding:Lorg/jcodings/Encoding;
iconst_0
invokespecial org.jruby.util.ByteList.<init>:([BIILorg/jcodings/Encoding;Z)V
invokestatic org.jruby.RubyString.newStringLight:(Lorg/jruby/Ruby;Lorg/jruby/util/ByteList;)Lorg/jruby/RubyString;
6: invokevirtual org.jruby.runtime.CallSite.call:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
end local 4 7: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/jruby/util/IOOutputStream;
0 8 1 b [B
0 8 2 off I
0 8 3 len I
4 7 4 runtime Lorg/jruby/Ruby;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b final
off final
len final
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.jruby.util.IOOutputStream.out:Ljava/io/OutputStream;
ifnull 3
1: aload 0
getfield org.jruby.util.IOOutputStream.out:Ljava/io/OutputStream;
invokevirtual java.io.OutputStream.close:()V
2: goto 5
StackMap locals:
StackMap stack:
3: aload 0
getfield org.jruby.util.IOOutputStream.io:Lorg/jruby/runtime/builtin/IRubyObject;
ldc "close"
invokeinterface org.jruby.runtime.builtin.IRubyObject.respondsTo:(Ljava/lang/String;)Z
ifeq 5
4: aload 0
getfield org.jruby.util.IOOutputStream.closeAdapter:Lorg/jruby/runtime/CallSite;
aload 0
getfield org.jruby.util.IOOutputStream.io:Lorg/jruby/runtime/builtin/IRubyObject;
invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
aload 0
getfield org.jruby.util.IOOutputStream.io:Lorg/jruby/runtime/builtin/IRubyObject;
aload 0
getfield org.jruby.util.IOOutputStream.io:Lorg/jruby/runtime/builtin/IRubyObject;
invokevirtual org.jruby.runtime.CallSite.call:(Lorg/jruby/runtime/ThreadContext;Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jruby/runtime/builtin/IRubyObject;)Lorg/jruby/runtime/builtin/IRubyObject;
pop
5: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/jruby/util/IOOutputStream;
Exceptions:
throws java.io.IOException
}
SourceFile: "IOOutputStream.java"