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 */
            iload 3 /* len */
            aload 1 /* bs */
            arraylength
            invokestatic java.util.Objects.checkFromIndexSize:(III)I
            pop
         1: .line 91
            iload 3 /* len */
            ifne 3
         2: .line 92
            iconst_0
            ireturn
         3: .line 94
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield sun.nio.ch.ChannelInputStream.bs:[B
            aload 1 /* bs */
            if_acmpne 5
         4: .line 95
            aload 0 /* this */
            getfield sun.nio.ch.ChannelInputStream.bb:Ljava/nio/ByteBuffer;
            goto 6
         5: .line 96
      StackMap locals:
      StackMap stack:
            aload 1 /* bs */
            invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
         6: .line 94
      StackMap locals:
      StackMap stack: java.nio.ByteBuffer
            astore 4 /* bb */
        start local 4 // java.nio.ByteBuffer bb
         7: .line 97
            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/ByteBuffer;
            pop
         8: .line 98
            aload 4 /* bb */
            iload 2 /* off */
            invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/ByteBuffer;
            pop
         9: .line 99
            aload 0 /* this */
            aload 4 /* bb */
            putfield sun.nio.ch.ChannelInputStream.bb:Ljava/nio/ByteBuffer;
        10: .line 100
            aload 0 /* this */
            aload 1 /* bs */
            putfield sun.nio.ch.ChannelInputStream.bs:[B
        11: .line 101
            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   12     0  this  Lsun/nio/ch/ChannelInputStream;
            0   12     1    bs  [B
            0   12     2   off  I
            0   12     3   len  I
            7   12     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 107
            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 112
            aload 0 /* this */
            getfield sun.nio.ch.ChannelInputStream.ch:Ljava/nio/channels/ReadableByteChannel;
            instanceof java.nio.channels.SeekableByteChannel
            ifeq 6
         1: .line 113
            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 114
            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 115
            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 117
      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 synchronized long skip(long);
    descriptor: (J)J
    flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
    Code:
      stack=4, locals=10, args_size=2
        start local 0 // sun.nio.ch.ChannelInputStream this
        start local 1 // long n
         0: .line 122
            aload 0 /* this */
            getfield sun.nio.ch.ChannelInputStream.ch:Ljava/nio/channels/ReadableByteChannel;
            instanceof java.nio.channels.SeekableByteChannel
            ifeq 12
         1: .line 123
            aload 0 /* this */
            getfield sun.nio.ch.ChannelInputStream.ch:Ljava/nio/channels/ReadableByteChannel;
            checkcast java.nio.channels.SeekableByteChannel
            astore 3 /* sbc */
        start local 3 // java.nio.channels.SeekableByteChannel sbc
         2: .line 124
            aload 3 /* sbc */
            invokeinterface java.nio.channels.SeekableByteChannel.position:()J
            lstore 4 /* pos */
        start local 4 // long pos
         3: .line 126
            lload 1 /* n */
            lconst_0
            lcmp
            ifle 9
         4: .line 127
            lload 4 /* pos */
            lload 1 /* n */
            ladd
            lstore 6 /* newPos */
        start local 6 // long newPos
         5: .line 128
            aload 3 /* sbc */
            invokeinterface java.nio.channels.SeekableByteChannel.size:()J
            lstore 8 /* size */
        start local 8 // long size
         6: .line 129
            lload 6 /* newPos */
            lconst_0
            lcmp
            iflt 7
            lload 6 /* newPos */
            lload 8 /* size */
            lcmp
            ifle 10
         7: .line 130
      StackMap locals: sun.nio.ch.ChannelInputStream long java.nio.channels.SeekableByteChannel long long long
      StackMap stack:
            lload 8 /* size */
            lstore 6 /* newPos */
        end local 8 // long size
         8: .line 132
            goto 10
        end local 6 // long newPos
         9: .line 133
      StackMap locals:
      StackMap stack:
            lload 4 /* pos */
            lload 1 /* n */
            ladd
            lconst_0
            invokestatic java.lang.Long.max:(JJ)J
            lstore 6 /* newPos */
        start local 6 // long newPos
        10: .line 135
      StackMap locals: long
      StackMap stack:
            aload 3 /* sbc */
            lload 6 /* newPos */
            invokeinterface java.nio.channels.SeekableByteChannel.position:(J)Ljava/nio/channels/SeekableByteChannel;
            pop
        11: .line 136
            lload 6 /* newPos */
            lload 4 /* pos */
            lsub
            lreturn
        end local 6 // long newPos
        end local 4 // long pos
        end local 3 // java.nio.channels.SeekableByteChannel sbc
        12: .line 138
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            lload 1 /* n */
            invokespecial java.io.InputStream.skip:(J)J
            lreturn
        end local 1 // long n
        end local 0 // sun.nio.ch.ChannelInputStream this
      LocalVariableTable:
        Start  End  Slot    Name  Signature
            0   13     0    this  Lsun/nio/ch/ChannelInputStream;
            0   13     1       n  J
            2   12     3     sbc  Ljava/nio/channels/SeekableByteChannel;
            3   12     4     pos  J
            5    9     6  newPos  J
           10   12     6  newPos  J
            6    8     8    size  J
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      n     

  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 142
            aload 0 /* this */
            getfield sun.nio.ch.ChannelInputStream.ch:Ljava/nio/channels/ReadableByteChannel;
            invokeinterface java.nio.channels.ReadableByteChannel.close:()V
         1: .line 143
            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"