public class io.undertow.server.handlers.form.FormData$FileItem
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.undertow.server.handlers.form.FormData$FileItem
super_class: java.lang.Object
{
private final java.nio.file.Path file;
descriptor: Ljava/nio/file/Path;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final byte[] content;
descriptor: [B
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)V
flags: (0x0001) ACC_PUBLIC
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
putfield io.undertow.server.handlers.form.FormData$FileItem.file:Ljava/nio/file/Path;
2: aload 0
aconst_null
putfield io.undertow.server.handlers.form.FormData$FileItem.content:[B
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/undertow/server/handlers/form/FormData$FileItem;
0 4 1 file Ljava/nio/file/Path;
MethodParameters:
Name Flags
file
public void <init>(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
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
aconst_null
putfield io.undertow.server.handlers.form.FormData$FileItem.file:Ljava/nio/file/Path;
2: aload 0
aload 1
putfield io.undertow.server.handlers.form.FormData$FileItem.content:[B
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/undertow/server/handlers/form/FormData$FileItem;
0 4 1 content [B
MethodParameters:
Name Flags
content
public boolean isInMemory();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.undertow.server.handlers.form.FormData$FileItem.file:Ljava/nio/file/Path;
ifnonnull 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/undertow/server/handlers/form/FormData$FileItem;
public java.nio.file.Path getFile();
descriptor: ()Ljava/nio/file/Path;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.undertow.server.handlers.form.FormData$FileItem.file:Ljava/nio/file/Path;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/undertow/server/handlers/form/FormData$FileItem;
public long getFileSize();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual io.undertow.server.handlers.form.FormData$FileItem.isInMemory:()Z
ifeq 2
1: aload 0
getfield io.undertow.server.handlers.form.FormData$FileItem.content:[B
arraylength
i2l
lreturn
2: StackMap locals:
StackMap stack:
aload 0
getfield io.undertow.server.handlers.form.FormData$FileItem.file:Ljava/nio/file/Path;
invokestatic java.nio.file.Files.size:(Ljava/nio/file/Path;)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/undertow/server/handlers/form/FormData$FileItem;
Exceptions:
throws java.io.IOException
public java.io.InputStream getInputStream();
descriptor: ()Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield io.undertow.server.handlers.form.FormData$FileItem.file:Ljava/nio/file/Path;
ifnull 2
1: new java.io.BufferedInputStream
dup
aload 0
getfield io.undertow.server.handlers.form.FormData$FileItem.file:Ljava/nio/file/Path;
iconst_0
anewarray java.nio.file.OpenOption
invokestatic java.nio.file.Files.newInputStream:(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/InputStream;
invokespecial java.io.BufferedInputStream.<init>:(Ljava/io/InputStream;)V
areturn
2: StackMap locals:
StackMap stack:
new java.io.ByteArrayInputStream
dup
aload 0
getfield io.undertow.server.handlers.form.FormData$FileItem.content:[B
invokespecial java.io.ByteArrayInputStream.<init>:([B)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/undertow/server/handlers/form/FormData$FileItem;
Exceptions:
throws java.io.IOException
public void delete();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.undertow.server.handlers.form.FormData$FileItem.file:Ljava/nio/file/Path;
ifnull 4
1: aload 0
getfield io.undertow.server.handlers.form.FormData$FileItem.file:Ljava/nio/file/Path;
invokestatic java.nio.file.Files.delete:(Ljava/nio/file/Path;)V
2: goto 4
StackMap locals:
StackMap stack: java.nio.file.NoSuchFileException
3: pop
4: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/undertow/server/handlers/form/FormData$FileItem;
Exception table:
from to target type
1 2 3 Class java.nio.file.NoSuchFileException
Exceptions:
throws java.io.IOException
public void write(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield io.undertow.server.handlers.form.FormData$FileItem.file:Ljava/nio/file/Path;
ifnull 4
1: aload 0
getfield io.undertow.server.handlers.form.FormData$FileItem.file:Ljava/nio/file/Path;
aload 1
iconst_0
anewarray java.nio.file.CopyOption
invokestatic java.nio.file.Files.move:(Ljava/nio/file/Path;Ljava/nio/file/Path;[Ljava/nio/file/CopyOption;)Ljava/nio/file/Path;
pop
2: return
3: StackMap locals:
StackMap stack: java.io.IOException
pop
4: StackMap locals:
StackMap stack:
aconst_null
astore 2
aconst_null
astore 3
5: aload 0
invokevirtual io.undertow.server.handlers.form.FormData$FileItem.getInputStream:()Ljava/io/InputStream;
astore 4
start local 4 6: aload 4
aload 1
iconst_0
anewarray java.nio.file.CopyOption
invokestatic java.nio.file.Files.copy:(Ljava/io/InputStream;Ljava/nio/file/Path;[Ljava/nio/file/CopyOption;)J
pop2
7: aload 4
ifnull 13
aload 4
invokevirtual java.io.InputStream.close:()V
goto 13
StackMap locals: io.undertow.server.handlers.form.FormData$FileItem java.nio.file.Path java.lang.Throwable java.lang.Throwable java.io.InputStream
StackMap stack: java.lang.Throwable
8: astore 2
aload 4
ifnull 9
aload 4
invokevirtual java.io.InputStream.close:()V
end local 4 StackMap locals:
StackMap stack:
9: aload 2
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
10: astore 3
aload 2
ifnonnull 11
aload 3
astore 2
goto 12
StackMap locals:
StackMap stack:
11: aload 2
aload 3
if_acmpeq 12
aload 2
aload 3
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
12: aload 2
athrow
13: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lio/undertow/server/handlers/form/FormData$FileItem;
0 14 1 target Ljava/nio/file/Path;
6 9 4 is Ljava/io/InputStream;
Exception table:
from to target type
1 2 3 Class java.io.IOException
6 7 8 any
5 10 10 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
target
}
SourceFile: "FormData.java"
NestHost: io.undertow.server.handlers.form.FormData
InnerClasses:
public FileItem = io.undertow.server.handlers.form.FormData$FileItem of io.undertow.server.handlers.form.FormData