public class sun.nio.ch.ChannelInputStream extends java.io.InputStream
  minor version: 0
  major version: 59
  flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
  this_class: sun.nio.ch.ChannelInputStream
  super_class: java.io.InputStream
{
  protected final java.nio.channels.ReadableByteChannel ch;
    descriptor: Ljava/nio/channels/ReadableByteChannel;
    flags: (0x0014) ACC_PROTECTED, ACC_FINAL

  private java.nio.ByteBuffer bb;
    descriptor: Ljava/nio/ByteBuffer;
    flags: (0x0002) ACC_PRIVATE

  private byte[] bs;
    descriptor: [B
    flags: (0x0002) ACC_PRIVATE

  private byte[] b1;
    descriptor: [B
    flags: (0x0002) ACC_PRIVATE

  public static int read(java.nio.channels.ReadableByteChannel, java.nio.ByteBuffer, boolean);
    descriptor: (Ljava/nio/channels/ReadableByteChannel;Ljava/nio/ByteBuffer;Z)I
    flags: (0x0009) ACC_PUBLIC, ACC_STATIC
    Code:
      stack=2, locals=7, args_size=3
        start local 0 // java.nio.channels.ReadableByteChannel ch
        start local 1 // java.nio.ByteBuffer bb
        start local 2 // boolean block
         0: .line 51
            aload 0 /* ch */
            instanceof java.nio.channels.SelectableChannel
            ifeq 15
         1: .line 52
            aload 0 /* ch */
            checkcast java.nio.channels.SelectableChannel
            astore 3 /* sc */
        start local 3 // java.nio.channels.SelectableChannel sc
         2: .line 53
            aload 3 /* sc */
            invokevirtual java.nio.channels.SelectableChannel.blockingLock:()Ljava/lang/Object;
            dup
            astore 4
            monitorenter
         3: .line 54
            aload 3 /* sc */
            invokevirtual java.nio.channels.SelectableChannel.isBlocking:()Z
            istore 5 /* bm */
        start local 5 // boolean bm
         4: .line 55
            iload 5 /* bm */
            ifne 6
         5: .line 56
            new java.nio.channels.IllegalBlockingModeException
            dup
            invokespecial java.nio.channels.IllegalBlockingModeException.<init>:()V
            athrow
         6: .line 57
      StackMap locals: java.nio.channels.SelectableChannel java.lang.Object int
      StackMap stack:
            iload 5 /* bm */
            iload 2 /* block */
            if_icmpeq 8
         7: .line 58
            aload 3 /* sc */
            iload 2 /* block */
            invokevirtual java.nio.channels.SelectableChannel.configureBlocking:(Z)Ljava/nio/channels/SelectableChannel;
            pop
         8: .line 59
      StackMap locals:
      StackMap stack:
            aload 0 /* ch */
            aload 1 /* bb */
            invokeinterface java.nio.channels.ReadableByteChannel.read:(Ljava/nio/ByteBuffer;)I
            istore 6 /* n */
        start local 6 // int n
         9: .line 60
            iload 5 /* bm */
            iload 2 /* block */
            if_icmpeq 11
        10: .line 61
            aload 3 /* sc */
            iload 5 /* bm */
            invokevirtual java.nio.channels.SelectableChannel.configureBlocking:(Z)Ljava/nio/channels/SelectableChannel;
            pop
        11: .line 62
      StackMap locals: int
      StackMap stack:
            iload 6 /* n */
            aload 4
            monitorexit
        12: ireturn
        end local 6 // int n
        end local 5 // boolean bm
        13: .line 53
      StackMap locals: java.nio.channels.ReadableByteChannel java.nio.ByteBuffer int java.nio.channels.SelectableChannel java.lang.Object
      StackMap stack: java.lang.Throwable
            aload 4
            monitorexit
        14: athrow
        end local 3 // java.nio.channels.SelectableChannel sc
        15: .line 65
      StackMap locals:
      StackMap stack:
            aload 0 /* ch */
            aload 1 /* bb */
            invokeinterface java.nio.channels.ReadableByteChannel.read:(Ljava/nio/ByteBuffer;)I
            ireturn
        end local 2 // boolean block
        end local 1 // java.nio.ByteBuffer bb
        end local 0 // java.nio.channels.ReadableByteChannel ch
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0   16     0     ch  Ljava/nio/channels/ReadableByteChannel;
            0   16     1     bb  Ljava/nio/ByteBuffer;
            0   16     2  block  Z
            2   15     3     sc  Ljava/nio/channels/SelectableChannel;
            4   13     5     bm  Z
            9   13     6      n  I
      Exception table:
        from    to  target  type
           3    12      13  any
          13    14      13  any
    Exceptions:
      throws java.io.IOException
    MethodParameters:
       Name  Flags
      ch     
      bb     
      block  

  public void <init>(java.nio.channels.ReadableByteChannel);
    descriptor: (Ljava/nio/channels/ReadableByteChannel;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // sun.nio.ch.ChannelInputStream this
        start local 1 // java.nio.channels.ReadableByteChannel ch
         0: .line 74
            aload 0 /* this */
            invokespecial java.io.InputStream.<init>:()V
         1: .line 70
            aload 0 /* this */
            aconst_null
            putfield sun.nio.ch.ChannelInputStream.bb:Ljava/nio/ByteBuffer;
         2: .line 71
            aload 0 /* this */
            aconst_null
            putfield sun.nio.ch.ChannelInputStream.bs:[B
         3: .line 72
            aload 0 /* this */
            aconst_null
            putfield sun.nio.ch.ChannelInputStream.b1:[B
         4: .line 75
            aload 0 /* this */
            aload 1 /* ch */
            putfield sun.nio.ch.ChannelInputStream.ch:Ljava/nio/channels/ReadableByteChannel;
         5: .line 76
            return
        end local 1 // java.nio.channels.ReadableByteChannel ch
        end local 0 // sun.nio.ch.ChannelInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    6     0  this  Lsun/nio/ch/ChannelInputStream;
            0    6     1    ch  Ljava/nio/channels/ReadableByteChannel;
    MethodParameters:
      Name  Flags
      ch    

  public synchronized int read();
    descriptor: ()I
    flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
    Code:
      stack=2, locals=2, args_size=1
        start local 0 // sun.nio.ch.ChannelInputStream this
         0: .line 79
            aload 0 /* this */
            getfield sun.nio.ch.ChannelInputStream.b1:[B
            ifnonnull 2
         1: .line 80
            aload 0 /* this */
            iconst_1
            newarray 8
            putfield sun.nio.ch.ChannelInputStream.b1:[B
         2: .line 81
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 0 /* this */
            getfield sun.nio.ch.ChannelInputStream.b1:[B
            invokevirtual sun.nio.ch.ChannelInputStream.read:([B)I
            istore 1 /* n */
        start local 1 // int n
         3: .line 82
            iload 1 /* n */
            iconst_1
            if_icmpne 5
         4: .line 83
            aload 0 /* this */
            getfield sun.nio.ch.ChannelInputStream.b1:[B
            iconst_0
            baload
            sipush 255
            iand
            ireturn
         5: .line 84
      StackMap locals: int
      StackMap stack:
            iconst_m1
            ireturn
        end local 1 // int n
        end local 0 // sun.nio.ch.ChannelInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    6     0  this  Lsun/nio/ch/ChannelInputStream;
            3    6     1     n  I
    Exceptions:
      throws java.io.IOException

  public synchronized int read(byte[], int, int);
    descriptor: ([BII)I
    flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
    Code:
      stack=3, locals=5, args_size=4
        start local 0 // sun.nio.ch.ChannelInputStream this
        start local 1 // byte[] bs
        start local 2 // int off
        start local 3 // int len
         0: .line 90
            iload 2 /* off */
            iflt 2
            iload 2 /* off */
            aload 1 /* bs */
            arraylength
            if_icmpgt 2
            iload 3 /* len */
            iflt 2
         1: .line 91
            iload 2 /* off */
            iload 3 /* len */
            iadd
            aload 1 /* bs */
            arraylength
            if_icmpgt 2
            iload 2 /* off */
            iload 3 /* len */
            iadd
            ifge 3
         2: .line 92
      StackMap locals:
      StackMap stack:
            new java.lang.IndexOutOfBoundsException
            dup
            invokespecial java.lang.IndexOutOfBoundsException.<init>:()V
            athrow
         3: .line 93
      StackMap locals:
      StackMap stack:
            iload 3 /* len */
            ifne 5
         4: .line 94
            iconst_0
            ireturn
         5: .line 96
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield sun.nio.ch.ChannelInputStream.bs:[B
            aload 1 /* bs */
            if_acmpne 7
         6: .line 97
            aload 0 /* this */
            getfield sun.nio.ch.ChannelInputStream.bb:Ljava/nio/ByteBuffer;
            goto 8
         7: .line 98
      StackMap locals:
      StackMap stack:
            aload 1 /* bs */
            invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
         8: .line 96
      StackMap locals:
      StackMap stack: java.nio.ByteBuffer
            astore 4 /* bb */
        start local 4 // java.nio.ByteBuffer bb
         9: .line 99
            aload 4 /* bb */
            iload 2 /* off */
            iload 3 /* len */
            iadd
            aload 4 /* bb */
            invokevirtual java.nio.ByteBuffer.capacity:()I
            invokestatic java.lang.Math.min:(II)I
            invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/Buffer;
            pop
        10: .line 100
            aload 4 /* bb */
            iload 2 /* off */
            invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
            pop
        11: .line 101
            aload 0 /* this */
            aload 4 /* bb */
            putfield sun.nio.ch.ChannelInputStream.bb:Ljava/nio/ByteBuffer;
        12: .line 102
            aload 0 /* this */
            aload 1 /* bs */
            putfield sun.nio.ch.ChannelInputStream.bs:[B
        13: .line 103
            aload 0 /* this */
            aload 4 /* bb */
            invokevirtual sun.nio.ch.ChannelInputStream.read:(Ljava/nio/ByteBuffer;)I
            ireturn
        end local 4 // java.nio.ByteBuffer bb
        end local 3 // int len
        end local 2 // int off
        end local 1 // byte[] bs
        end local 0 // sun.nio.ch.ChannelInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0   14     0  this  Lsun/nio/ch/ChannelInputStream;
            0   14     1    bs  [B
            0   14     2   off  I
            0   14     3   len  I
            9   14     4    bb  Ljava/nio/ByteBuffer;
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      bs    
      off   
      len   

  protected int read(java.nio.ByteBuffer);
    descriptor: (Ljava/nio/ByteBuffer;)I
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // sun.nio.ch.ChannelInputStream this
        start local 1 // java.nio.ByteBuffer bb
         0: .line 109
            aload 0 /* this */
            getfield sun.nio.ch.ChannelInputStream.ch:Ljava/nio/channels/ReadableByteChannel;
            aload 1 /* bb */
            iconst_1
            invokestatic sun.nio.ch.ChannelInputStream.read:(Ljava/nio/channels/ReadableByteChannel;Ljava/nio/ByteBuffer;Z)I
            ireturn
        end local 1 // java.nio.ByteBuffer bb
        end local 0 // sun.nio.ch.ChannelInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Lsun/nio/ch/ChannelInputStream;
            0    1     1    bb  Ljava/nio/ByteBuffer;
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      bb    

  public int available();
    descriptor: ()I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=6, locals=4, args_size=1
        start local 0 // sun.nio.ch.ChannelInputStream this
         0: .line 114
            aload 0 /* this */
            getfield sun.nio.ch.ChannelInputStream.ch:Ljava/nio/channels/ReadableByteChannel;
            instanceof java.nio.channels.SeekableByteChannel
            ifeq 6
         1: .line 115
            aload 0 /* this */
            getfield sun.nio.ch.ChannelInputStream.ch:Ljava/nio/channels/ReadableByteChannel;
            checkcast java.nio.channels.SeekableByteChannel
            astore 1 /* sbc */
        start local 1 // java.nio.channels.SeekableByteChannel sbc
         2: .line 116
            lconst_0
            aload 1 /* sbc */
            invokeinterface java.nio.channels.SeekableByteChannel.size:()J
            aload 1 /* sbc */
            invokeinterface java.nio.channels.SeekableByteChannel.position:()J
            lsub
            invokestatic java.lang.Math.max:(JJ)J
            lstore 2 /* rem */
        start local 2 // long rem
         3: .line 117
            lload 2 /* rem */
            ldc 2147483647
            lcmp
            ifle 4
            ldc 2147483647
            goto 5
      StackMap locals: java.nio.channels.SeekableByteChannel long
      StackMap stack:
         4: lload 2 /* rem */
            l2i
      StackMap locals:
      StackMap stack: int
         5: ireturn
        end local 2 // long rem
        end local 1 // java.nio.channels.SeekableByteChannel sbc
         6: .line 119
      StackMap locals:
      StackMap stack:
            iconst_0
            ireturn
        end local 0 // sun.nio.ch.ChannelInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    7     0  this  Lsun/nio/ch/ChannelInputStream;
            2    6     1   sbc  Ljava/nio/channels/SeekableByteChannel;
            3    6     2   rem  J
    Exceptions:
      throws java.io.IOException

  public void close();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // sun.nio.ch.ChannelInputStream this
         0: .line 123
            aload 0 /* this */
            getfield sun.nio.ch.ChannelInputStream.ch:Ljava/nio/channels/ReadableByteChannel;
            invokeinterface java.nio.channels.ReadableByteChannel.close:()V
         1: .line 124
            return
        end local 0 // sun.nio.ch.ChannelInputStream this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Lsun/nio/ch/ChannelInputStream;
    Exceptions:
      throws java.io.IOException
}
SourceFile: "ChannelInputStream.java"