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 // org.jruby.util.IOOutputStream this
        start local 1 // org.jruby.runtime.builtin.IRubyObject io
        start local 2 // org.jcodings.Encoding encoding
        start local 3 // boolean checkAppend
        start local 4 // boolean verifyCanWrite
         0: .line 65
            aload 0 /* this */
            invokespecial java.io.OutputStream.<init>:()V
         1: .line 57
            aload 0 /* this */
            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: .line 66
            aload 0 /* this */
            aload 1 /* io */
            putfield org.jruby.util.IOOutputStream.io:Lorg/jruby/runtime/builtin/IRubyObject;
         3: .line 67
            aload 0 /* this */
            aload 1 /* io */
            instanceof org.jruby.RubyIO
            ifeq 6
            aload 1 /* io */
            checkcast org.jruby.RubyIO
            invokevirtual org.jruby.RubyIO.isClosed:()Z
            ifne 6
         4: .line 68
            aload 1 /* io */
            checkcast org.jruby.RubyIO
            ldc "write"
            invokevirtual org.jruby.RubyIO.isBuiltin:(Ljava/lang/String;)Z
            ifeq 6
         5: .line 69
            aload 1 /* io */
            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: .line 67
      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: .line 70
            aload 0 /* this */
            getfield org.jruby.util.IOOutputStream.out:Ljava/io/OutputStream;
            ifnull 9
            iload 4 /* verifyCanWrite */
            ifeq 22
         9: .line 72
      StackMap locals:
      StackMap stack:
            aload 1 /* io */
            ldc "write"
            invokeinterface org.jruby.runtime.builtin.IRubyObject.respondsTo:(Ljava/lang/String;)Z
            ifeq 12
        10: .line 73
            ldc "write"
            astore 5 /* site */
        start local 5 // java.lang.String site
        11: .line 74
            goto 20
        end local 5 // java.lang.String site
      StackMap locals:
      StackMap stack:
        12: iload 3 /* checkAppend */
            ifeq 15
            aload 1 /* io */
            ldc "<<"
            invokeinterface org.jruby.runtime.builtin.IRubyObject.respondsTo:(Ljava/lang/String;)Z
            ifeq 15
        13: .line 75
            ldc "<<"
            astore 5 /* site */
        start local 5 // java.lang.String site
        14: .line 76
            goto 20
        end local 5 // java.lang.String site
      StackMap locals:
      StackMap stack:
        15: iload 4 /* verifyCanWrite */
            ifeq 19
        16: .line 77
            aload 1 /* io */
            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 /* io */
            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: .line 78
            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: .line 77
            invokevirtual org.jruby.Ruby.newArgumentError:(Ljava/lang/String;)Lorg/jruby/exceptions/RaiseException;
            athrow
        19: .line 80
      StackMap locals:
      StackMap stack:
            ldc "write"
            astore 5 /* site */
        start local 5 // java.lang.String site
        20: .line 82
      StackMap locals: java.lang.String
      StackMap stack:
            aload 0 /* this */
            aload 5 /* site */
            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 // java.lang.String site
        21: .line 83
            goto 23
        22: .line 85
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aconst_null
            putfield org.jruby.util.IOOutputStream.writeAdapter:Lorg/jruby/runtime/CallSite;
        23: .line 87
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 2 /* encoding */
            putfield org.jruby.util.IOOutputStream.encoding:Lorg/jcodings/Encoding;
        24: .line 88
            return
        end local 4 // boolean verifyCanWrite
        end local 3 // boolean checkAppend
        end local 2 // org.jcodings.Encoding encoding
        end local 1 // org.jruby.runtime.builtin.IRubyObject io
        end local 0 // org.jruby.util.IOOutputStream this
      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 // org.jruby.util.IOOutputStream this
        start local 1 // org.jruby.runtime.builtin.IRubyObject io
        start local 2 // boolean checkAppend
        start local 3 // boolean verifyCanWrite
         0: .line 91
            aload 0 /* this */
            aload 1 /* io */
            getstatic org.jcodings.specific.ASCIIEncoding.INSTANCE:Lorg/jcodings/specific/ASCIIEncoding;
            iload 2 /* checkAppend */
            iload 3 /* verifyCanWrite */
            invokespecial org.jruby.util.IOOutputStream.<init>:(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jcodings/Encoding;ZZ)V
         1: .line 92
            return
        end local 3 // boolean verifyCanWrite
        end local 2 // boolean checkAppend
        end local 1 // org.jruby.runtime.builtin.IRubyObject io
        end local 0 // org.jruby.util.IOOutputStream this
      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 // org.jruby.util.IOOutputStream this
        start local 1 // org.jruby.runtime.builtin.IRubyObject io
         0: .line 100
            aload 0 /* this */
            aload 1 /* io */
            iconst_1
            iconst_1
            invokespecial org.jruby.util.IOOutputStream.<init>:(Lorg/jruby/runtime/builtin/IRubyObject;ZZ)V
         1: .line 101
            return
        end local 1 // org.jruby.runtime.builtin.IRubyObject io
        end local 0 // org.jruby.util.IOOutputStream this
      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 // org.jruby.util.IOOutputStream this
        start local 1 // org.jruby.runtime.builtin.IRubyObject io
        start local 2 // org.jcodings.Encoding encoding
         0: .line 104
            aload 0 /* this */
            aload 1 /* io */
            aload 2 /* encoding */
            iconst_1
            iconst_1
            invokespecial org.jruby.util.IOOutputStream.<init>:(Lorg/jruby/runtime/builtin/IRubyObject;Lorg/jcodings/Encoding;ZZ)V
         1: .line 105
            return
        end local 2 // org.jcodings.Encoding encoding
        end local 1 // org.jruby.runtime.builtin.IRubyObject io
        end local 0 // org.jruby.util.IOOutputStream this
      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 // org.jruby.util.IOOutputStream this
        start local 1 // int bite
         0: .line 109
            aload 0 /* this */
            getfield org.jruby.util.IOOutputStream.out:Ljava/io/OutputStream;
            ifnull 3
         1: .line 110
            aload 0 /* this */
            getfield org.jruby.util.IOOutputStream.out:Ljava/io/OutputStream;
            iload 1 /* bite */
            invokevirtual java.io.OutputStream.write:(I)V
         2: .line 111
            goto 7
         3: .line 112
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.jruby.util.IOOutputStream.io:Lorg/jruby/runtime/builtin/IRubyObject;
            invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
            astore 2 /* runtime */
        start local 2 // org.jruby.Ruby runtime
         4: .line 113
            aload 0 /* this */
            getfield org.jruby.util.IOOutputStream.writeAdapter:Lorg/jruby/runtime/CallSite;
            aload 2 /* runtime */
            invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
            aload 0 /* this */
            getfield org.jruby.util.IOOutputStream.io:Lorg/jruby/runtime/builtin/IRubyObject;
            aload 0 /* this */
            getfield org.jruby.util.IOOutputStream.io:Lorg/jruby/runtime/builtin/IRubyObject;
         5: .line 114
            aload 2 /* runtime */
            new org.jruby.util.ByteList
            dup
            iconst_1
            newarray 8
            dup
            iconst_0
            iload 1 /* bite */
            i2b
            bastore
            aload 0 /* this */
            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: .line 113
            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 // org.jruby.Ruby runtime
         7: .line 116
      StackMap locals:
      StackMap stack:
            return
        end local 1 // int bite
        end local 0 // org.jruby.util.IOOutputStream this
      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 // org.jruby.util.IOOutputStream this
        start local 1 // byte[] b
         0: .line 120
            aload 0 /* this */
            aload 1 /* b */
            iconst_0
            aload 1 /* b */
            arraylength
            invokevirtual org.jruby.util.IOOutputStream.write:([BII)V
         1: .line 121
            return
        end local 1 // byte[] b
        end local 0 // org.jruby.util.IOOutputStream this
      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 // org.jruby.util.IOOutputStream this
        start local 1 // byte[] b
        start local 2 // int off
        start local 3 // int len
         0: .line 125
            aload 0 /* this */
            getfield org.jruby.util.IOOutputStream.out:Ljava/io/OutputStream;
            ifnull 3
         1: .line 126
            aload 0 /* this */
            getfield org.jruby.util.IOOutputStream.out:Ljava/io/OutputStream;
            aload 1 /* b */
            iload 2 /* off */
            iload 3 /* len */
            invokevirtual java.io.OutputStream.write:([BII)V
         2: .line 127
            goto 7
         3: .line 128
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield org.jruby.util.IOOutputStream.io:Lorg/jruby/runtime/builtin/IRubyObject;
            invokeinterface org.jruby.runtime.builtin.IRubyObject.getRuntime:()Lorg/jruby/Ruby;
            astore 4 /* runtime */
        start local 4 // org.jruby.Ruby runtime
         4: .line 129
            aload 0 /* this */
            getfield org.jruby.util.IOOutputStream.writeAdapter:Lorg/jruby/runtime/CallSite;
            aload 4 /* runtime */
            invokevirtual org.jruby.Ruby.getCurrentContext:()Lorg/jruby/runtime/ThreadContext;
            aload 0 /* this */
            getfield org.jruby.util.IOOutputStream.io:Lorg/jruby/runtime/builtin/IRubyObject;
            aload 0 /* this */
            getfield org.jruby.util.IOOutputStream.io:Lorg/jruby/runtime/builtin/IRubyObject;
         5: .line 130
            aload 4 /* runtime */
            new org.jruby.util.ByteList
            dup
            aload 1 /* b */
            iload 2 /* off */
            iload 3 /* len */
            aload 0 /* this */
            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: .line 129
            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 // org.jruby.Ruby runtime
         7: .line 132
      StackMap locals:
      StackMap stack:
            return
        end local 3 // int len
        end local 2 // int off
        end local 1 // byte[] b
        end local 0 // org.jruby.util.IOOutputStream this
      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 // org.jruby.util.IOOutputStream this
         0: .line 136
            aload 0 /* this */
            getfield org.jruby.util.IOOutputStream.out:Ljava/io/OutputStream;
            ifnull 3
         1: .line 137
            aload 0 /* this */
            getfield org.jruby.util.IOOutputStream.out:Ljava/io/OutputStream;
            invokevirtual java.io.OutputStream.close:()V
         2: .line 138
            goto 5
      StackMap locals:
      StackMap stack:
         3: aload 0 /* this */
            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: .line 139
            aload 0 /* this */
            getfield org.jruby.util.IOOutputStream.closeAdapter:Lorg/jruby/runtime/CallSite;
            aload 0 /* this */
            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 /* this */
            getfield org.jruby.util.IOOutputStream.io:Lorg/jruby/runtime/builtin/IRubyObject;
            aload 0 /* this */
            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: .line 141
      StackMap locals:
      StackMap stack:
            return
        end local 0 // org.jruby.util.IOOutputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    6     0  this  Lorg/jruby/util/IOOutputStream;
    Exceptions:
      throws java.io.IOException
}
SourceFile: "IOOutputStream.java"