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
{
  java.io.InputStream in;
    descriptor: Ljava/io/InputStream;
    flags: (0x0000) 

  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 boolean open;
    descriptor: Z
    flags: (0x0002) ACC_PRIVATE

  private java.lang.Object readLock;
    descriptor: Ljava/lang/Object;
    flags: (0x0002) ACC_PRIVATE

  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 367
            aload 0 /* this */
            invokespecial java.nio.channels.spi.AbstractInterruptibleChannel.<init>:()V
         1: .line 363
            aload 0 /* this */
            iconst_0
            newarray 8
            putfield java.nio.channels.Channels$ReadableByteChannelImpl.buf:[B
         2: .line 364
            aload 0 /* this */
            iconst_1
            putfield java.nio.channels.Channels$ReadableByteChannelImpl.open:Z
         3: .line 365
            aload 0 /* this */
            new java.lang.Object
            dup
            invokespecial java.lang.Object.<init>:()V
            putfield java.nio.channels.Channels$ReadableByteChannelImpl.readLock:Ljava/lang/Object;
         4: .line 368
            aload 0 /* this */
            aload 1 /* in */
            putfield java.nio.channels.Channels$ReadableByteChannelImpl.in:Ljava/io/InputStream;
         5: .line 369
            return
        end local 1 // java.io.InputStream in
        end local 0 // java.nio.channels.Channels$ReadableByteChannelImpl this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    6     0  this  Ljava/nio/channels/Channels$ReadableByteChannelImpl;
            0    6     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 372
            aload 1 /* dst */
            invokevirtual java.nio.ByteBuffer.remaining:()I
            istore 2 /* len */
        start local 2 // int len
         1: .line 373
            iconst_0
            istore 3 /* totalRead */
        start local 3 // int totalRead
         2: .line 374
            iconst_0
            istore 4 /* bytesRead */
        start local 4 // int bytesRead
         3: .line 375
            aload 0 /* this */
            getfield java.nio.channels.Channels$ReadableByteChannelImpl.readLock:Ljava/lang/Object;
            dup
            astore 5
            monitorenter
         4: .line 376
            goto 27
         5: .line 377
      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
         6: .line 378
            sipush 8192
         7: .line 377
            invokestatic java.lang.Math.min:(II)I
            istore 6 /* bytesToRead */
        start local 6 // int bytesToRead
         8: .line 379
            aload 0 /* this */
            getfield java.nio.channels.Channels$ReadableByteChannelImpl.buf:[B
            arraylength
            iload 6 /* bytesToRead */
            if_icmpge 10
         9: .line 380
            aload 0 /* this */
            iload 6 /* bytesToRead */
            newarray 8
            putfield java.nio.channels.Channels$ReadableByteChannelImpl.buf:[B
        10: .line 381
      StackMap locals: int
      StackMap stack:
            iload 3 /* totalRead */
            ifle 12
            aload 0 /* this */
            getfield java.nio.channels.Channels$ReadableByteChannelImpl.in:Ljava/io/InputStream;
            invokevirtual java.io.InputStream.available:()I
            ifgt 12
        11: .line 382
            goto 28
        12: .line 384
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            invokevirtual java.nio.channels.Channels$ReadableByteChannelImpl.begin:()V
        13: .line 385
            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 */
        14: .line 386
            goto 20
      StackMap locals:
      StackMap stack: java.lang.Throwable
        15: astore 7
        16: .line 387
            aload 0 /* this */
            iload 4 /* bytesRead */
            ifle 17
            iconst_1
            goto 18
      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
        17: 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
        18: invokevirtual java.nio.channels.Channels$ReadableByteChannelImpl.end:(Z)V
        19: .line 388
            aload 7
            athrow
        20: .line 387
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            iload 4 /* bytesRead */
            ifle 21
            iconst_1
            goto 22
      StackMap locals:
      StackMap stack: java.nio.channels.Channels$ReadableByteChannelImpl
        21: 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
        22: invokevirtual java.nio.channels.Channels$ReadableByteChannelImpl.end:(Z)V
        23: .line 389
            iload 4 /* bytesRead */
            ifge 25
        24: .line 390
            goto 28
        25: .line 392
      StackMap locals:
      StackMap stack:
            iload 3 /* totalRead */
            iload 4 /* bytesRead */
            iadd
            istore 3 /* totalRead */
        26: .line 393
            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
        27: .line 376
      StackMap locals:
      StackMap stack:
            iload 3 /* totalRead */
            iload 2 /* len */
            if_icmplt 5
        28: .line 395
      StackMap locals:
      StackMap stack:
            iload 4 /* bytesRead */
            ifge 31
            iload 3 /* totalRead */
            ifne 31
        29: .line 396
            aload 5
            monitorexit
        30: iconst_m1
            ireturn
        31: .line 398
      StackMap locals:
      StackMap stack:
            iload 3 /* totalRead */
            aload 5
            monitorexit
        32: ireturn
        33: .line 375
      StackMap locals:
      StackMap stack: java.lang.Throwable
            aload 5
            monitorexit
        34: 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   35     0         this  Ljava/nio/channels/Channels$ReadableByteChannelImpl;
            0   35     1          dst  Ljava/nio/ByteBuffer;
            1   35     2          len  I
            2   35     3    totalRead  I
            3   35     4    bytesRead  I
            8   27     6  bytesToRead  I
      Exception table:
        from    to  target  type
          12    15      15  any
           4    30      33  any
          31    32      33  any
          33    34      33  any
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      dst   

  protected void implCloseChannel();
    descriptor: ()V
    flags: (0x0004) ACC_PROTECTED
    Code:
      stack=2, locals=1, args_size=1
        start local 0 // java.nio.channels.Channels$ReadableByteChannelImpl this
         0: .line 403
            aload 0 /* this */
            getfield java.nio.channels.Channels$ReadableByteChannelImpl.in:Ljava/io/InputStream;
            invokevirtual java.io.InputStream.close:()V
         1: .line 404
            aload 0 /* this */
            iconst_0
            putfield java.nio.channels.Channels$ReadableByteChannelImpl.open:Z
         2: .line 405
            return
        end local 0 // java.nio.channels.Channels$ReadableByteChannelImpl this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    3     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