final class jdk.incubator.http.Http1Response$BodyReader extends jdk.incubator.http.Http1Response$Receiver<jdk.incubator.http.ResponseContent$BodyParser>
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: jdk.incubator.http.Http1Response$BodyReader
super_class: jdk.incubator.http.Http1Response$Receiver
{
final java.util.function.Consumer<jdk.incubator.http.Http1Response$State> onComplete;
descriptor: Ljava/util/function/Consumer;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/function/Consumer<Ljdk/incubator/http/Http1Response$State;>;
volatile jdk.incubator.http.ResponseContent$BodyParser parser;
descriptor: Ljdk/incubator/http/ResponseContent$BodyParser;
flags: (0x0040) ACC_VOLATILE
volatile java.util.concurrent.CompletableFuture<jdk.incubator.http.Http1Response$State> cf;
descriptor: Ljava/util/concurrent/CompletableFuture;
flags: (0x0040) ACC_VOLATILE
Signature: Ljava/util/concurrent/CompletableFuture<Ljdk/incubator/http/Http1Response$State;>;
volatile jdk.incubator.http.AbstractSubscription subscription;
descriptor: Ljdk/incubator/http/AbstractSubscription;
flags: (0x0040) ACC_VOLATILE
final jdk.incubator.http.Http1Response this$0;
descriptor: Ljdk/incubator/http/Http1Response;
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/Http1Response;
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.Http1Response$BodyReader.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(java.util.function.Consumer<jdk.incubator.http.Http1Response$State>);
descriptor: (Ljdk/incubator/http/Http1Response;Ljava/util/function/Consumer;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 2 0: aload 0
aload 1
putfield jdk.incubator.http.Http1Response$BodyReader.this$0:Ljdk/incubator/http/Http1Response;
aload 0
invokespecial jdk.incubator.http.Http1Response$Receiver.<init>:()V
1: aload 0
aload 2
putfield jdk.incubator.http.Http1Response$BodyReader.onComplete:Ljava/util/function/Consumer;
2: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/incubator/http/Http1Response$BodyReader;
0 3 2 onComplete Ljava/util/function/Consumer<Ljdk/incubator/http/Http1Response$State;>;
Signature: (Ljava/util/function/Consumer<Ljdk/incubator/http/Http1Response$State;>;)V
MethodParameters:
Name Flags
this$0 final
onComplete
void reset();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
putfield jdk.incubator.http.Http1Response$BodyReader.parser:Ljdk/incubator/http/ResponseContent$BodyParser;
1: aload 0
aconst_null
putfield jdk.incubator.http.Http1Response$BodyReader.cf:Ljava/util/concurrent/CompletableFuture;
2: aload 0
aconst_null
putfield jdk.incubator.http.Http1Response$BodyReader.subscription:Ljdk/incubator/http/AbstractSubscription;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/incubator/http/Http1Response$BodyReader;
final void start(jdk.incubator.http.ResponseContent$BodyParser);
descriptor: (Ljdk/incubator/http/ResponseContent$BodyParser;)V
flags: (0x0010) ACC_FINAL
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new jdk.incubator.http.internal.common.MinimalFuture
dup
invokespecial jdk.incubator.http.internal.common.MinimalFuture.<init>:()V
putfield jdk.incubator.http.Http1Response$BodyReader.cf:Ljava/util/concurrent/CompletableFuture;
1: aload 0
aload 1
putfield jdk.incubator.http.Http1Response$BodyReader.parser:Ljdk/incubator/http/ResponseContent$BodyParser;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/incubator/http/Http1Response$BodyReader;
0 3 1 parser Ljdk/incubator/http/ResponseContent$BodyParser;
MethodParameters:
Name Flags
parser
java.util.concurrent.CompletableFuture<jdk.incubator.http.Http1Response$State> completion();
descriptor: ()Ljava/util/concurrent/CompletableFuture;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.Http1Response$BodyReader.cf:Ljava/util/concurrent/CompletableFuture;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/Http1Response$BodyReader;
Signature: ()Ljava/util/concurrent/CompletableFuture<Ljdk/incubator/http/Http1Response$State;>;
public final boolean tryAsyncReceive(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aload 0
getfield jdk.incubator.http.Http1Response$BodyReader.parser:Ljdk/incubator/http/ResponseContent$BodyParser;
aload 0
getfield jdk.incubator.http.Http1Response$BodyReader.cf:Ljava/util/concurrent/CompletableFuture;
invokevirtual jdk.incubator.http.Http1Response$BodyReader.accept:(Ljava/nio/ByteBuffer;Ljava/lang/Object;Ljava/util/concurrent/CompletableFuture;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/Http1Response$BodyReader;
0 1 1 b Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
b
public final void onReadError(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.Http1Response$BodyReader.this$0:Ljdk/incubator/http/Http1Response;
aload 1
invokevirtual jdk.incubator.http.Http1Response.onReadError:(Ljava/lang/Throwable;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/incubator/http/Http1Response$BodyReader;
0 2 1 t Ljava/lang/Throwable;
MethodParameters:
Name Flags
t
public jdk.incubator.http.AbstractSubscription subscription();
descriptor: ()Ljdk/incubator/http/AbstractSubscription;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.Http1Response$BodyReader.subscription:Ljdk/incubator/http/AbstractSubscription;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/Http1Response$BodyReader;
public void onSubscribe(jdk.incubator.http.AbstractSubscription);
descriptor: (Ljdk/incubator/http/AbstractSubscription;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield jdk.incubator.http.Http1Response$BodyReader.subscription:Ljdk/incubator/http/AbstractSubscription;
1: aload 0
getfield jdk.incubator.http.Http1Response$BodyReader.parser:Ljdk/incubator/http/ResponseContent$BodyParser;
aload 1
invokeinterface jdk.incubator.http.ResponseContent$BodyParser.onSubscribe:(Ljdk/incubator/http/AbstractSubscription;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/incubator/http/Http1Response$BodyReader;
0 3 1 s Ljdk/incubator/http/AbstractSubscription;
MethodParameters:
Name Flags
s
final void handle(java.nio.ByteBuffer, jdk.incubator.http.ResponseContent$BodyParser, java.util.concurrent.CompletableFuture<jdk.incubator.http.Http1Response$State>);
descriptor: (Ljava/nio/ByteBuffer;Ljdk/incubator/http/ResponseContent$BodyParser;Ljava/util/concurrent/CompletableFuture;)V
flags: (0x0010) ACC_FINAL
Code:
stack=3, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: getstatic jdk.incubator.http.Http1Response$BodyReader.$assertionsDisabled:Z
ifne 1
aload 3
ifnonnull 1
new java.lang.AssertionError
dup
ldc "parsing not started"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
1: StackMap locals:
StackMap stack:
getstatic jdk.incubator.http.Http1Response$BodyReader.$assertionsDisabled:Z
ifne 2
aload 2
ifnonnull 2
new java.lang.AssertionError
dup
ldc "no parser"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.Http1Response$BodyReader.this$0:Ljdk/incubator/http/Http1Response;
getfield jdk.incubator.http.Http1Response.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
aload 1
invokedynamic get(Ljava/nio/ByteBuffer;)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/Http1Response$BodyReader.lambda$0(Ljava/nio/ByteBuffer;)Ljava/lang/String; (6)
()Ljava/lang/String;
invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/util/function/Supplier;)V
3: aload 2
aload 1
invokeinterface jdk.incubator.http.ResponseContent$BodyParser.accept:(Ljava/lang/Object;)V
4: goto 11
StackMap locals:
StackMap stack: java.lang.Throwable
5: astore 4
start local 4 6: aload 0
getfield jdk.incubator.http.Http1Response$BodyReader.this$0:Ljdk/incubator/http/Http1Response;
getfield jdk.incubator.http.Http1Response.debug:Ljava/lang/System$Logger;
getstatic java.lang.System$Logger$Level.DEBUG:Ljava/lang/System$Logger$Level;
7: aload 4
invokedynamic get(Ljava/lang/Throwable;)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/Http1Response$BodyReader.lambda$1(Ljava/lang/Throwable;)Ljava/lang/String; (6)
()Ljava/lang/String;
8: invokeinterface java.lang.System$Logger.log:(Ljava/lang/System$Logger$Level;Ljava/util/function/Supplier;)V
9: aload 3
invokevirtual java.util.concurrent.CompletableFuture.isDone:()Z
ifne 11
10: aload 3
aload 4
invokevirtual java.util.concurrent.CompletableFuture.completeExceptionally:(Ljava/lang/Throwable;)Z
pop
end local 4 11: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljdk/incubator/http/Http1Response$BodyReader;
0 12 1 b Ljava/nio/ByteBuffer;
0 12 2 parser Ljdk/incubator/http/ResponseContent$BodyParser;
0 12 3 cf Ljava/util/concurrent/CompletableFuture<Ljdk/incubator/http/Http1Response$State;>;
6 11 4 t Ljava/lang/Throwable;
Exception table:
from to target type
2 4 5 Class java.lang.Throwable
Signature: (Ljava/nio/ByteBuffer;Ljdk/incubator/http/ResponseContent$BodyParser;Ljava/util/concurrent/CompletableFuture<Ljdk/incubator/http/Http1Response$State;>;)V
MethodParameters:
Name Flags
b
parser
cf
final void onComplete(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0010) ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.Http1Response$BodyReader.cf:Ljava/util/concurrent/CompletableFuture;
invokevirtual java.util.concurrent.CompletableFuture.isDone:()Z
ifeq 1
return
1: StackMap locals:
StackMap stack:
aload 1
ifnull 4
2: aload 0
getfield jdk.incubator.http.Http1Response$BodyReader.cf:Ljava/util/concurrent/CompletableFuture;
aload 1
invokevirtual java.util.concurrent.CompletableFuture.completeExceptionally:(Ljava/lang/Throwable;)Z
pop
3: goto 6
4: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.Http1Response$BodyReader.onComplete:Ljava/util/function/Consumer;
getstatic jdk.incubator.http.Http1Response$State.READING_BODY:Ljdk/incubator/http/Http1Response$State;
invokeinterface java.util.function.Consumer.accept:(Ljava/lang/Object;)V
5: aload 0
getfield jdk.incubator.http.Http1Response$BodyReader.cf:Ljava/util/concurrent/CompletableFuture;
getstatic jdk.incubator.http.Http1Response$State.READING_BODY:Ljdk/incubator/http/Http1Response$State;
invokevirtual java.util.concurrent.CompletableFuture.complete:(Ljava/lang/Object;)Z
pop
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/incubator/http/Http1Response$BodyReader;
0 7 1 closedExceptionally Ljava/lang/Throwable;
MethodParameters:
Name Flags
closedExceptionally
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
aload 0
invokespecial java.lang.Object.toString:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "/parser="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield jdk.incubator.http.Http1Response$BodyReader.parser:Ljdk/incubator/http/ResponseContent$BodyParser;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/Http1Response$BodyReader;
void start(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x1040) ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast jdk.incubator.http.ResponseContent$BodyParser
invokevirtual jdk.incubator.http.Http1Response$BodyReader.start:(Ljdk/incubator/http/ResponseContent$BodyParser;)V
return
LocalVariableTable:
Start End Slot Name Signature
void handle(java.nio.ByteBuffer, java.lang.Object, java.util.concurrent.CompletableFuture);
descriptor: (Ljava/nio/ByteBuffer;Ljava/lang/Object;Ljava/util/concurrent/CompletableFuture;)V
flags: (0x1040) ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=4, locals=4, args_size=4
0: aload 0
aload 1
aload 2
checkcast jdk.incubator.http.ResponseContent$BodyParser
aload 3
invokevirtual jdk.incubator.http.Http1Response$BodyReader.handle:(Ljava/nio/ByteBuffer;Ljdk/incubator/http/ResponseContent$BodyParser;Ljava/util/concurrent/CompletableFuture;)V
return
LocalVariableTable:
Start End Slot Name Signature
private static java.lang.String lambda$0(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
0: new java.lang.StringBuilder
dup
ldc "Sending "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.nio.ByteBuffer.remaining:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
1: ldc "/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual java.nio.ByteBuffer.capacity:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " bytes to body parser"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
2: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
3: areturn
LocalVariableTable:
Start End Slot Name Signature
private static java.lang.String lambda$1(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
0: new java.lang.StringBuilder
dup
ldc "Body parser failed to handle buffer: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljdk/incubator/http/Http1Response$Receiver<Ljdk/incubator/http/ResponseContent$BodyParser;>;
SourceFile: "Http1Response.java"
NestHost: jdk.incubator.http.Http1Response
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
final BodyReader = jdk.incubator.http.Http1Response$BodyReader of jdk.incubator.http.Http1Response
abstract Receiver = jdk.incubator.http.Http1Response$Receiver of jdk.incubator.http.Http1Response
final State = jdk.incubator.http.Http1Response$State of jdk.incubator.http.Http1Response
abstract BodyParser = jdk.incubator.http.ResponseContent$BodyParser of jdk.incubator.http.ResponseContent