class java.nio.channels.Channels$ReadableByteChannelImpl extends java.nio.channels.spi.AbstractInterruptibleChannel implements java.nio.channels.ReadableByteChannel
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: java.nio.channels.Channels$ReadableByteChannelImpl
  super_class: java.nio.channels.spi.AbstractInterruptibleChannel
{
  private final java.io.InputStream in;
    descriptor: Ljava/io/InputStream;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  private static final int TRANSFER_SIZE;
    descriptor: I
    flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
    ConstantValue: 8192

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

  private final java.lang.Object readLock;
    descriptor: Ljava/lang/Object;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL

  void <init>(java.io.InputStream);
    descriptor: (Ljava/io/InputStream;)V
    flags: (0x0000) 
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // java.nio.channels.Channels$ReadableByteChannelImpl this
        start local 1 // java.io.InputStream in
         0: .line 365
            aload 0 /* this */
            invokespecial java.nio.channels.spi.AbstractInterruptibleChannel.<init>:()V
         1: .line 362
            aload 0 /* this */
            iconst_0
            newarray 8
            putfield java.nio.channels.Channels$ReadableByteChannelImpl.buf:[B
         2: .line 363
            aload 0 /* this */
            new java.lang.Object
            dup
            invokespecial java.lang.Object.<init>:()V
            putfield java.nio.channels.Channels$ReadableByteChannelImpl.readLock:Ljava/lang/Object;
         3: .line 366
            aload 0 /* this */
            aload 1 /* in */
            putfield java.nio.channels.Channels$ReadableByteChannelImpl.in:Ljava/io/InputStream;
         4: .line 367
            return
        end local 1 // java.io.InputStream in
        end local 0 // java.nio.channels.Channels$ReadableByteChannelImpl this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    5     0  this  Ljava/nio/channels/Channels$ReadableByteChannelImpl;
            0    5     1    in  Ljava/io/InputStream;
    MethodParameters:
      Name  Flags
      in    

  public int read(java.nio.ByteBuffer);
    descriptor: (Ljava/nio/ByteBuffer;)I
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=4, locals=8, args_size=2
        start local 0 // java.nio.channels.Channels$ReadableByteChannelImpl this
        start local 1 // java.nio.ByteBuffer dst
         0: .line 371
            aload 0 /* this */
            invokevirtual java.nio.channels.Channels$ReadableByteChannelImpl.isOpen:()Z
            ifne 2
         1: .line 372
            new java.nio.channels.ClosedChannelException
            dup
            invokespecial java.nio.channels.ClosedChannelException.<init>:()V
            athrow
         2: .line 375
      StackMap locals:
      StackMap stack:
            aload 1 /* dst */
            invokevirtual java.nio.ByteBuffer.remaining:()I
            istore 2 /* len */
        start local 2 // int len
         3: .line 376
            iconst_0
            istore 3 /* totalRead */
        start local 3 // int totalRead
         4: .line 377
            iconst_0
            istore 4 /* bytesRead */
        start local 4 // int bytesRead
         5: .line 378
            aload 0 /* this */
            getfield java.nio.channels.Channels$ReadableByteChannelImpl.readLock:Ljava/lang/Object;
            dup
            astore 5
            monitorenter
         6: .line 379
            goto 29
         7: .line 380
      StackMap locals: java.nio.channels.Channels$ReadableByteChannelImpl java.nio.ByteBuffer int int int java.lang.Object
      StackMap stack:
            iload 2 /* len */
            iload 3 /* totalRead */
            isub
         8: .line 381
            sipush 8192
         9: .line 380
            invokestatic java.lang.Math.min:(II)I
            istore 6 /* bytesToRead */
        start local 6 // int bytesToRead
        10: .line 382
            aload 0 /* this */
            getfield java.nio.channels.Channels$ReadableByteChannelImpl.buf:[B
            arraylength
            iload 6 /* bytesToRead */
            if_icmpge 12
        11: .line 383
            aload 0 /* this */
            iload 6 /* bytesToRead */
            newarray 8
            putfield java.nio.channels.Channels$ReadableByteChannelImpl.buf:[B
        12: .line 384
      StackMap locals: int
      StackMap stack:
            iload 3 /* totalRead */
            ifle 14
            aload 0 /* this */
            getfield java.nio.channels.Channels$ReadableByteChannelImpl.in:Ljava/io/InputStream;
            invokevirtual java.io.InputStream.available:()I
            ifgt 14
        13: .line 385
            goto 30
        14: .line 387
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual java.nio.channels.Channels$ReadableByteChannelImpl.begin:()V
        15: .line 388
            aload 0 /* this */
            getfield java.nio.channels.Channels$ReadableByteChannelImpl.in:Ljava/io/InputStream;
            aload 0 /* this */
            getfield java.nio.channels.Channels$ReadableByteChannelImpl.buf:[B
            iconst_0
            iload 6 /* bytesToRead */
            invokevirtual java.io.InputStream.read:([BII)I
            istore 4 /* bytesRead */
        16: .line 389
            goto 22
      StackMap locals:
      StackMap stack: java.lang.Throwable
        17: astore 7
        18: .line 390
            aload 0 /* this */
            iload 4 /* bytesRead */
            ifle 19
            iconst_1
            goto 20
      StackMap locals: java.nio.channels.Channels$ReadableByteChannelImpl java.nio.ByteBuffer int int int java.lang.Object int java.lang.Throwable
      StackMap stack: java.nio.channels.Channels$ReadableByteChannelImpl
        19: iconst_0
      StackMap locals: java.nio.channels.Channels$ReadableByteChannelImpl java.nio.ByteBuffer int int int java.lang.Object int java.lang.Throwable
      StackMap stack: java.nio.channels.Channels$ReadableByteChannelImpl int
        20: invokevirtual java.nio.channels.Channels$ReadableByteChannelImpl.end:(Z)V
        21: .line 391
            aload 7
            athrow
        22: .line 390
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            iload 4 /* bytesRead */
            ifle 23
            iconst_1
            goto 24
      StackMap locals:
      StackMap stack: java.nio.channels.Channels$ReadableByteChannelImpl
        23: iconst_0
      StackMap locals: java.nio.channels.Channels$ReadableByteChannelImpl java.nio.ByteBuffer int int int java.lang.Object int
      StackMap stack: java.nio.channels.Channels$ReadableByteChannelImpl int
        24: invokevirtual java.nio.channels.Channels$ReadableByteChannelImpl.end:(Z)V
        25: .line 392
            iload 4 /* bytesRead */
            ifge 27
        26: .line 393
            goto 30
        27: .line 395
      StackMap locals:
      StackMap stack:
            iload 3 /* totalRead */
            iload 4 /* bytesRead */
            iadd
            istore 3 /* totalRead */
        28: .line 396
            aload 1 /* dst */
            aload 0 /* this */
            getfield java.nio.channels.Channels$ReadableByteChannelImpl.buf:[B
            iconst_0
            iload 4 /* bytesRead */
            invokevirtual java.nio.ByteBuffer.put:([BII)Ljava/nio/ByteBuffer;
            pop
        end local 6 // int bytesToRead
        29: .line 379
      StackMap locals:
      StackMap stack:
            iload 3 /* totalRead */
            iload 2 /* len */
            if_icmplt 7
        30: .line 398
      StackMap locals:
      StackMap stack:
            iload 4 /* bytesRead */
            ifge 33
            iload 3 /* totalRead */
            ifne 33
        31: .line 399
            aload 5
            monitorexit
        32: iconst_m1
            ireturn
        33: .line 401
      StackMap locals:
      StackMap stack:
            iload 3 /* totalRead */
            aload 5
            monitorexit
        34: ireturn
        35: .line 378
      StackMap locals:
      StackMap stack: java.lang.Throwable
            aload 5
            monitorexit
        36: athrow
        end local 4 // int bytesRead
        end local 3 // int totalRead
        end local 2 // int len
        end local 1 // java.nio.ByteBuffer dst
        end local 0 // java.nio.channels.Channels$ReadableByteChannelImpl this
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0   37     0         this  Ljava/nio/channels/Channels$ReadableByteChannelImpl;
            0   37     1          dst  Ljava/nio/ByteBuffer;
            3   37     2          len  I
            4   37     3    totalRead  I
            5   37     4    bytesRead  I
           10   29     6  bytesToRead  I
      Exception table:
        from    to  target  type
          14    17      17  any
           6    32      35  any
          33    34      35  any
          35    36      35  any
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      dst   

  protected void implCloseChannel();
    descriptor: ()V
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // java.nio.channels.Channels$ReadableByteChannelImpl this
         0: .line 407
            aload 0 /* this */
            getfield java.nio.channels.Channels$ReadableByteChannelImpl.in:Ljava/io/InputStream;
            invokevirtual java.io.InputStream.close:()V
         1: .line 408
            return
        end local 0 // java.nio.channels.Channels$ReadableByteChannelImpl this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Ljava/nio/channels/Channels$ReadableByteChannelImpl;
    Exceptions:
      throws java.io.IOException
}
SourceFile: "Channels.java"
NestHost: java.nio.channels.Channels
InnerClasses:
  private ReadableByteChannelImpl = java.nio.channels.Channels$ReadableByteChannelImpl of java.nio.channels.Channels