class jdk.incubator.http.RequestProcessors$ByteArrayProcessor 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$ByteArrayProcessor
super_class: jdk.incubator.http.RequestProcessors$ProcessorBase
{
private volatile java.util.concurrent.Flow$Publisher<java.nio.ByteBuffer> delegate;
descriptor: Ljava/util/concurrent/Flow$Publisher;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
Signature: Ljava/util/concurrent/Flow$Publisher<Ljava/nio/ByteBuffer;>;
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
void <init>(byte[]);
descriptor: ([B)V
flags: (0x0000)
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.incubator.http.RequestProcessors$ByteArrayProcessor.<init>:([BII)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/incubator/http/RequestProcessors$ByteArrayProcessor;
0 2 1 content [B
MethodParameters:
Name Flags
content
void <init>(byte[], int, int);
descriptor: ([BII)V
flags: (0x0000)
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial jdk.incubator.http.RequestProcessors$ProcessorBase.<init>:()V
1: aload 0
aload 1
putfield jdk.incubator.http.RequestProcessors$ByteArrayProcessor.content:[B
2: aload 0
iload 2
putfield jdk.incubator.http.RequestProcessors$ByteArrayProcessor.offset:I
3: aload 0
iload 3
putfield jdk.incubator.http.RequestProcessors$ByteArrayProcessor.length:I
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/incubator/http/RequestProcessors$ByteArrayProcessor;
0 5 1 content [B
0 5 2 offset I
0 5 3 length I
MethodParameters:
Name Flags
content
offset
length
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:
getstatic jdk.incubator.http.internal.common.Utils.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/incubator/http/RequestProcessors$ByteArrayProcessor;
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=3, args_size=2
start local 0 start local 1 0: aload 0
aload 0
getfield jdk.incubator.http.RequestProcessors$ByteArrayProcessor.content:[B
aload 0
getfield jdk.incubator.http.RequestProcessors$ByteArrayProcessor.offset:I
aload 0
getfield jdk.incubator.http.RequestProcessors$ByteArrayProcessor.length:I
invokevirtual jdk.incubator.http.RequestProcessors$ByteArrayProcessor.copy:([BII)Ljava/util/List;
astore 2
start local 2 1: aload 0
new jdk.incubator.http.PullPublisher
dup
aload 2
invokespecial jdk.incubator.http.PullPublisher.<init>:(Ljava/lang/Iterable;)V
putfield jdk.incubator.http.RequestProcessors$ByteArrayProcessor.delegate:Ljava/util/concurrent/Flow$Publisher;
2: aload 0
getfield jdk.incubator.http.RequestProcessors$ByteArrayProcessor.delegate:Ljava/util/concurrent/Flow$Publisher;
aload 1
invokeinterface java.util.concurrent.Flow$Publisher.subscribe:(Ljava/util/concurrent/Flow$Subscriber;)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/incubator/http/RequestProcessors$ByteArrayProcessor;
0 4 1 subscriber Ljava/util/concurrent/Flow$Subscriber<-Ljava/nio/ByteBuffer;>;
1 4 2 copy Ljava/util/List<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.incubator.http.RequestProcessors$ByteArrayProcessor.length:I
i2l
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/RequestProcessors$ByteArrayProcessor;
}
SourceFile: "RequestProcessors.java"
NestHost: jdk.incubator.http.RequestProcessors
InnerClasses:
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
ByteArrayProcessor = jdk.incubator.http.RequestProcessors$ByteArrayProcessor of jdk.incubator.http.RequestProcessors
abstract ProcessorBase = jdk.incubator.http.RequestProcessors$ProcessorBase of jdk.incubator.http.RequestProcessors