class java.nio.channels.Channels$2 extends java.io.InputStream
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: java.nio.channels.Channels$2
  super_class: java.io.InputStream
{
  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

  private final java.nio.channels.AsynchronousByteChannel val$ch;
    descriptor: Ljava/nio/channels/AsynchronousByteChannel;
    flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC

  void <init>(java.nio.channels.AsynchronousByteChannel);
    descriptor: (Ljava/nio/channels/AsynchronousByteChannel;)V
    flags: (0x0000) 
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // java.nio.channels.Channels$2 this
         0: .line 201
            aload 0 /* this */
            aload 1
            putfield java.nio.channels.Channels$2.val$ch:Ljava/nio/channels/AsynchronousByteChannel;
            aload 0 /* this */
            invokespecial java.io.InputStream.<init>:()V
         1: .line 203
            aload 0 /* this */
            aconst_null
            putfield java.nio.channels.Channels$2.bb:Ljava/nio/ByteBuffer;
         2: .line 204
            aload 0 /* this */
            aconst_null
            putfield java.nio.channels.Channels$2.bs:[B
         3: .line 205
            aload 0 /* this */
            aconst_null
            putfield java.nio.channels.Channels$2.b1:[B
         4: .line 201
            return
        end local 0 // java.nio.channels.Channels$2 this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    5     0  this  Ljava/nio/channels/Channels$2;
    MethodParameters:
        Name  Flags
      val$ch  final

  public synchronized int read();
    descriptor: ()I
    flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
    Code:
      stack=2, locals=2, args_size=1
        start local 0 // java.nio.channels.Channels$2 this
         0: .line 209
            aload 0 /* this */
            getfield java.nio.channels.Channels$2.b1:[B
            ifnonnull 2
         1: .line 210
            aload 0 /* this */
            iconst_1
            newarray 8
            putfield java.nio.channels.Channels$2.b1:[B
         2: .line 211
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 0 /* this */
            getfield java.nio.channels.Channels$2.b1:[B
            invokevirtual java.nio.channels.Channels$2.read:([B)I
            istore 1 /* n */
        start local 1 // int n
         3: .line 212
            iload 1 /* n */
            iconst_1
            if_icmpne 5
         4: .line 213
            aload 0 /* this */
            getfield java.nio.channels.Channels$2.b1:[B
            iconst_0
            baload
            sipush 255
            iand
            ireturn
         5: .line 214
      StackMap locals: int
      StackMap stack:
            iconst_m1
            ireturn
        end local 1 // int n
        end local 0 // java.nio.channels.Channels$2 this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    6     0  this  Ljava/nio/channels/Channels$2;
            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=9, args_size=4
        start local 0 // java.nio.channels.Channels$2 this
        start local 1 // byte[] bs
        start local 2 // int off
        start local 3 // int len
         0: .line 221
            iload 2 /* off */
            iflt 2
            iload 2 /* off */
            aload 1 /* bs */
            arraylength
            if_icmpgt 2
            iload 3 /* len */
            iflt 2
         1: .line 222
            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 223
      StackMap locals:
      StackMap stack:
            new java.lang.IndexOutOfBoundsException
            dup
            invokespecial java.lang.IndexOutOfBoundsException.<init>:()V
            athrow
         3: .line 224
      StackMap locals:
      StackMap stack:
            iload 3 /* len */
            ifne 5
         4: .line 225
            iconst_0
            ireturn
         5: .line 227
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield java.nio.channels.Channels$2.bs:[B
            aload 1 /* bs */
            if_acmpne 7
         6: .line 228
            aload 0 /* this */
            getfield java.nio.channels.Channels$2.bb:Ljava/nio/ByteBuffer;
            goto 8
         7: .line 229
      StackMap locals:
      StackMap stack:
            aload 1 /* bs */
            invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
         8: .line 227
      StackMap locals:
      StackMap stack: java.nio.ByteBuffer
            astore 4 /* bb */
        start local 4 // java.nio.ByteBuffer bb
         9: .line 230
            aload 4 /* bb */
            iload 2 /* off */
            invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
            pop
        10: .line 231
            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
        11: .line 232
            aload 0 /* this */
            aload 4 /* bb */
            putfield java.nio.channels.Channels$2.bb:Ljava/nio/ByteBuffer;
        12: .line 233
            aload 0 /* this */
            aload 1 /* bs */
            putfield java.nio.channels.Channels$2.bs:[B
        13: .line 235
            iconst_0
            istore 5 /* interrupted */
        start local 5 // boolean interrupted
        14: .line 239
      StackMap locals: java.nio.ByteBuffer int
      StackMap stack:
            aload 0 /* this */
            getfield java.nio.channels.Channels$2.val$ch:Ljava/nio/channels/AsynchronousByteChannel;
            aload 4 /* bb */
            invokeinterface java.nio.channels.AsynchronousByteChannel.read:(Ljava/nio/ByteBuffer;)Ljava/util/concurrent/Future;
            invokeinterface java.util.concurrent.Future.get:()Ljava/lang/Object;
            checkcast java.lang.Integer
            invokevirtual java.lang.Integer.intValue:()I
            istore 8
        15: .line 247
            iload 5 /* interrupted */
            ifeq 17
        16: .line 248
            invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
            invokevirtual java.lang.Thread.interrupt:()V
        17: .line 239
      StackMap locals: java.nio.channels.Channels$2 byte[] int int java.nio.ByteBuffer int top top int
      StackMap stack:
            iload 8
            ireturn
        18: .line 240
      StackMap locals: java.nio.channels.Channels$2 byte[] int int java.nio.ByteBuffer int
      StackMap stack: java.util.concurrent.ExecutionException
            astore 6 /* ee */
        start local 6 // java.util.concurrent.ExecutionException ee
        19: .line 241
            new java.io.IOException
            dup
            aload 6 /* ee */
            invokevirtual java.util.concurrent.ExecutionException.getCause:()Ljava/lang/Throwable;
            invokespecial java.io.IOException.<init>:(Ljava/lang/Throwable;)V
            athrow
        end local 6 // java.util.concurrent.ExecutionException ee
        20: .line 242
      StackMap locals:
      StackMap stack: java.lang.InterruptedException
            pop
        21: .line 243
            iconst_1
            istore 5 /* interrupted */
        22: .line 237
            goto 14
        23: .line 246
      StackMap locals:
      StackMap stack: java.lang.Throwable
            astore 7
        24: .line 247
            iload 5 /* interrupted */
            ifeq 26
        25: .line 248
            invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
            invokevirtual java.lang.Thread.interrupt:()V
        26: .line 249
      StackMap locals: java.nio.channels.Channels$2 byte[] int int java.nio.ByteBuffer int top java.lang.Throwable
      StackMap stack:
            aload 7
            athrow
        end local 5 // boolean interrupted
        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 // java.nio.channels.Channels$2 this
      LocalVariableTable:
        Start  End  Slot         Name  Signature
            0   27     0         this  Ljava/nio/channels/Channels$2;
            0   27     1           bs  [B
            0   27     2          off  I
            0   27     3          len  I
            9   27     4           bb  Ljava/nio/ByteBuffer;
           14   27     5  interrupted  Z
           19   20     6           ee  Ljava/util/concurrent/ExecutionException;
      Exception table:
        from    to  target  type
          14    15      18  Class java.util.concurrent.ExecutionException
          14    15      20  Class java.lang.InterruptedException
          14    15      23  any
          18    23      23  any
    Exceptions:
      throws java.io.IOException
    MethodParameters:
      Name  Flags
      bs    
      off   
      len   

  public void close();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // java.nio.channels.Channels$2 this
         0: .line 254
            aload 0 /* this */
            getfield java.nio.channels.Channels$2.val$ch:Ljava/nio/channels/AsynchronousByteChannel;
            invokeinterface java.nio.channels.AsynchronousByteChannel.close:()V
         1: .line 255
            return
        end local 0 // java.nio.channels.Channels$2 this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    2     0  this  Ljava/nio/channels/Channels$2;
    Exceptions:
      throws java.io.IOException
}
SourceFile: "Channels.java"
EnclosingMethod: java.nio.channels.Channels.newInputStream:(Ljava/nio/channels/AsynchronousByteChannel;)Ljava/io/InputStream;
NestHost: java.nio.channels.Channels
InnerClasses:
  java.nio.channels.Channels$2