class jdk.incubator.http.RequestProcessors$FileProcessor extends jdk.incubator.http.RequestProcessors$InputStreamProcessor implements jdk.incubator.http.HttpRequest$BodyProcessor
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.incubator.http.RequestProcessors$FileProcessor
super_class: jdk.incubator.http.RequestProcessors$InputStreamProcessor
{
java.io.File file;
descriptor: Ljava/io/File;
flags: (0x0000)
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
aload 1
invokedynamic get(Ljava/nio/file/Path;)Ljava/util/function/Supplier;
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/RequestProcessors$FileProcessor.lambda$0(Ljava/nio/file/Path;)Ljava/io/InputStream; (6)
()Ljava/io/InputStream;
invokespecial jdk.incubator.http.RequestProcessors$InputStreamProcessor.<init>:(Ljava/util/function/Supplier;)V
1: aload 0
aload 1
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
putfield jdk.incubator.http.RequestProcessors$FileProcessor.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/RequestProcessors$FileProcessor;
0 3 1 name Ljava/nio/file/Path;
MethodParameters:
Name Flags
name
static java.io.FileInputStream create(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljava/io/FileInputStream;
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new java.io.FileInputStream
dup
aload 0
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
invokespecial java.io.FileInputStream.<init>:(Ljava/io/File;)V
1: areturn
2: StackMap locals:
StackMap stack: java.io.FileNotFoundException
astore 1
start local 1 3: new java.io.UncheckedIOException
dup
aload 1
invokespecial java.io.UncheckedIOException.<init>:(Ljava/io/IOException;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 name Ljava/nio/file/Path;
3 4 1 e Ljava/io/FileNotFoundException;
Exception table:
from to target type
0 1 2 Class java.io.FileNotFoundException
MethodParameters:
Name Flags
name
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$FileProcessor.file:Ljava/io/File;
invokevirtual java.io.File.length:()J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/RequestProcessors$FileProcessor;
private static java.io.InputStream lambda$0(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljava/io/InputStream;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokestatic jdk.incubator.http.RequestProcessors$FileProcessor.create:(Ljava/nio/file/Path;)Ljava/io/FileInputStream;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "RequestProcessors.java"
NestHost: jdk.incubator.http.RequestProcessors
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract BodyProcessor = jdk.incubator.http.HttpRequest$BodyProcessor of jdk.incubator.http.HttpRequest
FileProcessor = jdk.incubator.http.RequestProcessors$FileProcessor of jdk.incubator.http.RequestProcessors
InputStreamProcessor = jdk.incubator.http.RequestProcessors$InputStreamProcessor of jdk.incubator.http.RequestProcessors