class jdk.incubator.http.RequestProcessors$InputStreamProcessor extends jdk.incubator.http.RequestProcessors$ProcessorBase implements jdk.incubator.http.HttpRequest$BodyProcessor
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.incubator.http.RequestProcessors$InputStreamProcessor
super_class: jdk.incubator.http.RequestProcessors$ProcessorBase
{
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;>;
private java.util.concurrent.Flow$Publisher<java.nio.ByteBuffer> delegate;
descriptor: Ljava/util/concurrent/Flow$Publisher;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/concurrent/Flow$Publisher<Ljava/nio/ByteBuffer;>;
void <init>(java.util.function.Supplier<? extends java.io.InputStream>);
descriptor: (Ljava/util/function/Supplier;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial jdk.incubator.http.RequestProcessors$ProcessorBase.<init>:()V
1: aload 0
aload 1
putfield jdk.incubator.http.RequestProcessors$InputStreamProcessor.streamSupplier:Ljava/util/function/Supplier;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/incubator/http/RequestProcessors$InputStreamProcessor;
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 synchronized void subscribe(java.util.concurrent.Flow$Subscriber<? super java.nio.ByteBuffer>);
descriptor: (Ljava/util/concurrent/Flow$Subscriber;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 1
instanceof jdk.incubator.http.RequestProcessors$ProcessorBase
ifne 2
1: new java.lang.UnsupportedOperationException
dup
invokespecial java.lang.UnsupportedOperationException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 1
checkcast jdk.incubator.http.RequestProcessors$ProcessorBase
astore 2
start local 2 3: aload 2
invokevirtual jdk.incubator.http.RequestProcessors$ProcessorBase.getClient:()Ljdk/incubator/http/HttpClientImpl;
pop
4: aload 0
getfield jdk.incubator.http.RequestProcessors$InputStreamProcessor.streamSupplier:Ljava/util/function/Supplier;
invokeinterface java.util.function.Supplier.get:()Ljava/lang/Object;
checkcast java.io.InputStream
astore 3
start local 3 5: aload 3
ifnonnull 7
6: new java.io.UncheckedIOException
dup
new java.io.IOException
dup
ldc "no inputstream supplied"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
invokespecial java.io.UncheckedIOException.<init>:(Ljava/io/IOException;)V
athrow
7: StackMap locals: jdk.incubator.http.RequestProcessors$ProcessorBase java.io.InputStream
StackMap stack:
aload 0
new jdk.incubator.http.PullPublisher
dup
aload 3
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/incubator/http/RequestProcessors$InputStreamProcessor.lambda$0(Ljava/io/InputStream;)Ljava/util/Iterator; (6)
()Ljava/util/Iterator;
invokespecial jdk.incubator.http.PullPublisher.<init>:(Ljava/lang/Iterable;)V
putfield jdk.incubator.http.RequestProcessors$InputStreamProcessor.delegate:Ljava/util/concurrent/Flow$Publisher;
8: aload 0
getfield jdk.incubator.http.RequestProcessors$InputStreamProcessor.delegate:Ljava/util/concurrent/Flow$Publisher;
aload 1
invokeinterface java.util.concurrent.Flow$Publisher.subscribe:(Ljava/util/concurrent/Flow$Subscriber;)V
9: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/incubator/http/RequestProcessors$InputStreamProcessor;
0 10 1 subscriber Ljava/util/concurrent/Flow$Subscriber<-Ljava/nio/ByteBuffer;>;
3 10 2 base Ljdk/incubator/http/RequestProcessors$ProcessorBase;
5 10 3 is Ljava/io/InputStream;
Signature: (Ljava/util/concurrent/Flow$Subscriber<-Ljava/nio/ByteBuffer;>;)V
MethodParameters:
Name Flags
subscriber
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/incubator/http/RequestProcessors$InputStreamProcessor;
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.incubator.http.RequestProcessors$StreamIterator
dup
aload 0
invokespecial jdk.incubator.http.RequestProcessors$StreamIterator.<init>:(Ljava/io/InputStream;)V
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "RequestProcessors.java"
NestHost: jdk.incubator.http.RequestProcessors
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract Publisher = java.util.concurrent.Flow$Publisher of java.util.concurrent.Flow
public abstract Subscriber = java.util.concurrent.Flow$Subscriber of java.util.concurrent.Flow
public abstract BodyProcessor = jdk.incubator.http.HttpRequest$BodyProcessor of jdk.incubator.http.HttpRequest
InputStreamProcessor = jdk.incubator.http.RequestProcessors$InputStreamProcessor of jdk.incubator.http.RequestProcessors
abstract ProcessorBase = jdk.incubator.http.RequestProcessors$ProcessorBase of jdk.incubator.http.RequestProcessors
StreamIterator = jdk.incubator.http.RequestProcessors$StreamIterator of jdk.incubator.http.RequestProcessors