public class jdk.internal.net.http.RequestPublishers$InputStreamPublisher implements java.net.http.HttpRequest$BodyPublisher
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.internal.net.http.RequestPublishers$InputStreamPublisher
super_class: java.lang.Object
{
private final java.util.function.Supplier<? extends java.io.InputStream> streamSupplier;
descriptor: Ljava/util/function/Supplier;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/function/Supplier<+Ljava/io/InputStream;>;
public void <init>(java.util.function.Supplier<? extends java.io.InputStream>);
descriptor: (Ljava/util/function/Supplier;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.function.Supplier
putfield jdk.internal.net.http.RequestPublishers$InputStreamPublisher.streamSupplier:Ljava/util/function/Supplier;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/net/http/RequestPublishers$InputStreamPublisher;
0 3 1 streamSupplier Ljava/util/function/Supplier<+Ljava/io/InputStream;>;
Signature: (Ljava/util/function/Supplier<+Ljava/io/InputStream;>;)V
MethodParameters:
Name Flags
streamSupplier
public void subscribe(java.util.concurrent.Flow$Subscriber<? super java.nio.ByteBuffer>);
descriptor: (Ljava/util/concurrent/Flow$Subscriber;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.net.http.RequestPublishers$InputStreamPublisher.streamSupplier:Ljava/util/function/Supplier;
invokeinterface java.util.function.Supplier.get:()Ljava/lang/Object;
checkcast java.io.InputStream
astore 3
start local 3 1: aload 3
ifnonnull 5
2: new java.io.IOException
dup
ldc "streamSupplier returned null"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
astore 4
start local 4 3: new jdk.internal.net.http.PullPublisher
dup
aconst_null
aload 4
invokespecial jdk.internal.net.http.PullPublisher.<init>:(Ljava/lang/Iterable;Ljava/lang/Throwable;)V
astore 2
end local 4 start local 2 4: goto 6
end local 2 5: StackMap locals: jdk.internal.net.http.RequestPublishers$InputStreamPublisher java.util.concurrent.Flow$Subscriber top java.io.InputStream
StackMap stack:
new jdk.internal.net.http.PullPublisher
dup
aload 0
aload 3
invokevirtual jdk.internal.net.http.RequestPublishers$InputStreamPublisher.iterableOf:(Ljava/io/InputStream;)Ljava/lang/Iterable;
aconst_null
invokespecial jdk.internal.net.http.PullPublisher.<init>:(Ljava/lang/Iterable;Ljava/lang/Throwable;)V
astore 2
start local 2 6: StackMap locals: jdk.internal.net.http.RequestPublishers$InputStreamPublisher java.util.concurrent.Flow$Subscriber jdk.internal.net.http.PullPublisher java.io.InputStream
StackMap stack:
aload 2
aload 1
invokevirtual jdk.internal.net.http.PullPublisher.subscribe:(Ljava/util/concurrent/Flow$Subscriber;)V
7: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/internal/net/http/RequestPublishers$InputStreamPublisher;
0 8 1 subscriber Ljava/util/concurrent/Flow$Subscriber<-Ljava/nio/ByteBuffer;>;
4 5 2 publisher Ljdk/internal/net/http/PullPublisher<Ljava/nio/ByteBuffer;>;
6 8 2 publisher Ljdk/internal/net/http/PullPublisher<Ljava/nio/ByteBuffer;>;
1 8 3 is Ljava/io/InputStream;
3 4 4 t Ljava/lang/Throwable;
Signature: (Ljava/util/concurrent/Flow$Subscriber<-Ljava/nio/ByteBuffer;>;)V
MethodParameters:
Name Flags
subscriber
protected java.lang.Iterable<java.nio.ByteBuffer> iterableOf(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)Ljava/lang/Iterable;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokedynamic iterator(Ljava/io/InputStream;)Ljava/lang/Iterable;
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/util/Iterator;
jdk/internal/net/http/RequestPublishers$InputStreamPublisher.lambda$0(Ljava/io/InputStream;)Ljava/util/Iterator; (6)
()Ljava/util/Iterator;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/RequestPublishers$InputStreamPublisher;
0 1 1 is Ljava/io/InputStream;
Signature: (Ljava/io/InputStream;)Ljava/lang/Iterable<Ljava/nio/ByteBuffer;>;
MethodParameters:
Name Flags
is
public long contentLength();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: ldc -1
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/RequestPublishers$InputStreamPublisher;
private static java.util.Iterator lambda$0(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)Ljava/util/Iterator;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
0: new jdk.internal.net.http.RequestPublishers$StreamIterator
dup
aload 0
invokespecial jdk.internal.net.http.RequestPublishers$StreamIterator.<init>:(Ljava/io/InputStream;)V
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "RequestPublishers.java"
NestHost: jdk.internal.net.http.RequestPublishers
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract BodyPublisher = java.net.http.HttpRequest$BodyPublisher of java.net.http.HttpRequest
public abstract Subscriber = java.util.concurrent.Flow$Subscriber of java.util.concurrent.Flow
public InputStreamPublisher = jdk.internal.net.http.RequestPublishers$InputStreamPublisher of jdk.internal.net.http.RequestPublishers
public StreamIterator = jdk.internal.net.http.RequestPublishers$StreamIterator of jdk.internal.net.http.RequestPublishers