class jdk.incubator.http.ResponseSubscribers$ByteArraySubscriber<T> implements jdk.incubator.http.HttpResponse$BodySubscriber<T>
  minor version: 0
  major version: 59
  flags: flags: (0x0020) ACC_SUPER
  this_class: jdk.incubator.http.ResponseSubscribers$ByteArraySubscriber
  super_class: java.lang.Object
{
  private final java.util.function.Function<byte[], T> finisher;
    descriptor: Ljava/util/function/Function;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Ljava/util/function/Function<[BTT;>;

  private final java.util.concurrent.CompletableFuture<T> result;
    descriptor: Ljava/util/concurrent/CompletableFuture;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Ljava/util/concurrent/CompletableFuture<TT;>;

  private final java.util.List<java.nio.ByteBuffer> received;
    descriptor: Ljava/util/List;
    flags: (0x0012) ACC_PRIVATE, ACC_FINAL
    Signature: Ljava/util/List<Ljava/nio/ByteBuffer;>;

  private volatile java.util.concurrent.Flow$Subscription subscription;
    descriptor: Ljava/util/concurrent/Flow$Subscription;
    flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE

  static final boolean $assertionsDisabled;
    descriptor: Z
    flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC

  static void <clinit>();
    descriptor: ()V
    flags: (0x0008) ACC_STATIC
    Code:
      stack=1, locals=0, args_size=0
         0: .line 177
            ldc Ljdk/incubator/http/ResponseSubscribers;
            invokevirtual java.lang.Class.desiredAssertionStatus:()Z
            ifne 1
            iconst_1
            goto 2
      StackMap locals:
      StackMap stack:
         1: iconst_0
      StackMap locals:
      StackMap stack: int
         2: putstatic jdk.incubator.http.ResponseSubscribers$ByteArraySubscriber.$assertionsDisabled:Z
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature

  void <init>(java.util.function.Function<byte[], T>);
    descriptor: (Ljava/util/function/Function;)V
    flags: (0x0000) 
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // jdk.incubator.http.ResponseSubscribers$ByteArraySubscriber this
        start local 1 // java.util.function.Function finisher
         0: .line 184
            aload 0 /* this */
            invokespecial java.lang.Object.<init>:()V
         1: .line 179
            aload 0 /* this */
            new jdk.incubator.http.internal.common.MinimalFuture
            dup
            invokespecial jdk.incubator.http.internal.common.MinimalFuture.<init>:()V
            putfield jdk.incubator.http.ResponseSubscribers$ByteArraySubscriber.result:Ljava/util/concurrent/CompletableFuture;
         2: .line 180
            aload 0 /* this */
            new java.util.ArrayList
            dup
            invokespecial java.util.ArrayList.<init>:()V
            putfield jdk.incubator.http.ResponseSubscribers$ByteArraySubscriber.received:Ljava/util/List;
         3: .line 185
            aload 0 /* this */
            aload 1 /* finisher */
            putfield jdk.incubator.http.ResponseSubscribers$ByteArraySubscriber.finisher:Ljava/util/function/Function;
         4: .line 186
            return
        end local 1 // java.util.function.Function finisher
        end local 0 // jdk.incubator.http.ResponseSubscribers$ByteArraySubscriber this
      LocalVariableTable:
        Start  End  Slot      Name  Signature
            0    5     0      this  Ljdk/incubator/http/ResponseSubscribers$ByteArraySubscriber<TT;>;
            0    5     1  finisher  Ljava/util/function/Function<[BTT;>;
    Signature: (Ljava/util/function/Function<[BTT;>;)V
    MethodParameters:
          Name  Flags
      finisher  

  public void onSubscribe(java.util.concurrent.Flow$Subscription);
    descriptor: (Ljava/util/concurrent/Flow$Subscription;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=2, args_size=2
        start local 0 // jdk.incubator.http.ResponseSubscribers$ByteArraySubscriber this
        start local 1 // java.util.concurrent.Flow$Subscription subscription
         0: .line 190
            aload 0 /* this */
            getfield jdk.incubator.http.ResponseSubscribers$ByteArraySubscriber.subscription:Ljava/util/concurrent/Flow$Subscription;
            ifnull 3
         1: .line 191
            aload 1 /* subscription */
            invokeinterface java.util.concurrent.Flow$Subscription.cancel:()V
         2: .line 192
            return
         3: .line 194
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            aload 1 /* subscription */
            putfield jdk.incubator.http.ResponseSubscribers$ByteArraySubscriber.subscription:Ljava/util/concurrent/Flow$Subscription;
         4: .line 196
            aload 1 /* subscription */
            ldc 9223372036854775807
            invokeinterface java.util.concurrent.Flow$Subscription.request:(J)V
         5: .line 197
            return
        end local 1 // java.util.concurrent.Flow$Subscription subscription
        end local 0 // jdk.incubator.http.ResponseSubscribers$ByteArraySubscriber this
      LocalVariableTable:
        Start  End  Slot          Name  Signature
            0    6     0          this  Ljdk/incubator/http/ResponseSubscribers$ByteArraySubscriber<TT;>;
            0    6     1  subscription  Ljava/util/concurrent/Flow$Subscription;
    MethodParameters:
              Name  Flags
      subscription  

  public void onNext(java.util.List<java.nio.ByteBuffer>);
    descriptor: (Ljava/util/List;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // jdk.incubator.http.ResponseSubscribers$ByteArraySubscriber this
        start local 1 // java.util.List items
         0: .line 204
            getstatic jdk.incubator.http.ResponseSubscribers$ByteArraySubscriber.$assertionsDisabled:Z
            ifne 1
            aload 1 /* items */
            invokestatic jdk.incubator.http.internal.common.Utils.hasRemaining:(Ljava/util/List;)Z
            ifne 1
            new java.lang.AssertionError
            dup
            invokespecial java.lang.AssertionError.<init>:()V
            athrow
         1: .line 205
      StackMap locals:
      StackMap stack:
            aload 0 /* this */
            getfield jdk.incubator.http.ResponseSubscribers$ByteArraySubscriber.received:Ljava/util/List;
            aload 1 /* items */
            invokestatic jdk.incubator.http.internal.common.Utils.accumulateBuffers:(Ljava/util/List;Ljava/util/List;)J
            pop2
         2: .line 206
            return
        end local 1 // java.util.List items
        end local 0 // jdk.incubator.http.ResponseSubscribers$ByteArraySubscriber this
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0    3     0   this  Ljdk/incubator/http/ResponseSubscribers$ByteArraySubscriber<TT;>;
            0    3     1  items  Ljava/util/List<Ljava/nio/ByteBuffer;>;
    Signature: (Ljava/util/List<Ljava/nio/ByteBuffer;>;)V
    MethodParameters:
       Name  Flags
      items  

  public void onError(java.lang.Throwable);
    descriptor: (Ljava/lang/Throwable;)V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=2, locals=2, args_size=2
        start local 0 // jdk.incubator.http.ResponseSubscribers$ByteArraySubscriber this
        start local 1 // java.lang.Throwable throwable
         0: .line 210
            aload 0 /* this */
            getfield jdk.incubator.http.ResponseSubscribers$ByteArraySubscriber.received:Ljava/util/List;
            invokeinterface java.util.List.clear:()V
         1: .line 211
            aload 0 /* this */
            getfield jdk.incubator.http.ResponseSubscribers$ByteArraySubscriber.result:Ljava/util/concurrent/CompletableFuture;
            aload 1 /* throwable */
            invokevirtual java.util.concurrent.CompletableFuture.completeExceptionally:(Ljava/lang/Throwable;)Z
            pop
         2: .line 212
            return
        end local 1 // java.lang.Throwable throwable
        end local 0 // jdk.incubator.http.ResponseSubscribers$ByteArraySubscriber this
      LocalVariableTable:
        Start  End  Slot       Name  Signature
            0    3     0       this  Ljdk/incubator/http/ResponseSubscribers$ByteArraySubscriber<TT;>;
            0    3     1  throwable  Ljava/lang/Throwable;
    MethodParameters:
           Name  Flags
      throwable  

  private static byte[] join(java.util.List<java.nio.ByteBuffer>);
    descriptor: (Ljava/util/List;)[B
    flags: (0x000a) ACC_PRIVATE, ACC_STATIC
    Code:
      stack=4, locals=7, args_size=1
        start local 0 // java.util.List bytes
         0: .line 215
            aload 0 /* bytes */
            ldc 2147483647
            invokestatic jdk.incubator.http.internal.common.Utils.remaining:(Ljava/util/List;I)I
            istore 1 /* size */
        start local 1 // int size
         1: .line 216
            iload 1 /* size */
            newarray 8
            astore 2 /* res */
        start local 2 // byte[] res
         2: .line 217
            iconst_0
            istore 3 /* from */
        start local 3 // int from
         3: .line 218
            aload 0 /* bytes */
            invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
            astore 5
            goto 8
      StackMap locals: java.util.List int byte[] int top java.util.Iterator
      StackMap stack:
         4: aload 5
            invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
            checkcast java.nio.ByteBuffer
            astore 4 /* b */
        start local 4 // java.nio.ByteBuffer b
         5: .line 219
            aload 4 /* b */
            invokevirtual java.nio.ByteBuffer.remaining:()I
            istore 6 /* l */
        start local 6 // int l
         6: .line 220
            aload 4 /* b */
            aload 2 /* res */
            iload 3 /* from */
            iload 6 /* l */
            invokevirtual java.nio.ByteBuffer.get:([BII)Ljava/nio/ByteBuffer;
            pop
         7: .line 221
            iload 3 /* from */
            iload 6 /* l */
            iadd
            istore 3 /* from */
        end local 6 // int l
        end local 4 // java.nio.ByteBuffer b
         8: .line 218
      StackMap locals:
      StackMap stack:
            aload 5
            invokeinterface java.util.Iterator.hasNext:()Z
            ifne 4
         9: .line 223
            aload 2 /* res */
            areturn
        end local 3 // int from
        end local 2 // byte[] res
        end local 1 // int size
        end local 0 // java.util.List bytes
      LocalVariableTable:
        Start  End  Slot   Name  Signature
            0   10     0  bytes  Ljava/util/List<Ljava/nio/ByteBuffer;>;
            1   10     1   size  I
            2   10     2    res  [B
            3   10     3   from  I
            5    8     4      b  Ljava/nio/ByteBuffer;
            6    8     6      l  I
    Signature: (Ljava/util/List<Ljava/nio/ByteBuffer;>;)[B
    MethodParameters:
       Name  Flags
      bytes  

  public void onComplete();
    descriptor: ()V
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=3, locals=2, args_size=1
        start local 0 // jdk.incubator.http.ResponseSubscribers$ByteArraySubscriber this
         0: .line 229
            aload 0 /* this */
            getfield jdk.incubator.http.ResponseSubscribers$ByteArraySubscriber.result:Ljava/util/concurrent/CompletableFuture;
            aload 0 /* this */
            getfield jdk.incubator.http.ResponseSubscribers$ByteArraySubscriber.finisher:Ljava/util/function/Function;
            aload 0 /* this */
            getfield jdk.incubator.http.ResponseSubscribers$ByteArraySubscriber.received:Ljava/util/List;
            invokestatic jdk.incubator.http.ResponseSubscribers$ByteArraySubscriber.join:(Ljava/util/List;)[B
            invokeinterface java.util.function.Function.apply:(Ljava/lang/Object;)Ljava/lang/Object;
            invokevirtual java.util.concurrent.CompletableFuture.complete:(Ljava/lang/Object;)Z
            pop
         1: .line 230
            aload 0 /* this */
            getfield jdk.incubator.http.ResponseSubscribers$ByteArraySubscriber.received:Ljava/util/List;
            invokeinterface java.util.List.clear:()V
         2: .line 231
            goto 5
      StackMap locals:
      StackMap stack: java.lang.IllegalArgumentException
         3: astore 1 /* e */
        start local 1 // java.lang.IllegalArgumentException e
         4: .line 232
            aload 0 /* this */
            getfield jdk.incubator.http.ResponseSubscribers$ByteArraySubscriber.result:Ljava/util/concurrent/CompletableFuture;
            aload 1 /* e */
            invokevirtual java.util.concurrent.CompletableFuture.completeExceptionally:(Ljava/lang/Throwable;)Z
            pop
        end local 1 // java.lang.IllegalArgumentException e
         5: .line 234
      StackMap locals:
      StackMap stack:
            return
        end local 0 // jdk.incubator.http.ResponseSubscribers$ByteArraySubscriber this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    6     0  this  Ljdk/incubator/http/ResponseSubscribers$ByteArraySubscriber<TT;>;
            4    5     1     e  Ljava/lang/IllegalArgumentException;
      Exception table:
        from    to  target  type
           0     2       3  Class java.lang.IllegalArgumentException

  public java.util.concurrent.CompletionStage<T> getBody();
    descriptor: ()Ljava/util/concurrent/CompletionStage;
    flags: (0x0001) ACC_PUBLIC
    Code:
      stack=1, locals=1, args_size=1
        start local 0 // jdk.incubator.http.ResponseSubscribers$ByteArraySubscriber this
         0: .line 238
            aload 0 /* this */
            getfield jdk.incubator.http.ResponseSubscribers$ByteArraySubscriber.result:Ljava/util/concurrent/CompletableFuture;
            areturn
        end local 0 // jdk.incubator.http.ResponseSubscribers$ByteArraySubscriber this
      LocalVariableTable:
        Start  End  Slot  Name  Signature
            0    1     0  this  Ljdk/incubator/http/ResponseSubscribers$ByteArraySubscriber<TT;>;
    Signature: ()Ljava/util/concurrent/CompletionStage<TT;>;

  public void onNext(java.lang.Object);
    descriptor: (Ljava/lang/Object;)V
    flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
    Code:
      stack=2, locals=2, args_size=2
         0: .line 1
            aload 0
            aload 1
            checkcast java.util.List
            invokevirtual jdk.incubator.http.ResponseSubscribers$ByteArraySubscriber.onNext:(Ljava/util/List;)V
            return
      LocalVariableTable:
        Start  End  Slot  Name  Signature
}
Signature: <T:Ljava/lang/Object;>Ljava/lang/Object;Ljdk/incubator/http/HttpResponse$BodySubscriber<TT;>;
SourceFile: "ResponseSubscribers.java"
NestHost: jdk.incubator.http.ResponseSubscribers
InnerClasses:
  public abstract Subscription = java.util.concurrent.Flow$Subscription of java.util.concurrent.Flow
  public abstract BodySubscriber = jdk.incubator.http.HttpResponse$BodySubscriber of jdk.incubator.http.HttpResponse
  ByteArraySubscriber = jdk.incubator.http.ResponseSubscribers$ByteArraySubscriber of jdk.incubator.http.ResponseSubscribers