class jdk.internal.net.http.RequestPublishers$IterablePublisher$ByteBufferIterator implements java.util.Iterator<java.nio.ByteBuffer>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.internal.net.http.RequestPublishers$IterablePublisher$ByteBufferIterator
super_class: java.lang.Object
{
final java.util.concurrent.ConcurrentLinkedQueue<java.nio.ByteBuffer> buffers;
descriptor: Ljava/util/concurrent/ConcurrentLinkedQueue;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentLinkedQueue<Ljava/nio/ByteBuffer;>;
final java.util.Iterator<byte[]> iterator;
descriptor: Ljava/util/Iterator;
flags: (0x0010) ACC_FINAL
Signature: Ljava/util/Iterator<[B>;
final jdk.internal.net.http.RequestPublishers$IterablePublisher this$1;
descriptor: Ljdk/internal/net/http/RequestPublishers$IterablePublisher;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(jdk.internal.net.http.RequestPublishers$IterablePublisher);
descriptor: (Ljdk/internal/net/http/RequestPublishers$IterablePublisher;)V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=2
start local 0 0: aload 0
aload 1
putfield jdk.internal.net.http.RequestPublishers$IterablePublisher$ByteBufferIterator.this$1:Ljdk/internal/net/http/RequestPublishers$IterablePublisher;
aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.concurrent.ConcurrentLinkedQueue
dup
invokespecial java.util.concurrent.ConcurrentLinkedQueue.<init>:()V
putfield jdk.internal.net.http.RequestPublishers$IterablePublisher$ByteBufferIterator.buffers:Ljava/util/concurrent/ConcurrentLinkedQueue;
2: aload 0
aload 1
getfield jdk.internal.net.http.RequestPublishers$IterablePublisher.content:Ljava/lang/Iterable;
invokeinterface java.lang.Iterable.iterator:()Ljava/util/Iterator;
putfield jdk.internal.net.http.RequestPublishers$IterablePublisher$ByteBufferIterator.iterator:Ljava/util/Iterator;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/net/http/RequestPublishers$IterablePublisher$ByteBufferIterator;
MethodParameters:
Name Flags
this$0 final
public boolean hasNext();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.RequestPublishers$IterablePublisher$ByteBufferIterator.buffers:Ljava/util/concurrent/ConcurrentLinkedQueue;
invokevirtual java.util.concurrent.ConcurrentLinkedQueue.isEmpty:()Z
ifeq 1
aload 0
getfield jdk.internal.net.http.RequestPublishers$IterablePublisher$ByteBufferIterator.iterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
iconst_0
ireturn
StackMap locals:
StackMap stack:
1: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/net/http/RequestPublishers$IterablePublisher$ByteBufferIterator;
public java.nio.ByteBuffer next();
descriptor: ()Ljava/nio/ByteBuffer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.RequestPublishers$IterablePublisher$ByteBufferIterator.buffers:Ljava/util/concurrent/ConcurrentLinkedQueue;
invokevirtual java.util.concurrent.ConcurrentLinkedQueue.poll:()Ljava/lang/Object;
checkcast java.nio.ByteBuffer
astore 1
start local 1 1: goto 4
2: StackMap locals: java.nio.ByteBuffer
StackMap stack:
aload 0
invokevirtual jdk.internal.net.http.RequestPublishers$IterablePublisher$ByteBufferIterator.copy:()V
3: aload 0
getfield jdk.internal.net.http.RequestPublishers$IterablePublisher$ByteBufferIterator.buffers:Ljava/util/concurrent/ConcurrentLinkedQueue;
invokevirtual java.util.concurrent.ConcurrentLinkedQueue.poll:()Ljava/lang/Object;
checkcast java.nio.ByteBuffer
astore 1
4: StackMap locals:
StackMap stack:
aload 1
ifnull 2
5: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/net/http/RequestPublishers$IterablePublisher$ByteBufferIterator;
1 6 1 buffer Ljava/nio/ByteBuffer;
java.nio.ByteBuffer getBuffer();
descriptor: ()Ljava/nio/ByteBuffer;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic jdk.internal.net.http.common.Utils.getBuffer:()Ljava/nio/ByteBuffer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/RequestPublishers$IterablePublisher$ByteBufferIterator;
void copy();
descriptor: ()V
flags: (0x0000)
Code:
stack=4, locals=7, args_size=1
start local 0 0: aload 0
getfield jdk.internal.net.http.RequestPublishers$IterablePublisher$ByteBufferIterator.iterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast byte[]
astore 1
start local 1 1: aload 1
arraylength
istore 2
start local 2 2: iload 2
ifne 4
aload 0
getfield jdk.internal.net.http.RequestPublishers$IterablePublisher$ByteBufferIterator.iterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.hasNext:()Z
ifeq 4
3: return
4: StackMap locals: byte[] int
StackMap stack:
iconst_0
istore 3
start local 3 5: StackMap locals: int
StackMap stack:
aload 0
invokevirtual jdk.internal.net.http.RequestPublishers$IterablePublisher$ByteBufferIterator.getBuffer:()Ljava/nio/ByteBuffer;
astore 4
start local 4 6: aload 4
invokevirtual java.nio.ByteBuffer.capacity:()I
istore 5
start local 5 7: iload 5
iload 2
invokestatic java.lang.Math.min:(II)I
istore 6
start local 6 8: aload 4
aload 1
iload 3
iload 6
invokevirtual java.nio.ByteBuffer.put:([BII)Ljava/nio/ByteBuffer;
pop
9: iload 3
iload 6
iadd
istore 3
10: iload 2
iload 6
isub
istore 2
11: aload 4
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/ByteBuffer;
pop
12: aload 0
getfield jdk.internal.net.http.RequestPublishers$IterablePublisher$ByteBufferIterator.buffers:Ljava/util/concurrent/ConcurrentLinkedQueue;
aload 4
invokevirtual java.util.concurrent.ConcurrentLinkedQueue.add:(Ljava/lang/Object;)Z
pop
end local 6 end local 5 end local 4 13: iload 2
14: ifgt 5
15: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljdk/internal/net/http/RequestPublishers$IterablePublisher$ByteBufferIterator;
1 16 1 bytes [B
2 16 2 length I
5 16 3 offset I
6 13 4 b Ljava/nio/ByteBuffer;
7 13 5 max I
8 13 6 tocopy I
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.internal.net.http.RequestPublishers$IterablePublisher$ByteBufferIterator.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.internal.net.http.RequestPublishers
InnerClasses:
public IterablePublisher = jdk.internal.net.http.RequestPublishers$IterablePublisher of jdk.internal.net.http.RequestPublishers
ByteBufferIterator = jdk.internal.net.http.RequestPublishers$IterablePublisher$ByteBufferIterator of jdk.internal.net.http.RequestPublishers$IterablePublisher