class jdk.internal.net.http.ResponseContent
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.internal.net.http.ResponseContent
super_class: java.lang.Object
{
final java.net.http.HttpResponse$BodySubscriber<?> pusher;
descriptor: Ljava/net/http/HttpResponse$BodySubscriber;
flags: (0x0010) ACC_FINAL
Signature: Ljava/net/http/HttpResponse$BodySubscriber<*>;
final long contentLength;
descriptor: J
flags: (0x0010) ACC_FINAL
final java.net.http.HttpHeaders ;
descriptor: Ljava/net/http/HttpHeaders;
flags: (0x0010) ACC_FINAL
private final java.lang.Runnable onFinished;
descriptor: Ljava/lang/Runnable;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String dbgTag;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static final int LF;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 10
static final int CR;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: 13
private boolean chunkedContent;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean chunkedContentInitialized;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
void <init>(jdk.internal.net.http.HttpConnection, long, java.net.http.HttpHeaders, java.net.http.HttpResponse$BodySubscriber<?>, java.lang.Runnable);
descriptor: (Ljdk/internal/net/http/HttpConnection;JLjava/net/http/HttpHeaders;Ljava/net/http/HttpResponse$BodySubscriber;Ljava/lang/Runnable;)V
flags: (0x0000)
Code:
stack=4, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 4 start local 5 start local 6 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 5
putfield jdk.internal.net.http.ResponseContent.pusher:Ljava/net/http/HttpResponse$BodySubscriber;
2: aload 0
lload 2
putfield jdk.internal.net.http.ResponseContent.contentLength:J
3: aload 0
aload 4
putfield jdk.internal.net.http.ResponseContent.headers:Ljava/net/http/HttpHeaders;
4: aload 0
aload 6
putfield jdk.internal.net.http.ResponseContent.onFinished:Ljava/lang/Runnable;
5: aload 0
new java.lang.StringBuilder
dup
aload 1
invokevirtual jdk.internal.net.http.HttpConnection.dbgString:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "/ResponseContent"
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.dbgTag:Ljava/lang/String;
6: return
end local 6 end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/net/http/ResponseContent;
0 7 1 connection Ljdk/internal/net/http/HttpConnection;
0 7 2 contentLength J
0 7 4 h Ljava/net/http/HttpHeaders;
0 7 5 userSubscriber Ljava/net/http/HttpResponse$BodySubscriber<*>;
0 7 6 onFinished Ljava/lang/Runnable;
Signature: (Ljdk/internal/net/http/HttpConnection;JLjava/net/http/HttpHeaders;Ljava/net/http/HttpResponse$BodySubscriber<*>;Ljava/lang/Runnable;)V
MethodParameters:
Name Flags
connection
contentLength
h
userSubscriber
onFinished
boolean contentChunked();
descriptor: ()Z
flags: (0x0000)
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.ResponseContent.chunkedContentInitialized:Z
ifeq 2
1: aload 0
getfield jdk.internal.net.http.ResponseContent.chunkedContent:Z
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.ResponseContent.contentLength:J
ldc -2
lcmp
ifne 6
3: aload 0
iconst_1
putfield jdk.internal.net.http.ResponseContent.chunkedContentInitialized:Z
4: aload 0
iconst_0
putfield jdk.internal.net.http.ResponseContent.chunkedContent:Z
5: aload 0
getfield jdk.internal.net.http.ResponseContent.chunkedContent:Z
ireturn
6: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.ResponseContent.contentLength:J
ldc -1
lcmp
ifne 16
7: aload 0
getfield jdk.internal.net.http.ResponseContent.headers:Ljava/net/http/HttpHeaders;
ldc "Transfer-Encoding"
invokevirtual java.net.http.HttpHeaders.firstValue:(Ljava/lang/String;)Ljava/util/Optional;
8: ldc ""
invokevirtual java.util.Optional.orElse:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
9: astore 1
start local 1 10: aload 1
invokevirtual java.lang.String.isEmpty:()Z
ifne 15
11: aload 1
ldc "chunked"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 14
12: aload 0
iconst_1
putfield jdk.internal.net.http.ResponseContent.chunkedContent:Z
13: goto 16
14: StackMap locals: java.lang.String
StackMap stack:
new java.io.IOException
dup
ldc "invalid content"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
15: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield jdk.internal.net.http.ResponseContent.chunkedContent:Z
end local 1 16: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield jdk.internal.net.http.ResponseContent.chunkedContentInitialized:Z
17: aload 0
getfield jdk.internal.net.http.ResponseContent.chunkedContent:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Ljdk/internal/net/http/ResponseContent;
10 16 1 tc Ljava/lang/String;
Exceptions:
throws java.io.IOException
jdk.internal.net.http.ResponseContent$BodyParser getBodyParser(java.util.function.Consumer<java.lang.Throwable>);
descriptor: (Ljava/util/function/Consumer;)Ljdk/internal/net/http/ResponseContent$BodyParser;
flags: (0x0000)
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual jdk.internal.net.http.ResponseContent.contentChunked:()Z
ifeq 2
1: new jdk.internal.net.http.ResponseContent$ChunkedBodyParser
dup
aload 0
aload 1
invokespecial jdk.internal.net.http.ResponseContent$ChunkedBodyParser.<init>:(Ljdk/internal/net/http/ResponseContent;Ljava/util/function/Consumer;)V
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.ResponseContent.contentLength:J
ldc -2
lcmp
ifne 4
3: new jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser
dup
aload 0
aload 1
invokespecial jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser.<init>:(Ljdk/internal/net/http/ResponseContent;Ljava/util/function/Consumer;)V
goto 5
4: StackMap locals:
StackMap stack:
new jdk.internal.net.http.ResponseContent$FixedLengthBodyParser
dup
aload 0
aload 0
getfield jdk.internal.net.http.ResponseContent.contentLength:J
aload 1
invokespecial jdk.internal.net.http.ResponseContent$FixedLengthBodyParser.<init>:(Ljdk/internal/net/http/ResponseContent;JLjava/util/function/Consumer;)V
5: StackMap locals:
StackMap stack: jdk.internal.net.http.ResponseContent$BodyParser
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/net/http/ResponseContent;
0 6 1 onComplete Ljava/util/function/Consumer<Ljava/lang/Throwable;>;
Exceptions:
throws java.io.IOException
Signature: (Ljava/util/function/Consumer<Ljava/lang/Throwable;>;)Ljdk/internal/net/http/ResponseContent$BodyParser;
MethodParameters:
Name Flags
onComplete
}
SourceFile: "ResponseContent.java"
NestMembers:
jdk.internal.net.http.ResponseContent$BodyParser jdk.internal.net.http.ResponseContent$ChunkState jdk.internal.net.http.ResponseContent$ChunkedBodyParser jdk.internal.net.http.ResponseContent$FixedLengthBodyParser jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser
InnerClasses:
public abstract BodySubscriber = java.net.http.HttpResponse$BodySubscriber of java.net.http.HttpResponse
abstract BodyParser = jdk.internal.net.http.ResponseContent$BodyParser of jdk.internal.net.http.ResponseContent
final ChunkState = jdk.internal.net.http.ResponseContent$ChunkState of jdk.internal.net.http.ResponseContent
ChunkedBodyParser = jdk.internal.net.http.ResponseContent$ChunkedBodyParser of jdk.internal.net.http.ResponseContent
FixedLengthBodyParser = jdk.internal.net.http.ResponseContent$FixedLengthBodyParser of jdk.internal.net.http.ResponseContent
UnknownLengthBodyParser = jdk.internal.net.http.ResponseContent$UnknownLengthBodyParser of jdk.internal.net.http.ResponseContent