class jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser implements jdk.internal.net.http.ResponseContent$BodyParser
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser
super_class: java.lang.Object
{
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 jdk.internal.net.http.common.Logger debug;
descriptor: Ljdk/internal/net/http/common/Logger;
flags: (0x0010) ACC_FINAL
final java.lang.String dbgTag;
descriptor: Ljava/lang/String;
flags: (0x0010) ACC_FINAL
volatile java.lang.Throwable closedExceptionally;
descriptor: Ljava/lang/Throwable;
flags: (0x0040) ACC_VOLATILE
volatile jdk.internal.net.http.AbstractSubscription sub;
descriptor: Ljdk/internal/net/http/AbstractSubscription;
flags: (0x0040) ACC_VOLATILE
volatile int breceived;
descriptor: I
flags: (0x0040) ACC_VOLATILE
final jdk.internal.net.http.ResponseContent this$0;
descriptor: Ljdk/internal/net/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/internal/net/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.internal.net.http.ResponseContent$UnknownLengthBodyParser.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(java.util.function.Consumer<java.lang.Throwable>);
descriptor: (Ljdk/internal/net/http/ResponseContent;Ljava/util/function/Consumer;)V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=3
start local 0 start local 2 0: aload 0
aload 1
putfield jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser.this$0:Ljdk/internal/net/http/ResponseContent;
aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 0
invokedynamic get(Ljdk/internal/net/http/ResponseContent$UnknownLengthBodyParser;)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/internal/net/http/ResponseContent$UnknownLengthBodyParser.dbgString()Ljava/lang/String; (5)
()Ljava/lang/String;
getstatic jdk.internal.net.http.common.Utils.DEBUG:Z
invokestatic jdk.internal.net.http.common.Utils.getDebugLogger:(Ljava/util/function/Supplier;Z)Ljdk/internal/net/http/common/Logger;
putfield jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser.debug:Ljdk/internal/net/http/common/Logger;
2: aload 0
new java.lang.StringBuilder
dup
aload 1
getfield jdk.internal.net.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 "/UnknownLengthBodyParser"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser.dbgTag:Ljava/lang/String;
3: aload 0
iconst_0
putfield jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser.breceived:I
4: aload 0
aload 2
putfield jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser.onComplete:Ljava/util/function/Consumer;
5: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/net/http/ResponseContent$UnknownLengthBodyParser;
0 6 2 onComplete Ljava/util/function/Consumer<Ljava/lang/Throwable;>;
Signature: (Ljava/util/function/Consumer<Ljava/lang/Throwable;>;)V
MethodParameters:
Name Flags
this$0 final
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.internal.net.http.ResponseContent$UnknownLengthBodyParser.dbgTag:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/ResponseContent$UnknownLengthBodyParser;
public void onSubscribe(jdk.internal.net.http.AbstractSubscription);
descriptor: (Ljdk/internal/net/http/AbstractSubscription;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 2
1: aload 0
getfield jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser.debug:Ljdk/internal/net/http/common/Logger;
new java.lang.StringBuilder
dup
ldc "onSubscribe: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser.this$0:Ljdk/internal/net/http/ResponseContent;
getfield jdk.internal.net.http.ResponseContent.pusher:Ljava/net/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;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser.this$0:Ljdk/internal/net/http/ResponseContent;
getfield jdk.internal.net.http.ResponseContent.pusher:Ljava/net/http/HttpResponse$BodySubscriber;
aload 0
aload 1
dup_x1
putfield jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser.sub:Ljdk/internal/net/http/AbstractSubscription;
invokeinterface java.net.http.HttpResponse$BodySubscriber.onSubscribe:(Ljava/util/concurrent/Flow$Subscription;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/net/http/ResponseContent$UnknownLengthBodyParser;
0 4 1 sub Ljdk/internal/net/http/AbstractSubscription;
MethodParameters:
Name Flags
sub
public java.lang.String currentStateMessage();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: ldc "http1_0 content, bytes received: %d"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser.breceived:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/ResponseContent$UnknownLengthBodyParser;
public void accept(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser.closedExceptionally:Ljava/lang/Throwable;
ifnull 4
1: aload 0
getfield jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 3
2: aload 0
getfield jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser.debug:Ljdk/internal/net/http/common/Logger;
new java.lang.StringBuilder
dup
ldc "already closed: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser.closedExceptionally:Ljava/lang/Throwable;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
3: StackMap locals:
StackMap stack:
return
4: StackMap locals:
StackMap stack:
iconst_0
istore 2
start local 2 5: aload 0
getfield jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 7
6: aload 0
getfield jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser.debug:Ljdk/internal/net/http/common/Logger;
ldc "Parser got %d bytes "
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;[Ljava/lang/Object;)V
7: StackMap locals: int
StackMap stack:
aload 1
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifeq 18
8: aload 0
getfield jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser.sub:Ljdk/internal/net/http/AbstractSubscription;
invokevirtual jdk.internal.net.http.AbstractSubscription.demand:()Ljdk/internal/net/http/common/Demand;
invokevirtual jdk.internal.net.http.common.Demand.tryDecrement:()Z
istore 3
start local 3 9: getstatic jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser.$assertionsDisabled:Z
ifne 10
iload 3
ifne 10
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
10: StackMap locals: int
StackMap stack:
aload 0
dup
getfield jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser.breceived:I
aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
iadd
putfield jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser.breceived:I
11: aload 0
getfield jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser.this$0:Ljdk/internal/net/http/ResponseContent;
getfield jdk.internal.net.http.ResponseContent.pusher:Ljava/net/http/HttpResponse$BodySubscriber;
aload 1
invokevirtual java.nio.ByteBuffer.asReadOnlyBuffer:()Ljava/nio/ByteBuffer;
invokestatic java.util.List.of:(Ljava/lang/Object;)Ljava/util/List;
invokeinterface java.net.http.HttpResponse$BodySubscriber.onNext:(Ljava/lang/Object;)V
end local 3 12: goto 18
StackMap locals: jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser java.nio.ByteBuffer int
StackMap stack: java.lang.Throwable
13: astore 3
start local 3 14: aload 0
getfield jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 15
aload 0
getfield jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser.debug:Ljdk/internal/net/http/common/Logger;
ldc "Unexpected exception"
aload 3
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;Ljava/lang/Throwable;)V
15: StackMap locals: java.lang.Throwable
StackMap stack:
aload 0
aload 3
putfield jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser.closedExceptionally:Ljava/lang/Throwable;
16: iload 2
ifne 18
17: aload 0
getfield jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser.onComplete:Ljava/util/function/Consumer;
aload 3
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
end local 3 18: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Ljdk/internal/net/http/ResponseContent$UnknownLengthBodyParser;
0 19 1 b Ljava/nio/ByteBuffer;
5 19 2 completed Z
9 12 3 hasDemand Z
14 18 3 t Ljava/lang/Throwable;
Exception table:
from to target type
5 12 13 Class java.lang.Throwable
MethodParameters:
Name Flags
b
public void complete();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser.debug:Ljdk/internal/net/http/common/Logger;
invokeinterface jdk.internal.net.http.common.Logger.on:()Z
ifeq 2
1: aload 0
getfield jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser.debug:Ljdk/internal/net/http/common/Logger;
ldc "Parser got all expected bytes: completing"
invokeinterface jdk.internal.net.http.common.Logger.log:(Ljava/lang/String;)V
2: StackMap locals:
StackMap stack:
getstatic jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser.$assertionsDisabled:Z
ifne 3
aload 0
getfield jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser.closedExceptionally:Ljava/lang/Throwable;
ifnull 3
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser.this$0:Ljdk/internal/net/http/ResponseContent;
getfield jdk.internal.net.http.ResponseContent.onFinished:Ljava/lang/Runnable;
invokeinterface java.lang.Runnable.run:()V
4: aload 0
getfield jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser.this$0:Ljdk/internal/net/http/ResponseContent;
getfield jdk.internal.net.http.ResponseContent.pusher:Ljava/net/http/HttpResponse$BodySubscriber;
invokeinterface java.net.http.HttpResponse$BodySubscriber.onComplete:()V
5: aload 0
getfield jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser.onComplete:Ljava/util/function/Consumer;
aload 0
getfield jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser.closedExceptionally:Ljava/lang/Throwable;
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/net/http/ResponseContent$UnknownLengthBodyParser;
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.internal.net.http.ResponseContent$UnknownLengthBodyParser.accept:(Ljava/nio/ByteBuffer;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "ResponseContent.java"
NestHost: jdk.internal.net.http.ResponseContent
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract BodySubscriber = java.net.http.HttpResponse$BodySubscriber of java.net.http.HttpResponse
public abstract Subscription = java.util.concurrent.Flow$Subscription of java.util.concurrent.Flow
abstract BodyParser = jdk.internal.net.http.ResponseContent$BodyParser of jdk.internal.net.http.ResponseContent
UnknownLengthBodyParser = jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser of jdk.internal.net.http.ResponseContent