class jdk.incubator.http.RequestPublishers$FilePublisher implements jdk.incubator.http.HttpRequest$BodyPublisher
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.incubator.http.RequestPublishers$FilePublisher
super_class: java.lang.Object
{
private final java.io.File file;
descriptor: Ljava/io/File;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile java.security.AccessControlContext acc;
descriptor: Ljava/security/AccessControlContext;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Ljdk/incubator/http/RequestPublishers;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic jdk.incubator.http.RequestPublishers$FilePublisher.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
putfield jdk.incubator.http.RequestPublishers$FilePublisher.file:Ljava/io/File;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/incubator/http/RequestPublishers$FilePublisher;
0 3 1 name Ljava/nio/file/Path;
MethodParameters:
Name Flags
name
void setAccessControlContext(java.security.AccessControlContext);
descriptor: (Ljava/security/AccessControlContext;)V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield jdk.incubator.http.RequestPublishers$FilePublisher.acc:Ljava/security/AccessControlContext;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/incubator/http/RequestPublishers$FilePublisher;
0 2 1 acc Ljava/security/AccessControlContext;
MethodParameters:
Name Flags
acc
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=3, locals=4, args_size=2
start local 0 start local 1 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
ifnull 4
aload 0
getfield jdk.incubator.http.RequestPublishers$FilePublisher.acc:Ljava/security/AccessControlContext;
ifnonnull 4
1: new java.lang.InternalError
dup
2: ldc "Unexpected null acc when security manager has been installed"
3: invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
invokedynamic run(Ljdk/incubator/http/RequestPublishers$FilePublisher;)Ljava/security/PrivilegedExceptionAction;
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/RequestPublishers$FilePublisher.lambda$0()Ljava/io/FileInputStream; (7)
()Ljava/io/FileInputStream;
5: astore 3
start local 3 6: aload 3
aload 0
getfield jdk.incubator.http.RequestPublishers$FilePublisher.acc:Ljava/security/AccessControlContext;
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedExceptionAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;
checkcast java.io.InputStream
astore 2
end local 3 start local 2 7: goto 10
end local 2 StackMap locals:
StackMap stack: java.security.PrivilegedActionException
8: astore 3
start local 3 9: new java.io.UncheckedIOException
dup
aload 3
invokevirtual java.security.PrivilegedActionException.getCause:()Ljava/lang/Throwable;
checkcast java.io.IOException
invokespecial java.io.UncheckedIOException.<init>:(Ljava/io/IOException;)V
athrow
end local 3 start local 2 10: StackMap locals: java.io.InputStream
StackMap stack:
new jdk.incubator.http.PullPublisher
dup
aload 2
invokedynamic iterator(Ljava/io/InputStream;)Ljava/lang/Iterable;
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/util/Iterator;
jdk/incubator/http/RequestPublishers$FilePublisher.lambda$1(Ljava/io/InputStream;)Ljava/util/Iterator; (6)
()Ljava/util/Iterator;
invokespecial jdk.incubator.http.PullPublisher.<init>:(Ljava/lang/Iterable;)V
11: astore 3
start local 3 12: aload 3
aload 1
invokevirtual jdk.incubator.http.PullPublisher.subscribe:(Ljava/util/concurrent/Flow$Subscriber;)V
13: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Ljdk/incubator/http/RequestPublishers$FilePublisher;
0 14 1 subscriber Ljava/util/concurrent/Flow$Subscriber<-Ljava/nio/ByteBuffer;>;
7 8 2 is Ljava/io/InputStream;
10 14 2 is Ljava/io/InputStream;
6 7 3 pa Ljava/security/PrivilegedExceptionAction<Ljava/io/FileInputStream;>;
9 10 3 pae Ljava/security/PrivilegedActionException;
12 14 3 publisher Ljdk/incubator/http/PullPublisher<Ljava/nio/ByteBuffer;>;
Exception table:
from to target type
4 7 8 Class java.security.PrivilegedActionException
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=2, args_size=1
start local 0 0: getstatic jdk.incubator.http.RequestPublishers$FilePublisher.$assertionsDisabled:Z
ifne 1
invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
ifnull 1
aload 0
getfield jdk.incubator.http.RequestPublishers$FilePublisher.acc:Ljava/security/AccessControlContext;
ifnonnull 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
invokedynamic run(Ljdk/incubator/http/RequestPublishers$FilePublisher;)Ljava/security/PrivilegedAction;
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/RequestPublishers$FilePublisher.lambda$2()Ljava/lang/Long; (7)
()Ljava/lang/Long;
astore 1
start local 1 2: aload 1
aload 0
getfield jdk.incubator.http.RequestPublishers$FilePublisher.acc:Ljava/security/AccessControlContext;
invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;Ljava/security/AccessControlContext;)Ljava/lang/Object;
checkcast java.lang.Long
invokevirtual java.lang.Long.longValue:()J
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/incubator/http/RequestPublishers$FilePublisher;
2 3 1 pa Ljava/security/PrivilegedAction<Ljava/lang/Long;>;
private java.io.FileInputStream lambda$0();
descriptor: ()Ljava/io/FileInputStream;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.io.FileInputStream
dup
aload 0
getfield jdk.incubator.http.RequestPublishers$FilePublisher.file:Ljava/io/File;
invokespecial java.io.FileInputStream.<init>:(Ljava/io/File;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/RequestPublishers$FilePublisher;
Exceptions:
throws java.lang.Exception
private static java.util.Iterator lambda$1(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)Ljava/util/Iterator;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
0: new jdk.incubator.http.RequestPublishers$StreamIterator
dup
aload 0
invokespecial jdk.incubator.http.RequestPublishers$StreamIterator.<init>:(Ljava/io/InputStream;)V
areturn
LocalVariableTable:
Start End Slot Name Signature
private java.lang.Long lambda$2();
descriptor: ()Ljava/lang/Long;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.RequestPublishers$FilePublisher.file:Ljava/io/File;
invokevirtual java.io.File.length:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/RequestPublishers$FilePublisher;
}
SourceFile: "RequestPublishers.java"
NestHost: jdk.incubator.http.RequestPublishers
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract Subscriber = java.util.concurrent.Flow$Subscriber of java.util.concurrent.Flow
public abstract BodyPublisher = jdk.incubator.http.HttpRequest$BodyPublisher of jdk.incubator.http.HttpRequest
FilePublisher = jdk.incubator.http.RequestPublishers$FilePublisher of jdk.incubator.http.RequestPublishers
StreamIterator = jdk.incubator.http.RequestPublishers$StreamIterator of jdk.incubator.http.RequestPublishers