class jdk.incubator.http.RequestPublishers$StreamIterator implements java.util.Iterator<java.nio.ByteBuffer>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.incubator.http.RequestPublishers$StreamIterator
super_class: java.lang.Object
{
final java.io.InputStream is;
descriptor: Ljava/io/InputStream;
flags: (0x0010) ACC_FINAL
final java.util.function.Supplier<? extends java.nio.ByteBuffer> bufSupplier;
descriptor: Ljava/util/function/Supplier;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/function/Supplier<+Ljava/nio/ByteBuffer;>;
volatile java.nio.ByteBuffer nextBuffer;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0040) ACC_VOLATILE
volatile boolean need2Read;
descriptor: Z
flags: (0x0040) ACC_VOLATILE
volatile boolean haveNext;
descriptor: Z
flags: (0x0040) ACC_VOLATILE
void <init>(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokedynamic get()Ljava/util/function/Supplier;
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;
jdk/incubator/http/internal/common/Utils.getBuffer()Ljava/nio/ByteBuffer; (6)
()Ljava/nio/ByteBuffer;
invokespecial jdk.incubator.http.RequestPublishers$StreamIterator.<init>:(Ljava/io/InputStream;Ljava/util/function/Supplier;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/incubator/http/RequestPublishers$StreamIterator;
0 2 1 is Ljava/io/InputStream;
MethodParameters:
Name Flags
is
void <init>(java.io.InputStream, java.util.function.Supplier<? extends java.nio.ByteBuffer>);
descriptor: (Ljava/io/InputStream;Ljava/util/function/Supplier;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_1
putfield jdk.incubator.http.RequestPublishers$StreamIterator.need2Read:Z
2: aload 0
aload 1
putfield jdk.incubator.http.RequestPublishers$StreamIterator.is:Ljava/io/InputStream;
3: aload 0
aload 2
putfield jdk.incubator.http.RequestPublishers$StreamIterator.bufSupplier:Ljava/util/function/Supplier;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/incubator/http/RequestPublishers$StreamIterator;
0 5 1 is Ljava/io/InputStream;
0 5 2 bufSupplier Ljava/util/function/Supplier<+Ljava/nio/ByteBuffer;>;
Signature: (Ljava/io/InputStream;Ljava/util/function/Supplier<+Ljava/nio/ByteBuffer;>;)V
MethodParameters:
Name Flags
is
bufSupplier
private int read();
descriptor: ()I
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=1
start local 0 0: aload 0
aload 0
getfield jdk.incubator.http.RequestPublishers$StreamIterator.bufSupplier:Ljava/util/function/Supplier;
invokeinterface java.util.function.Supplier.get:()Ljava/lang/Object;
checkcast java.nio.ByteBuffer
putfield jdk.incubator.http.RequestPublishers$StreamIterator.nextBuffer:Ljava/nio/ByteBuffer;
1: aload 0
getfield jdk.incubator.http.RequestPublishers$StreamIterator.nextBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.clear:()Ljava/nio/ByteBuffer;
pop
2: aload 0
getfield jdk.incubator.http.RequestPublishers$StreamIterator.nextBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.array:()[B
astore 1
start local 1 3: aload 0
getfield jdk.incubator.http.RequestPublishers$StreamIterator.nextBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.arrayOffset:()I
istore 2
start local 2 4: aload 0
getfield jdk.incubator.http.RequestPublishers$StreamIterator.nextBuffer:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.capacity:()I
istore 3
start local 3 5: aload 0
getfield jdk.incubator.http.RequestPublishers$StreamIterator.is:Ljava/io/InputStream;
aload 1
iload 2
iload 3
invokevirtual java.io.InputStream.read:([BII)I
istore 4
start local 4 6: iload 4
iconst_m1
if_icmpne 9
7: aload 0
getfield jdk.incubator.http.RequestPublishers$StreamIterator.is:Ljava/io/InputStream;
invokevirtual java.io.InputStream.close:()V
8: iconst_m1
ireturn
9: StackMap locals: jdk.incubator.http.RequestPublishers$StreamIterator byte[] int int int
StackMap stack:
aload 0
getfield jdk.incubator.http.RequestPublishers$StreamIterator.nextBuffer:Ljava/nio/ByteBuffer;
iload 4
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/ByteBuffer;
pop
10: aload 0
getfield jdk.incubator.http.RequestPublishers$StreamIterator.nextBuffer:Ljava/nio/ByteBuffer;
iconst_0
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/ByteBuffer;
pop
11: iload 4
12: ireturn
end local 4 13: StackMap locals: jdk.incubator.http.RequestPublishers$StreamIterator byte[] int int
StackMap stack: java.io.IOException
pop
14: iconst_m1
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljdk/incubator/http/RequestPublishers$StreamIterator;
3 15 1 buf [B
4 15 2 offset I
5 15 3 cap I
6 13 4 n I
Exception table:
from to target type
5 8 13 Class java.io.IOException
9 12 13 Class java.io.IOException
public synchronized boolean hasNext();
descriptor: ()Z
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.RequestPublishers$StreamIterator.need2Read:Z
ifeq 7
1: aload 0
aload 0
invokevirtual jdk.incubator.http.RequestPublishers$StreamIterator.read:()I
iconst_m1
if_icmpeq 2
iconst_1
goto 3
StackMap locals:
StackMap stack: jdk.incubator.http.RequestPublishers$StreamIterator
2: iconst_0
StackMap locals: jdk.incubator.http.RequestPublishers$StreamIterator
StackMap stack: jdk.incubator.http.RequestPublishers$StreamIterator int
3: putfield jdk.incubator.http.RequestPublishers$StreamIterator.haveNext:Z
4: aload 0
getfield jdk.incubator.http.RequestPublishers$StreamIterator.haveNext:Z
ifeq 6
5: aload 0
iconst_0
putfield jdk.incubator.http.RequestPublishers$StreamIterator.need2Read:Z
6: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.RequestPublishers$StreamIterator.haveNext:Z
ireturn
7: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.RequestPublishers$StreamIterator.haveNext:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/incubator/http/RequestPublishers$StreamIterator;
public synchronized java.nio.ByteBuffer next();
descriptor: ()Ljava/nio/ByteBuffer;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.incubator.http.RequestPublishers$StreamIterator.hasNext:()Z
ifne 2
1: new java.util.NoSuchElementException
dup
invokespecial java.util.NoSuchElementException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield jdk.incubator.http.RequestPublishers$StreamIterator.need2Read:Z
3: aload 0
getfield jdk.incubator.http.RequestPublishers$StreamIterator.nextBuffer:Ljava/nio/ByteBuffer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/incubator/http/RequestPublishers$StreamIterator;
public java.lang.Object next();
descriptor: ()Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual jdk.incubator.http.RequestPublishers$StreamIterator.next:()Ljava/nio/ByteBuffer;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Ljava/util/Iterator<Ljava/nio/ByteBuffer;>;
SourceFile: "RequestPublishers.java"
NestHost: jdk.incubator.http.RequestPublishers
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
StreamIterator = jdk.incubator.http.RequestPublishers$StreamIterator of jdk.incubator.http.RequestPublishers