class jdk.incubator.http.ResponseProcessors$PathProcessor extends jdk.incubator.http.ResponseProcessors$AbstractProcessor<java.nio.file.Path>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.incubator.http.ResponseProcessors$PathProcessor
super_class: jdk.incubator.http.ResponseProcessors$AbstractProcessor
{
private final java.nio.file.Path file;
descriptor: Ljava/nio/file/Path;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.CompletableFuture<java.nio.file.Path> result;
descriptor: Ljava/util/concurrent/CompletableFuture;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/CompletableFuture<Ljava/nio/file/Path;>;
private java.util.concurrent.Flow$Subscription subscription;
descriptor: Ljava/util/concurrent/Flow$Subscription;
flags: (0x0002) ACC_PRIVATE
private java.nio.channels.FileChannel out;
descriptor: Ljava/nio/channels/FileChannel;
flags: (0x0002) ACC_PRIVATE
private final java.nio.file.OpenOption[] options;
descriptor: [Ljava/nio/file/OpenOption;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(java.nio.file.Path, java.nio.file.OpenOption[]);
descriptor: (Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)V
flags: (0x0080) ACC_VARARGS
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial jdk.incubator.http.ResponseProcessors$AbstractProcessor.<init>:()V
1: aload 0
new jdk.incubator.http.internal.common.MinimalFuture
dup
invokespecial jdk.incubator.http.internal.common.MinimalFuture.<init>:()V
putfield jdk.incubator.http.ResponseProcessors$PathProcessor.result:Ljava/util/concurrent/CompletableFuture;
2: aload 0
aload 1
putfield jdk.incubator.http.ResponseProcessors$PathProcessor.file:Ljava/nio/file/Path;
3: aload 0
aload 2
putfield jdk.incubator.http.ResponseProcessors$PathProcessor.options:[Ljava/nio/file/OpenOption;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/incubator/http/ResponseProcessors$PathProcessor;
0 5 1 file Ljava/nio/file/Path;
0 5 2 options [Ljava/nio/file/OpenOption;
MethodParameters:
Name Flags
file
options
public void onSubscribe(java.util.concurrent.Flow$Subscription);
descriptor: (Ljava/util/concurrent/Flow$Subscription;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield jdk.incubator.http.ResponseProcessors$PathProcessor.subscription:Ljava/util/concurrent/Flow$Subscription;
1: aload 0
aload 0
getfield jdk.incubator.http.ResponseProcessors$PathProcessor.file:Ljava/nio/file/Path;
aload 0
getfield jdk.incubator.http.ResponseProcessors$PathProcessor.options:[Ljava/nio/file/OpenOption;
invokestatic java.nio.channels.FileChannel.open:(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/nio/channels/FileChannel;
putfield jdk.incubator.http.ResponseProcessors$PathProcessor.out:Ljava/nio/channels/FileChannel;
2: goto 7
StackMap locals:
StackMap stack: java.io.IOException
3: astore 2
start local 2 4: aload 0
getfield jdk.incubator.http.ResponseProcessors$PathProcessor.result:Ljava/util/concurrent/CompletableFuture;
aload 2
invokevirtual java.util.concurrent.CompletableFuture.completeExceptionally:(Ljava/lang/Throwable;)Z
pop
5: aload 1
invokeinterface java.util.concurrent.Flow$Subscription.cancel:()V
6: return
end local 2 7: StackMap locals:
StackMap stack:
aload 1
lconst_1
invokeinterface java.util.concurrent.Flow$Subscription.request:(J)V
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/incubator/http/ResponseProcessors$PathProcessor;
0 9 1 subscription Ljava/util/concurrent/Flow$Subscription;
4 7 2 e Ljava/io/IOException;
Exception table:
from to target type
1 2 3 Class java.io.IOException
MethodParameters:
Name Flags
subscription
public void onNext(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.ResponseProcessors$PathProcessor.out:Ljava/nio/channels/FileChannel;
aload 1
invokevirtual java.nio.channels.FileChannel.write:(Ljava/nio/ByteBuffer;)I
pop
1: goto 7
StackMap locals:
StackMap stack: java.io.IOException
2: astore 2
start local 2 3: iconst_1
anewarray java.io.Closeable
dup
iconst_0
4: aload 0
getfield jdk.incubator.http.ResponseProcessors$PathProcessor.out:Ljava/nio/channels/FileChannel;
aastore
invokestatic jdk.incubator.http.internal.common.Utils.close:([Ljava/io/Closeable;)V
5: aload 0
getfield jdk.incubator.http.ResponseProcessors$PathProcessor.subscription:Ljava/util/concurrent/Flow$Subscription;
invokeinterface java.util.concurrent.Flow$Subscription.cancel:()V
6: aload 0
getfield jdk.incubator.http.ResponseProcessors$PathProcessor.result:Ljava/util/concurrent/CompletableFuture;
aload 2
invokevirtual java.util.concurrent.CompletableFuture.completeExceptionally:(Ljava/lang/Throwable;)Z
pop
end local 2 7: StackMap locals:
StackMap stack:
aload 0
getfield jdk.incubator.http.ResponseProcessors$PathProcessor.subscription:Ljava/util/concurrent/Flow$Subscription;
lconst_1
invokeinterface java.util.concurrent.Flow$Subscription.request:(J)V
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/incubator/http/ResponseProcessors$PathProcessor;
0 9 1 item Ljava/nio/ByteBuffer;
3 7 2 ex Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
MethodParameters:
Name Flags
item
public void onError(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.incubator.http.ResponseProcessors$PathProcessor.result:Ljava/util/concurrent/CompletableFuture;
aload 1
invokevirtual java.util.concurrent.CompletableFuture.completeExceptionally:(Ljava/lang/Throwable;)Z
pop
iconst_1
anewarray java.io.Closeable
dup
iconst_0
1: aload 0
getfield jdk.incubator.http.ResponseProcessors$PathProcessor.out:Ljava/nio/channels/FileChannel;
aastore
invokestatic jdk.incubator.http.internal.common.Utils.close:([Ljava/io/Closeable;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/incubator/http/ResponseProcessors$PathProcessor;
0 3 1 e Ljava/lang/Throwable;
MethodParameters:
Name Flags
e
public void onComplete();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: iconst_1
anewarray java.io.Closeable
dup
iconst_0
1: aload 0
getfield jdk.incubator.http.ResponseProcessors$PathProcessor.out:Ljava/nio/channels/FileChannel;
aastore
invokestatic jdk.incubator.http.internal.common.Utils.close:([Ljava/io/Closeable;)V
2: aload 0
getfield jdk.incubator.http.ResponseProcessors$PathProcessor.result:Ljava/util/concurrent/CompletableFuture;
aload 0
getfield jdk.incubator.http.ResponseProcessors$PathProcessor.file:Ljava/nio/file/Path;
invokevirtual java.util.concurrent.CompletableFuture.complete:(Ljava/lang/Object;)Z
pop
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/incubator/http/ResponseProcessors$PathProcessor;
public java.util.concurrent.CompletionStage<java.nio.file.Path> getBody();
descriptor: ()Ljava/util/concurrent/CompletionStage;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.incubator.http.ResponseProcessors$PathProcessor.result:Ljava/util/concurrent/CompletableFuture;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/incubator/http/ResponseProcessors$PathProcessor;
Signature: ()Ljava/util/concurrent/CompletionStage<Ljava/nio/file/Path;>;
public void onNext(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast java.nio.ByteBuffer
invokevirtual jdk.incubator.http.ResponseProcessors$PathProcessor.onNext:(Ljava/nio/ByteBuffer;)V
return
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljdk/incubator/http/ResponseProcessors$AbstractProcessor<Ljava/nio/file/Path;>;
SourceFile: "ResponseProcessors.java"
NestHost: jdk.incubator.http.ResponseProcessors
InnerClasses:
public abstract Subscription = java.util.concurrent.Flow$Subscription of java.util.concurrent.Flow
abstract AbstractProcessor = jdk.incubator.http.ResponseProcessors$AbstractProcessor of jdk.incubator.http.ResponseProcessors
PathProcessor = jdk.incubator.http.ResponseProcessors$PathProcessor of jdk.incubator.http.ResponseProcessors