class jdk.incubator.http.ResponseContent$FixedLengthBodyParser implements jdk.incubator.http.ResponseContent$BodyParser
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.incubator.http.ResponseContent$FixedLengthBodyParser
super_class: java.lang.Object
{
final int contentLength;
descriptor: I
flags: (0x0010) ACC_FINAL
final java.util.function.Consumer<java.lang.Throwable> onComplete;
descriptor: Ljava/util/function/Consumer;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/function/Consumer<Ljava/lang/Throwable;>;
final java.lang.System$Logger debug;
descriptor: Ljava/lang/System$Logger;
flags: (0x0010) ACC_FINAL
final java.lang.String dbgTag;
descriptor: Ljava/lang/String;
flags: (0x0010) ACC_FINAL
volatile int remaining;
descriptor: I
flags: (0x0040) ACC_VOLATILE
volatile java.lang.Throwable closedExceptionally;
descriptor: Ljava/lang/Throwable;
flags: (0x0040) ACC_VOLATILE
volatile jdk.incubator.http.AbstractSubscription sub;
descriptor: Ljdk/incubator/http/AbstractSubscription;
flags: (0x0040) ACC_VOLATILE
final jdk.incubator.http.ResponseContent this$0;
descriptor: Ljdk/incubator/http/ResponseContent;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
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: ldc Ljdk/incubator/http/ResponseContent;
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.ResponseContent$FixedLengthBodyParser.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(int, java.util.function.Consumer<java.lang.Throwable>);
descriptor: (Ljdk/incubator/http/ResponseContent;ILjava/util/function/Consumer;)V
flags: (0x0000)
Code:
stack=4, locals=4, args_size=4
start local 0 start local 2 start local 3 0: aload 0
aload 1
putfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.this$0:Ljdk/incubator/http/ResponseContent;
aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 0
invokedynamic get(Ljdk/incubator/http/ResponseContent$FixedLengthBodyParser;)Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
jdk/incubator/http/ResponseContent$FixedLengthBodyParser.dbgString()Ljava/lang/String; (5)
()Ljava/lang/String;
getstatic jdk.incubator.http.ResponseContent.DEBUG:Z
invokestatic jdk.incubator.http.internal.common.Utils.getDebugLogger:(Ljava/util/function/Supplier;Z)Ljava/lang/System$Logger;
putfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.debug:Ljava/lang/System$Logger;
2: aload 0
new java.lang.StringBuilder
dup
aload 1
getfield jdk.incubator.http.ResponseContent.dbgTag:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "/FixedLengthBodyParser"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.dbgTag:Ljava/lang/String;
3: aload 0
aload 0
iload 2
dup_x1
putfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.remaining:I
putfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.contentLength:I
4: aload 0
aload 3
putfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.onComplete:Ljava/util/function/Consumer;
5: return
end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/incubator/http/ResponseContent$FixedLengthBodyParser;
0 6 2 contentLength I
0 6 3 onComplete Ljava/util/function/Consumer<Ljava/lang/Throwable;>;
Signature: (ILjava/util/function/Consumer<Ljava/lang/Throwable;>;)V
MethodParameters:
Name Flags
this$0 final
contentLength
onComplete
java.lang.String dbgString();
descriptor: ()Ljava/lang/String;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.dbgTag:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/ResponseContent$FixedLengthBodyParser;
public void onSubscribe(jdk.incubator.http.AbstractSubscription);
descriptor: (Ljdk/incubator/http/AbstractSubscription;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
aload 0
invokedynamic get(Ljdk/incubator/http/ResponseContent$FixedLengthBodyParser;)Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
jdk/incubator/http/ResponseContent$FixedLengthBodyParser.lambda$1()Ljava/lang/String; (7)
()Ljava/lang/String;
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/util/function/Supplier;)V
1: aload 0
getfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.this$0:Ljdk/incubator/http/ResponseContent;
getfield jdk.incubator.http.ResponseContent.pusher:Ljdk/incubator/http/HttpResponse$BodySubscriber;
aload 0
aload 1
dup_x1
putfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.sub:Ljdk/incubator/http/AbstractSubscription;
invokeinterface jdk.incubator.http.HttpResponse$BodySubscriber.onSubscribe:(Ljava/util/concurrent/Flow$Subscription;)V
2: aload 0
getfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.contentLength:I
ifne 15
3: aload 0
getfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.this$0:Ljdk/incubator/http/ResponseContent;
getfield jdk.incubator.http.ResponseContent.onFinished:Ljava/lang/Runnable;
invokeinterface java.lang.Runnable.run:()V
4: aload 0
getfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.this$0:Ljdk/incubator/http/ResponseContent;
getfield jdk.incubator.http.ResponseContent.pusher:Ljdk/incubator/http/HttpResponse$BodySubscriber;
invokeinterface jdk.incubator.http.HttpResponse$BodySubscriber.onComplete:()V
5: aload 0
getfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.onComplete:Ljava/util/function/Consumer;
aconst_null
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
6: goto 15
StackMap locals:
StackMap stack: java.lang.Throwable
7: astore 2
start local 2 8: aload 0
aload 2
putfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.closedExceptionally:Ljava/lang/Throwable;
9: aload 0
getfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.this$0:Ljdk/incubator/http/ResponseContent;
getfield jdk.incubator.http.ResponseContent.pusher:Ljdk/incubator/http/HttpResponse$BodySubscriber;
aload 2
invokeinterface jdk.incubator.http.HttpResponse$BodySubscriber.onError:(Ljava/lang/Throwable;)V
10: goto 14
StackMap locals: jdk.incubator.http.ResponseContent$FixedLengthBodyParser jdk.incubator.http.AbstractSubscription java.lang.Throwable
StackMap stack: java.lang.Throwable
11: astore 3
12: aload 0
getfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.onComplete:Ljava/util/function/Consumer;
aload 2
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
13: aload 3
athrow
14: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.onComplete:Ljava/util/function/Consumer;
aload 2
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
end local 2 15: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljdk/incubator/http/ResponseContent$FixedLengthBodyParser;
0 16 1 sub Ljdk/incubator/http/AbstractSubscription;
8 15 2 t Ljava/lang/Throwable;
Exception table:
from to target type
2 6 7 Class java.lang.Throwable
9 11 11 any
MethodParameters:
Name Flags
sub
public void accept(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=7, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.closedExceptionally:Ljava/lang/Throwable;
ifnull 3
1: aload 0
getfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
aload 0
invokedynamic get(Ljdk/incubator/http/ResponseContent$FixedLengthBodyParser;)Ljava/util/function/Supplier;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
()Ljava/lang/Object;
jdk/incubator/http/ResponseContent$FixedLengthBodyParser.lambda$2()Ljava/lang/String; (7)
()Ljava/lang/String;
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/util/function/Supplier;)V
2: return
3: StackMap locals:
StackMap stack:
iconst_0
istore 2
start local 2 4: aload 0
getfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.remaining:I
istore 3
start local 3 5: aload 0
getfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
ldc "Parser got %d bytes (%d remaining / %d)"
iconst_3
anewarray java.lang.Object
dup
iconst_0
6: aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
iload 3
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
aload 0
getfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.contentLength:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
7: invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;[Ljava/lang/Object;)V
8: getstatic jdk.incubator.http.ResponseContent$FixedLengthBodyParser.$assertionsDisabled:Z
ifne 9
iload 3
ifne 9
aload 0
getfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.contentLength:I
ifeq 9
aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
ifeq 9
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
9: StackMap locals: int int
StackMap stack:
iload 3
ifne 11
aload 0
getfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.contentLength:I
ifle 11
10: return
11: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifeq 18
iload 3
ifle 18
12: aload 0
getfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.sub:Ljdk/incubator/http/AbstractSubscription;
invokevirtual jdk.incubator.http.AbstractSubscription.demand:()Ljdk/incubator/http/internal/common/Demand;
invokevirtual jdk.incubator.http.internal.common.Demand.tryDecrement:()Z
istore 4
start local 4 13: getstatic jdk.incubator.http.ResponseContent$FixedLengthBodyParser.$assertionsDisabled:Z
ifne 14
iload 4
ifne 14
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
14: StackMap locals: int
StackMap stack:
aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
iload 3
invokestatic java.lang.Math.min:(II)I
istore 5
start local 5 15: aload 0
dup
getfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.remaining:I
iload 5
isub
dup_x1
putfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.remaining:I
istore 3
16: aload 1
iload 5
invokestatic jdk.incubator.http.internal.common.Utils.sliceWithLimitedCapacity:(Ljava/nio/ByteBuffer;I)Ljava/nio/ByteBuffer;
astore 6
start local 6 17: aload 0
getfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.this$0:Ljdk/incubator/http/ResponseContent;
getfield jdk.incubator.http.ResponseContent.pusher:Ljdk/incubator/http/HttpResponse$BodySubscriber;
aload 6
invokestatic java.util.List.of:(Ljava/lang/Object;)Ljava/util/List;
invokeinterface jdk.incubator.http.HttpResponse$BodySubscriber.onNext:(Ljava/lang/Object;)V
end local 6 end local 5 end local 4 18: StackMap locals:
StackMap stack:
iload 3
ifne 25
19: getstatic jdk.incubator.http.ResponseContent$FixedLengthBodyParser.$assertionsDisabled:Z
ifne 20
aload 0
getfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.closedExceptionally:Ljava/lang/Throwable;
ifnull 20
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
20: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.this$0:Ljdk/incubator/http/ResponseContent;
getfield jdk.incubator.http.ResponseContent.onFinished:Ljava/lang/Runnable;
invokeinterface java.lang.Runnable.run:()V
21: aload 0
getfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.this$0:Ljdk/incubator/http/ResponseContent;
getfield jdk.incubator.http.ResponseContent.pusher:Ljdk/incubator/http/HttpResponse$BodySubscriber;
invokeinterface jdk.incubator.http.HttpResponse$BodySubscriber.onComplete:()V
22: iconst_1
istore 2
23: aload 0
getfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.onComplete:Ljava/util/function/Consumer;
aload 0
getfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.closedExceptionally:Ljava/lang/Throwable;
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
24: goto 31
25: StackMap locals:
StackMap stack:
getstatic jdk.incubator.http.ResponseContent$FixedLengthBodyParser.$assertionsDisabled:Z
ifne 31
aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
ifeq 31
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
end local 3 26: StackMap locals: jdk.incubator.http.ResponseContent$FixedLengthBodyParser java.nio.ByteBuffer int
StackMap stack: java.lang.Throwable
astore 3
start local 3 27: aload 0
getfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
ldc "Unexpected exception"
aload 3
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/lang/String;Ljava/lang/Throwable;)V
28: aload 0
aload 3
putfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.closedExceptionally:Ljava/lang/Throwable;
29: iload 2
ifne 31
30: aload 0
getfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.onComplete:Ljava/util/function/Consumer;
aload 3
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
end local 3 31: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 32 0 this Ljdk/incubator/http/ResponseContent$FixedLengthBodyParser;
0 32 1 b Ljava/nio/ByteBuffer;
4 32 2 completed Z
5 26 3 unfulfilled I
13 18 4 hasDemand Z
15 18 5 amount I
17 18 6 buffer Ljava/nio/ByteBuffer;
27 31 3 t Ljava/lang/Throwable;
Exception table:
from to target type
4 10 26 Class java.lang.Throwable
11 26 26 Class java.lang.Throwable
MethodParameters:
Name Flags
b
public void accept(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: aload 0
aload 1
checkcast java.nio.ByteBuffer
invokevirtual jdk.incubator.http.ResponseContent$FixedLengthBodyParser.accept:(Ljava/nio/ByteBuffer;)V
return
LocalVariableTable:
Start End Slot Name Signature
private java.lang.String lambda$1();
descriptor: ()Ljava/lang/String;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "length="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: aload 0
getfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.contentLength:I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ", onSubscribe: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
2: aload 0
getfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.this$0:Ljdk/incubator/http/ResponseContent;
getfield jdk.incubator.http.ResponseContent.pusher:Ljdk/incubator/http/HttpResponse$BodySubscriber;
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
3: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
4: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/incubator/http/ResponseContent$FixedLengthBodyParser;
private java.lang.String lambda$2();
descriptor: ()Ljava/lang/String;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "already closed: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: aload 0
getfield jdk.incubator.http.ResponseContent$FixedLengthBodyParser.closedExceptionally:Ljava/lang/Throwable;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
2: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
3: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/incubator/http/ResponseContent$FixedLengthBodyParser;
}
SourceFile: "ResponseContent.java"
NestHost: jdk.incubator.http.ResponseContent
InnerClasses:
public abstract Logger = java.lang.System$Logger of java.lang.System
public final Level = java.lang.System$Logger$Level of java.lang.System$Logger
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
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
abstract BodyParser = jdk.incubator.http.ResponseContent$BodyParser of jdk.incubator.http.ResponseContent
FixedLengthBodyParser = jdk.incubator.http.ResponseContent$FixedLengthBodyParser of jdk.incubator.http.ResponseContent