public final class jdk.internal.net.http.LineSubscriberAdapter<S extends java.util.concurrent.Flow$Subscriber<? super java.lang.String>, R> implements java.net.http.HttpResponse$BodySubscriber<R>
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.internal.net.http.LineSubscriberAdapter
super_class: java.lang.Object
{
private final java.util.concurrent.CompletableFuture<R> cf;
descriptor: Ljava/util/concurrent/CompletableFuture;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/CompletableFuture<TR;>;
private final S subscriber;
descriptor: Ljava/util/concurrent/Flow$Subscriber;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: TS;
private final java.util.function.Function<? super S, ? extends R> finisher;
descriptor: Ljava/util/function/Function;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/function/Function<-TS;+TR;>;
private final java.nio.charset.Charset charset;
descriptor: Ljava/nio/charset/Charset;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String eol;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile jdk.internal.net.http.LineSubscriberAdapter$LineSubscription downstream;
descriptor: Ljdk/internal/net/http/LineSubscriberAdapter$LineSubscription;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private void <init>(S, java.util.function.Function<? super S, ? extends R>, java.nio.charset.Charset, java.lang.String);
descriptor: (Ljava/util/concurrent/Flow$Subscriber;Ljava/util/function/Function;Ljava/nio/charset/Charset;Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new jdk.internal.net.http.common.MinimalFuture
dup
invokespecial jdk.internal.net.http.common.MinimalFuture.<init>:()V
putfield jdk.internal.net.http.LineSubscriberAdapter.cf:Ljava/util/concurrent/CompletableFuture;
2: aload 4
ifnull 4
aload 4
invokevirtual java.lang.String.isEmpty:()Z
ifeq 4
3: new java.lang.IllegalArgumentException
dup
ldc "empty line separator"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: jdk.internal.net.http.LineSubscriberAdapter java.util.concurrent.Flow$Subscriber java.util.function.Function java.nio.charset.Charset java.lang.String
StackMap stack:
aload 0
aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.concurrent.Flow$Subscriber
putfield jdk.internal.net.http.LineSubscriberAdapter.subscriber:Ljava/util/concurrent/Flow$Subscriber;
5: aload 0
aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.function.Function
putfield jdk.internal.net.http.LineSubscriberAdapter.finisher:Ljava/util/function/Function;
6: aload 0
aload 3
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.nio.charset.Charset
putfield jdk.internal.net.http.LineSubscriberAdapter.charset:Ljava/nio/charset/Charset;
7: aload 0
aload 4
putfield jdk.internal.net.http.LineSubscriberAdapter.eol:Ljava/lang/String;
8: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/internal/net/http/LineSubscriberAdapter<TS;TR;>;
0 9 1 subscriber TS;
0 9 2 finisher Ljava/util/function/Function<-TS;+TR;>;
0 9 3 charset Ljava/nio/charset/Charset;
0 9 4 eol Ljava/lang/String;
Signature: (TS;Ljava/util/function/Function<-TS;+TR;>;Ljava/nio/charset/Charset;Ljava/lang/String;)V
MethodParameters:
Name Flags
subscriber
finisher
charset
eol
public void onSubscribe(java.util.concurrent.Flow$Subscription);
descriptor: (Ljava/util/concurrent/Flow$Subscription;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
1: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter.charset:Ljava/nio/charset/Charset;
2: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter.eol:Ljava/lang/String;
3: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter.subscriber:Ljava/util/concurrent/Flow$Subscriber;
4: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter.cf:Ljava/util/concurrent/CompletableFuture;
5: invokestatic jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.create:(Ljava/util/concurrent/Flow$Subscription;Ljava/nio/charset/Charset;Ljava/lang/String;Ljava/util/concurrent/Flow$Subscriber;Ljava/util/concurrent/CompletableFuture;)Ljdk/internal/net/http/LineSubscriberAdapter$LineSubscription;
putfield jdk.internal.net.http.LineSubscriberAdapter.downstream:Ljdk/internal/net/http/LineSubscriberAdapter$LineSubscription;
6: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter.subscriber:Ljava/util/concurrent/Flow$Subscriber;
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter.downstream:Ljdk/internal/net/http/LineSubscriberAdapter$LineSubscription;
invokeinterface java.util.concurrent.Flow$Subscriber.onSubscribe:(Ljava/util/concurrent/Flow$Subscription;)V
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/internal/net/http/LineSubscriberAdapter<TS;TR;>;
0 8 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=3, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter.downstream:Ljdk/internal/net/http/LineSubscriberAdapter$LineSubscription;
aload 1
invokevirtual jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.submit:(Ljava/util/List;)V
1: goto 4
StackMap locals:
StackMap stack: java.lang.Throwable
2: astore 2
start local 2 3: aload 0
aload 2
invokevirtual jdk.internal.net.http.LineSubscriberAdapter.onError:(Ljava/lang/Throwable;)V
end local 2 4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/internal/net/http/LineSubscriberAdapter<TS;TR;>;
0 5 1 item Ljava/util/List<Ljava/nio/ByteBuffer;>;
3 4 2 t Ljava/lang/Throwable;
Exception table:
from to target type
0 1 2 Class java.lang.Throwable
Signature: (Ljava/util/List<Ljava/nio/ByteBuffer;>;)V
MethodParameters:
Name Flags
item
public void onError(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter.downstream:Ljdk/internal/net/http/LineSubscriberAdapter$LineSubscription;
aload 1
invokevirtual jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.signalError:(Ljava/lang/Throwable;)V
1: goto 5
StackMap locals:
StackMap stack: java.lang.Throwable
2: astore 2
3: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter.cf:Ljava/util/concurrent/CompletableFuture;
aload 1
invokevirtual java.util.concurrent.CompletableFuture.completeExceptionally:(Ljava/lang/Throwable;)Z
pop
4: aload 2
athrow
5: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter.cf:Ljava/util/concurrent/CompletableFuture;
aload 1
invokevirtual java.util.concurrent.CompletableFuture.completeExceptionally:(Ljava/lang/Throwable;)Z
pop
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/net/http/LineSubscriberAdapter<TS;TR;>;
0 7 1 throwable Ljava/lang/Throwable;
Exception table:
from to target type
0 2 2 any
MethodParameters:
Name Flags
throwable
public void onComplete();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter.downstream:Ljdk/internal/net/http/LineSubscriberAdapter$LineSubscription;
invokevirtual jdk.internal.net.http.LineSubscriberAdapter$LineSubscription.signalComplete:()V
1: goto 5
StackMap locals:
StackMap stack: java.lang.Throwable
2: astore 1
3: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter.cf:Ljava/util/concurrent/CompletableFuture;
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter.finisher:Ljava/util/function/Function;
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter.subscriber:Ljava/util/concurrent/Flow$Subscriber;
invokeinterface java.util.function.Function.apply:(Ljava/lang/Object;)Ljava/lang/Object;
invokevirtual java.util.concurrent.CompletableFuture.complete:(Ljava/lang/Object;)Z
pop
4: aload 1
athrow
5: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter.cf:Ljava/util/concurrent/CompletableFuture;
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter.finisher:Ljava/util/function/Function;
aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter.subscriber:Ljava/util/concurrent/Flow$Subscriber;
invokeinterface java.util.function.Function.apply:(Ljava/lang/Object;)Ljava/lang/Object;
invokevirtual java.util.concurrent.CompletableFuture.complete:(Ljava/lang/Object;)Z
pop
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/net/http/LineSubscriberAdapter<TS;TR;>;
Exception table:
from to target type
0 2 2 any
public java.util.concurrent.CompletionStage<R> getBody();
descriptor: ()Ljava/util/concurrent/CompletionStage;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.LineSubscriberAdapter.cf:Ljava/util/concurrent/CompletableFuture;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/LineSubscriberAdapter<TS;TR;>;
Signature: ()Ljava/util/concurrent/CompletionStage<TR;>;
public static <S extends java.util.concurrent.Flow$Subscriber<? super java.lang.String>, R> jdk.internal.net.http.LineSubscriberAdapter<S, R> create(S, java.util.function.Function<? super S, ? extends R>, java.nio.charset.Charset, java.lang.String);
descriptor: (Ljava/util/concurrent/Flow$Subscriber;Ljava/util/function/Function;Ljava/nio/charset/Charset;Ljava/lang/String;)Ljdk/internal/net/http/LineSubscriberAdapter;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
ifnull 2
aload 3
invokevirtual java.lang.String.isEmpty:()Z
ifeq 2
1: new java.lang.IllegalArgumentException
dup
ldc "empty line separator"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
new jdk.internal.net.http.LineSubscriberAdapter
dup
aload 0
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.concurrent.Flow$Subscriber
3: aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.function.Function
4: aload 2
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.nio.charset.Charset
5: aload 3
6: invokespecial jdk.internal.net.http.LineSubscriberAdapter.<init>:(Ljava/util/concurrent/Flow$Subscriber;Ljava/util/function/Function;Ljava/nio/charset/Charset;Ljava/lang/String;)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 subscriber TS;
0 7 1 finisher Ljava/util/function/Function<-TS;+TR;>;
0 7 2 charset Ljava/nio/charset/Charset;
0 7 3 eol Ljava/lang/String;
Signature: <S::Ljava/util/concurrent/Flow$Subscriber<-Ljava/lang/String;>;R:Ljava/lang/Object;>(TS;Ljava/util/function/Function<-TS;+TR;>;Ljava/nio/charset/Charset;Ljava/lang/String;)Ljdk/internal/net/http/LineSubscriberAdapter<TS;TR;>;
MethodParameters:
Name Flags
subscriber
finisher
charset
eol
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: aload 0
aload 1
checkcast java.util.List
invokevirtual jdk.internal.net.http.LineSubscriberAdapter.onNext:(Ljava/util/List;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
Signature: <S::Ljava/util/concurrent/Flow$Subscriber<-Ljava/lang/String;>;R:Ljava/lang/Object;>Ljava/lang/Object;Ljava/net/http/HttpResponse$BodySubscriber<TR;>;
SourceFile: "LineSubscriberAdapter.java"
NestMembers:
jdk.internal.net.http.LineSubscriberAdapter$LineSubscription
InnerClasses:
public abstract BodySubscriber = java.net.http.HttpResponse$BodySubscriber of java.net.http.HttpResponse
public abstract Subscriber = java.util.concurrent.Flow$Subscriber of java.util.concurrent.Flow
public abstract Subscription = java.util.concurrent.Flow$Subscription of java.util.concurrent.Flow
final LineSubscription = jdk.internal.net.http.LineSubscriberAdapter$LineSubscription of jdk.internal.net.http.LineSubscriberAdapter