class io.vertx.core.file.impl.FileSystemImpl$4 extends io.vertx.core.file.impl.FileSystemImpl$BlockingAction<java.lang.Void>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: io.vertx.core.file.impl.FileSystemImpl$4
super_class: io.vertx.core.file.impl.FileSystemImpl$BlockingAction
{
final io.vertx.core.file.impl.FileSystemImpl this$0;
descriptor: Lio/vertx/core/file/impl/FileSystemImpl;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
private final java.lang.String val$p;
descriptor: Ljava/lang/String;
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
private final long val$len;
descriptor: J
flags: (0x1012) ACC_PRIVATE, ACC_FINAL, ACC_SYNTHETIC
void <init>(io.vertx.core.file.impl.FileSystemImpl, io.vertx.core.file.impl.FileSystemImpl, io.vertx.core.Handler, java.lang.String, long);
descriptor: (Lio/vertx/core/file/impl/FileSystemImpl;Lio/vertx/core/file/impl/FileSystemImpl;Lio/vertx/core/Handler;Ljava/lang/String;J)V
flags: (0x0000)
Code:
stack=3, locals=7, args_size=6
start local 0 start local 3 0: aload 0
aload 2
putfield io.vertx.core.file.impl.FileSystemImpl$4.this$0:Lio/vertx/core/file/impl/FileSystemImpl;
aload 0
aload 4
putfield io.vertx.core.file.impl.FileSystemImpl$4.val$p:Ljava/lang/String;
aload 0
lload 5
putfield io.vertx.core.file.impl.FileSystemImpl$4.val$len:J
aload 0
aload 1
aload 3
invokespecial io.vertx.core.file.impl.FileSystemImpl$BlockingAction.<init>:(Lio/vertx/core/file/impl/FileSystemImpl;Lio/vertx/core/Handler;)V
return
end local 3 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/core/file/impl/FileSystemImpl$4;
0 1 3 $anonymous0 Lio/vertx/core/Handler<Lio/vertx/core/AsyncResult<Ljava/lang/Void;>;>;
MethodParameters:
Name Flags
this$0 final
this$1 final
$anonymous0
val$p final
val$len final
public java.lang.Void perform();
descriptor: ()Ljava/lang/Void;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: aconst_null
astore 1
start local 1 1: aload 0
getfield io.vertx.core.file.impl.FileSystemImpl$4.this$0:Lio/vertx/core/file/impl/FileSystemImpl;
getfield io.vertx.core.file.impl.FileSystemImpl.vertx:Lio/vertx/core/impl/VertxInternal;
aload 0
getfield io.vertx.core.file.impl.FileSystemImpl$4.val$p:Ljava/lang/String;
invokeinterface io.vertx.core.impl.VertxInternal.resolveFile:(Ljava/lang/String;)Ljava/io/File;
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
astore 2
start local 2 2: aload 0
getfield io.vertx.core.file.impl.FileSystemImpl$4.val$len:J
lconst_0
lcmp
ifge 4
3: new io.vertx.core.file.FileSystemException
dup
ldc "Cannot truncate file to size < 0"
invokespecial io.vertx.core.file.FileSystemException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: java.io.RandomAccessFile java.lang.String
StackMap stack:
aload 2
iconst_0
anewarray java.lang.String
invokestatic java.nio.file.Paths.get:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifne 6
5: new io.vertx.core.file.FileSystemException
dup
new java.lang.StringBuilder
dup
ldc "Cannot truncate file "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ". Does not exist"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial io.vertx.core.file.FileSystemException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
new java.io.RandomAccessFile
dup
aload 2
ldc "rw"
invokespecial java.io.RandomAccessFile.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 1
7: aload 1
aload 0
getfield io.vertx.core.file.impl.FileSystemImpl$4.val$len:J
invokevirtual java.io.RandomAccessFile.setLength:(J)V
8: goto 12
StackMap locals:
StackMap stack: java.lang.Throwable
9: astore 3
10: aload 1
ifnull 11
aload 1
invokevirtual java.io.RandomAccessFile.close:()V
11: StackMap locals: java.lang.Throwable
StackMap stack:
aload 3
athrow
12: StackMap locals:
StackMap stack:
aload 1
ifnull 16
aload 1
invokevirtual java.io.RandomAccessFile.close:()V
end local 2 13: goto 16
StackMap locals: io.vertx.core.file.impl.FileSystemImpl$4 java.io.RandomAccessFile
StackMap stack: java.io.IOException
14: astore 2
start local 2 15: new io.vertx.core.file.FileSystemException
dup
aload 2
invokespecial io.vertx.core.file.FileSystemException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 16: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lio/vertx/core/file/impl/FileSystemImpl$4;
1 17 1 raf Ljava/io/RandomAccessFile;
2 13 2 path Ljava/lang/String;
15 16 2 e Ljava/io/IOException;
Exception table:
from to target type
6 9 9 any
1 13 14 Class java.io.IOException
public java.lang.Object perform();
descriptor: ()Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual io.vertx.core.file.impl.FileSystemImpl$4.perform:()Ljava/lang/Void;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Lio/vertx/core/file/impl/FileSystemImpl$BlockingAction<Ljava/lang/Void;>;
SourceFile: "FileSystemImpl.java"
EnclosingMethod: io.vertx.core.file.impl.FileSystemImpl.truncateInternal:(Ljava/lang/String;JLio/vertx/core/Handler;)Lio/vertx/core/file/impl/FileSystemImpl$BlockingAction;
NestHost: io.vertx.core.file.impl.FileSystemImpl
InnerClasses:
io.vertx.core.file.impl.FileSystemImpl$4
protected abstract BlockingAction = io.vertx.core.file.impl.FileSystemImpl$BlockingAction of io.vertx.core.file.impl.FileSystemImpl