public class jdk.internal.net.http.RequestPublishers$ByteArrayPublisher 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$ByteArrayPublisher
super_class: java.lang.Object
{
private final int length;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final byte[] content;
descriptor: [B
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int offset;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int bufSize;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
aload 1
arraylength
invokespecial jdk.internal.net.http.RequestPublishers$ByteArrayPublisher.<init>:([BII)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/net/http/RequestPublishers$ByteArrayPublisher;
0 2 1 content [B
MethodParameters:
Name Flags
content
public void <init>(byte[], int, int);
descriptor: ([BII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
iload 2
iload 3
getstatic jdk.internal.net.http.common.Utils.BUFSIZE:I
invokespecial jdk.internal.net.http.RequestPublishers$ByteArrayPublisher.<init>:([BIII)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/net/http/RequestPublishers$ByteArrayPublisher;
0 2 1 content [B
0 2 2 offset I
0 2 3 length I
MethodParameters:
Name Flags
content
offset
length
void <init>(byte[], int, int, int);
descriptor: ([BIII)V
flags: (0x0000)
Code:
stack=2, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield jdk.internal.net.http.RequestPublishers$ByteArrayPublisher.content:[B
2: aload 0
iload 2
putfield jdk.internal.net.http.RequestPublishers$ByteArrayPublisher.offset:I
3: aload 0
iload 3
putfield jdk.internal.net.http.RequestPublishers$ByteArrayPublisher.length:I
4: aload 0
iload 4
putfield jdk.internal.net.http.RequestPublishers$ByteArrayPublisher.bufSize:I
5: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/net/http/RequestPublishers$ByteArrayPublisher;
0 6 1 content [B
0 6 2 offset I
0 6 3 length I
0 6 4 bufSize I
MethodParameters:
Name Flags
content
offset
length
bufSize
java.util.List<java.nio.ByteBuffer> copy(byte[], int, int);
descriptor: ([BII)Ljava/util/List;
flags: (0x0000)
Code:
stack=4, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 4
start local 4 1: goto 10
2: StackMap locals: java.util.List
StackMap stack:
aload 0
getfield jdk.internal.net.http.RequestPublishers$ByteArrayPublisher.bufSize:I
iload 3
invokestatic java.lang.Math.min:(II)I
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
astore 5
start local 5 3: aload 5
invokevirtual java.nio.ByteBuffer.capacity:()I
istore 6
start local 6 4: iload 6
iload 3
invokestatic java.lang.Math.min:(II)I
istore 7
start local 7 5: aload 5
aload 1
iload 2
iload 7
invokevirtual java.nio.ByteBuffer.put:([BII)Ljava/nio/ByteBuffer;
pop
6: iload 2
iload 7
iadd
istore 2
7: iload 3
iload 7
isub
istore 3
8: aload 5
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/ByteBuffer;
pop
9: aload 4
aload 5
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 7 end local 6 end local 5 10: StackMap locals:
StackMap stack:
iload 3
ifgt 2
11: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljdk/internal/net/http/RequestPublishers$ByteArrayPublisher;
0 12 1 content [B
0 12 2 offset I
0 12 3 length I
1 12 4 bufs Ljava/util/List<Ljava/nio/ByteBuffer;>;
3 10 5 b Ljava/nio/ByteBuffer;
4 10 6 max I
5 10 7 tocopy I
Signature: ([BII)Ljava/util/List<Ljava/nio/ByteBuffer;>;
MethodParameters:
Name Flags
content
offset
length
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=4, args_size=2
start local 0 start local 1 0: aload 0
aload 0
getfield jdk.internal.net.http.RequestPublishers$ByteArrayPublisher.content:[B
aload 0
getfield jdk.internal.net.http.RequestPublishers$ByteArrayPublisher.offset:I
aload 0
getfield jdk.internal.net.http.RequestPublishers$ByteArrayPublisher.length:I
invokevirtual jdk.internal.net.http.RequestPublishers$ByteArrayPublisher.copy:([BII)Ljava/util/List;
astore 2
start local 2 1: new jdk.internal.net.http.PullPublisher
dup
aload 2
invokespecial jdk.internal.net.http.PullPublisher.<init>:(Ljava/lang/Iterable;)V
astore 3
start local 3 2: aload 3
aload 1
invokevirtual jdk.internal.net.http.PullPublisher.subscribe:(Ljava/util/concurrent/Flow$Subscriber;)V
3: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/net/http/RequestPublishers$ByteArrayPublisher;
0 4 1 subscriber Ljava/util/concurrent/Flow$Subscriber<-Ljava/nio/ByteBuffer;>;
1 4 2 copy Ljava/util/List<Ljava/nio/ByteBuffer;>;
2 4 3 delegate Ljdk/internal/net/http/PullPublisher<Ljava/nio/ByteBuffer;>;
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: aload 0
getfield jdk.internal.net.http.RequestPublishers$ByteArrayPublisher.length:I
i2l
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/net/http/RequestPublishers$ByteArrayPublisher;
}
SourceFile: "RequestPublishers.java"
NestHost: jdk.internal.net.http.RequestPublishers
InnerClasses:
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 ByteArrayPublisher = jdk.internal.net.http.RequestPublishers$ByteArrayPublisher of jdk.internal.net.http.RequestPublishers