public class jdk.internal.net.http.ResponseSubscribers
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.internal.net.http.ResponseSubscribers
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/ResponseSubscribers;
public static java.net.http.HttpResponse$BodySubscriber<java.util.stream.Stream<java.lang.String>> createLineStream();
descriptor: ()Ljava/net/http/HttpResponse$BodySubscriber;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokestatic jdk.internal.net.http.ResponseSubscribers.createLineStream:(Ljava/nio/charset/Charset;)Ljava/net/http/HttpResponse$BodySubscriber;
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: ()Ljava/net/http/HttpResponse$BodySubscriber<Ljava/util/stream/Stream<Ljava/lang/String;>;>;
public static java.net.http.HttpResponse$BodySubscriber<java.util.stream.Stream<java.lang.String>> createLineStream(java.nio.charset.Charset);
descriptor: (Ljava/nio/charset/Charset;)Ljava/net/http/HttpResponse$BodySubscriber;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: new jdk.internal.net.http.ResponseSubscribers$HttpResponseInputStream
dup
invokespecial jdk.internal.net.http.ResponseSubscribers$HttpResponseInputStream.<init>:()V
astore 1
start local 1 2: new jdk.internal.net.http.ResponseSubscribers$MappingSubscriber
dup
aload 1
3: aload 0
invokedynamic apply(Ljava/nio/charset/Charset;)Ljava/util/function/Function;
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;)Ljava/lang/Object;
jdk/internal/net/http/ResponseSubscribers.lambda$0(Ljava/nio/charset/Charset;Ljava/io/InputStream;)Ljava/util/stream/Stream; (6)
(Ljava/io/InputStream;)Ljava/util/stream/Stream;
4: invokespecial jdk.internal.net.http.ResponseSubscribers$MappingSubscriber.<init>:(Ljava/net/http/HttpResponse$BodySubscriber;Ljava/util/function/Function;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 charset Ljava/nio/charset/Charset;
2 5 1 s Ljava/net/http/HttpResponse$BodySubscriber<Ljava/io/InputStream;>;
Signature: (Ljava/nio/charset/Charset;)Ljava/net/http/HttpResponse$BodySubscriber<Ljava/util/stream/Stream<Ljava/lang/String;>;>;
MethodParameters:
Name Flags
charset
public static java.net.http.HttpResponse$BodySubscriber<java.util.concurrent.Flow$Publisher<java.util.List<java.nio.ByteBuffer>>> createPublisher();
descriptor: ()Ljava/net/http/HttpResponse$BodySubscriber;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new jdk.internal.net.http.ResponseSubscribers$PublishingBodySubscriber
dup
invokespecial jdk.internal.net.http.ResponseSubscribers$PublishingBodySubscriber.<init>:()V
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: ()Ljava/net/http/HttpResponse$BodySubscriber<Ljava/util/concurrent/Flow$Publisher<Ljava/util/List<Ljava/nio/ByteBuffer;>;>;>;
private static java.util.stream.Stream lambda$0(java.nio.charset.Charset, java.io.InputStream);
descriptor: (Ljava/nio/charset/Charset;Ljava/io/InputStream;)Ljava/util/stream/Stream;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=6, locals=2, args_size=2
start local 1 0: new java.io.BufferedReader
dup
new java.io.InputStreamReader
dup
aload 1
aload 0
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
1: invokevirtual java.io.BufferedReader.lines:()Ljava/util/stream/Stream;
aload 1
invokedynamic run(Ljava/io/InputStream;)Ljava/lang/Runnable;
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:
()V
jdk/internal/net/http/ResponseSubscribers.lambda$1(Ljava/io/InputStream;)V (6)
()V
invokeinterface java.util.stream.Stream.onClose:(Ljava/lang/Runnable;)Ljava/util/stream/BaseStream;
checkcast java.util.stream.Stream
2: areturn
end local 1 LocalVariableTable:
Start End Slot Name Signature
0 3 1 stream Ljava/io/InputStream;
private static void lambda$1(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=4, locals=1, args_size=1
0: iconst_1
anewarray java.io.Closeable
dup
iconst_0
aload 0
aastore
invokestatic jdk.internal.net.http.common.Utils.close:([Ljava/io/Closeable;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "ResponseSubscribers.java"
NestMembers:
jdk.internal.net.http.ResponseSubscribers$ByteArraySubscriber jdk.internal.net.http.ResponseSubscribers$ConsumerSubscriber jdk.internal.net.http.ResponseSubscribers$HttpResponseInputStream jdk.internal.net.http.ResponseSubscribers$MappingSubscriber jdk.internal.net.http.ResponseSubscribers$NullSubscriber jdk.internal.net.http.ResponseSubscribers$PathSubscriber jdk.internal.net.http.ResponseSubscribers$PublishingBodySubscriber jdk.internal.net.http.ResponseSubscribers$PublishingBodySubscriber$1 jdk.internal.net.http.ResponseSubscribers$PublishingBodySubscriber$SubscriberRef jdk.internal.net.http.ResponseSubscribers$PublishingBodySubscriber$SubscriptionRef jdk.internal.net.http.ResponseSubscribers$SubscriberAdapter
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 Publisher = java.util.concurrent.Flow$Publisher of java.util.concurrent.Flow
public ByteArraySubscriber = jdk.internal.net.http.ResponseSubscribers$ByteArraySubscriber of jdk.internal.net.http.ResponseSubscribers
public ConsumerSubscriber = jdk.internal.net.http.ResponseSubscribers$ConsumerSubscriber of jdk.internal.net.http.ResponseSubscribers
public HttpResponseInputStream = jdk.internal.net.http.ResponseSubscribers$HttpResponseInputStream of jdk.internal.net.http.ResponseSubscribers
public MappingSubscriber = jdk.internal.net.http.ResponseSubscribers$MappingSubscriber of jdk.internal.net.http.ResponseSubscribers
public NullSubscriber = jdk.internal.net.http.ResponseSubscribers$NullSubscriber of jdk.internal.net.http.ResponseSubscribers
public PathSubscriber = jdk.internal.net.http.ResponseSubscribers$PathSubscriber of jdk.internal.net.http.ResponseSubscribers
PublishingBodySubscriber = jdk.internal.net.http.ResponseSubscribers$PublishingBodySubscriber of jdk.internal.net.http.ResponseSubscribers
public final SubscriberAdapter = jdk.internal.net.http.ResponseSubscribers$SubscriberAdapter of jdk.internal.net.http.ResponseSubscribers