public interface jdk.incubator.http.HttpRequest$BodyPublisher extends java.util.concurrent.Flow$Publisher<java.nio.ByteBuffer>
minor version: 0
major version: 59
flags: flags: (0x0601) ACC_PUBLIC, ACC_INTERFACE, ACC_ABSTRACT
this_class: jdk.incubator.http.HttpRequest$BodyPublisher
super_class: java.lang.Object
{
public static jdk.incubator.http.HttpRequest$BodyPublisher fromPublisher(java.util.concurrent.Flow$Publisher<? extends java.nio.ByteBuffer>);
descriptor: (Ljava/util/concurrent/Flow$Publisher;)Ljdk/incubator/http/HttpRequest$BodyPublisher;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: new jdk.incubator.http.RequestPublishers$PublisherAdapter
dup
aload 0
ldc -1
invokespecial jdk.incubator.http.RequestPublishers$PublisherAdapter.<init>:(Ljava/util/concurrent/Flow$Publisher;J)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 publisher Ljava/util/concurrent/Flow$Publisher<+Ljava/nio/ByteBuffer;>;
Signature: (Ljava/util/concurrent/Flow$Publisher<+Ljava/nio/ByteBuffer;>;)Ljdk/incubator/http/HttpRequest$BodyPublisher;
MethodParameters:
Name Flags
publisher
public static jdk.incubator.http.HttpRequest$BodyPublisher fromPublisher(java.util.concurrent.Flow$Publisher<? extends java.nio.ByteBuffer>, long);
descriptor: (Ljava/util/concurrent/Flow$Publisher;J)Ljdk/incubator/http/HttpRequest$BodyPublisher;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: lload 1
lconst_1
lcmp
ifge 2
1: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "non-positive contentLength: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
lload 1
invokevirtual java.lang.StringBuilder.append:(J)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
new jdk.incubator.http.RequestPublishers$PublisherAdapter
dup
aload 0
lload 1
invokespecial jdk.incubator.http.RequestPublishers$PublisherAdapter.<init>:(Ljava/util/concurrent/Flow$Publisher;J)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 publisher Ljava/util/concurrent/Flow$Publisher<+Ljava/nio/ByteBuffer;>;
0 3 1 contentLength J
Signature: (Ljava/util/concurrent/Flow$Publisher<+Ljava/nio/ByteBuffer;>;J)Ljdk/incubator/http/HttpRequest$BodyPublisher;
MethodParameters:
Name Flags
publisher
contentLength
public static jdk.incubator.http.HttpRequest$BodyPublisher fromString(java.lang.String);
descriptor: (Ljava/lang/String;)Ljdk/incubator/http/HttpRequest$BodyPublisher;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokestatic jdk.incubator.http.HttpRequest$BodyPublisher.fromString:(Ljava/lang/String;Ljava/nio/charset/Charset;)Ljdk/incubator/http/HttpRequest$BodyPublisher;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 body Ljava/lang/String;
MethodParameters:
Name Flags
body
public static jdk.incubator.http.HttpRequest$BodyPublisher fromString(java.lang.String, java.nio.charset.Charset);
descriptor: (Ljava/lang/String;Ljava/nio/charset/Charset;)Ljdk/incubator/http/HttpRequest$BodyPublisher;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new jdk.incubator.http.RequestPublishers$StringPublisher
dup
aload 0
aload 1
invokespecial jdk.incubator.http.RequestPublishers$StringPublisher.<init>:(Ljava/lang/String;Ljava/nio/charset/Charset;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 s Ljava/lang/String;
0 1 1 charset Ljava/nio/charset/Charset;
MethodParameters:
Name Flags
s
charset
public static jdk.incubator.http.HttpRequest$BodyPublisher fromInputStream(java.util.function.Supplier<? extends java.io.InputStream>);
descriptor: (Ljava/util/function/Supplier;)Ljdk/incubator/http/HttpRequest$BodyPublisher;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new jdk.incubator.http.RequestPublishers$InputStreamPublisher
dup
aload 0
invokespecial jdk.incubator.http.RequestPublishers$InputStreamPublisher.<init>:(Ljava/util/function/Supplier;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 streamSupplier Ljava/util/function/Supplier<+Ljava/io/InputStream;>;
Signature: (Ljava/util/function/Supplier<+Ljava/io/InputStream;>;)Ljdk/incubator/http/HttpRequest$BodyPublisher;
MethodParameters:
Name Flags
streamSupplier
public static jdk.incubator.http.HttpRequest$BodyPublisher fromByteArray(byte[]);
descriptor: ([B)Ljdk/incubator/http/HttpRequest$BodyPublisher;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new jdk.incubator.http.RequestPublishers$ByteArrayPublisher
dup
aload 0
invokespecial jdk.incubator.http.RequestPublishers$ByteArrayPublisher.<init>:([B)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 buf [B
MethodParameters:
Name Flags
buf
public static jdk.incubator.http.HttpRequest$BodyPublisher fromByteArray(byte[], int, int);
descriptor: ([BII)Ljdk/incubator/http/HttpRequest$BodyPublisher;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 1
iload 2
aload 0
arraylength
invokestatic java.util.Objects.checkFromIndexSize:(III)I
pop
1: new jdk.incubator.http.RequestPublishers$ByteArrayPublisher
dup
aload 0
iload 1
iload 2
invokespecial jdk.incubator.http.RequestPublishers$ByteArrayPublisher.<init>:([BII)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 buf [B
0 2 1 offset I
0 2 2 length I
MethodParameters:
Name Flags
buf
offset
length
private static java.lang.String pathForSecurityCheck(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
invokevirtual java.io.File.getPath:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 path Ljava/nio/file/Path;
MethodParameters:
Name Flags
path
public static jdk.incubator.http.HttpRequest$BodyPublisher fromFile(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljdk/incubator/http/HttpRequest$BodyPublisher;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: aload 0
invokestatic java.util.Objects.requireNonNull:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 2: aload 1
ifnull 4
3: aload 1
aload 0
invokestatic jdk.incubator.http.HttpRequest$BodyPublisher.pathForSecurityCheck:(Ljava/nio/file/Path;)Ljava/lang/String;
invokevirtual java.lang.SecurityManager.checkRead:(Ljava/lang/String;)V
4: StackMap locals: java.lang.SecurityManager
StackMap stack:
aload 0
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.notExists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 6
5: new java.io.FileNotFoundException
dup
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " not found"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.FileNotFoundException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
new jdk.incubator.http.RequestPublishers$FilePublisher
dup
aload 0
invokespecial jdk.incubator.http.RequestPublishers$FilePublisher.<init>:(Ljava/nio/file/Path;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 path Ljava/nio/file/Path;
2 7 1 sm Ljava/lang/SecurityManager;
Exceptions:
throws java.io.FileNotFoundException
MethodParameters:
Name Flags
path
public static jdk.incubator.http.HttpRequest$BodyPublisher fromByteArrays(java.lang.Iterable<byte[]>);
descriptor: (Ljava/lang/Iterable;)Ljdk/incubator/http/HttpRequest$BodyPublisher;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new jdk.incubator.http.RequestPublishers$IterablePublisher
dup
aload 0
invokespecial jdk.incubator.http.RequestPublishers$IterablePublisher.<init>:(Ljava/lang/Iterable;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 iter Ljava/lang/Iterable<[B>;
Signature: (Ljava/lang/Iterable<[B>;)Ljdk/incubator/http/HttpRequest$BodyPublisher;
MethodParameters:
Name Flags
iter
public static jdk.incubator.http.HttpRequest$BodyPublisher noBody();
descriptor: ()Ljdk/incubator/http/HttpRequest$BodyPublisher;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new jdk.incubator.http.RequestPublishers$EmptyPublisher
dup
invokespecial jdk.incubator.http.RequestPublishers$EmptyPublisher.<init>:()V
areturn
LocalVariableTable:
Start End Slot Name Signature
public abstract long contentLength();
descriptor: ()J
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
}
Signature: Ljava/lang/Object;Ljava/util/concurrent/Flow$Publisher<Ljava/nio/ByteBuffer;>;
SourceFile: "HttpRequest.java"
NestHost: jdk.incubator.http.HttpRequest
InnerClasses:
public abstract Publisher = java.util.concurrent.Flow$Publisher of java.util.concurrent.Flow
public abstract BodyPublisher = jdk.incubator.http.HttpRequest$BodyPublisher of jdk.incubator.http.HttpRequest
ByteArrayPublisher = jdk.incubator.http.RequestPublishers$ByteArrayPublisher of jdk.incubator.http.RequestPublishers
EmptyPublisher = jdk.incubator.http.RequestPublishers$EmptyPublisher of jdk.incubator.http.RequestPublishers
FilePublisher = jdk.incubator.http.RequestPublishers$FilePublisher of jdk.incubator.http.RequestPublishers
InputStreamPublisher = jdk.incubator.http.RequestPublishers$InputStreamPublisher of jdk.incubator.http.RequestPublishers
IterablePublisher = jdk.incubator.http.RequestPublishers$IterablePublisher of jdk.incubator.http.RequestPublishers
final PublisherAdapter = jdk.incubator.http.RequestPublishers$PublisherAdapter of jdk.incubator.http.RequestPublishers
StringPublisher = jdk.incubator.http.RequestPublishers$StringPublisher of jdk.incubator.http.RequestPublishers