public class org.springframework.web.multipart.commons.CommonsMultipartFile implements org.springframework.web.multipart.MultipartFile, java.io.Serializable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.web.multipart.commons.CommonsMultipartFile
super_class: java.lang.Object
{
protected static final org.apache.commons.logging.Log logger;
descriptor: Lorg/apache/commons/logging/Log;
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
private final org.apache.commons.fileupload.FileItem fileItem;
descriptor: Lorg/apache/commons/fileupload/FileItem;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final long size;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private boolean preserveFilename;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/springframework/web/multipart/commons/CommonsMultipartFile;
invokestatic org.apache.commons.logging.LogFactory.getLog:(Ljava/lang/Class;)Lorg/apache/commons/logging/Log;
putstatic org.springframework.web.multipart.commons.CommonsMultipartFile.logger:Lorg/apache/commons/logging/Log;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.apache.commons.fileupload.FileItem);
descriptor: (Lorg/apache/commons/fileupload/FileItem;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_0
putfield org.springframework.web.multipart.commons.CommonsMultipartFile.preserveFilename:Z
2: aload 0
aload 1
putfield org.springframework.web.multipart.commons.CommonsMultipartFile.fileItem:Lorg/apache/commons/fileupload/FileItem;
3: aload 0
aload 0
getfield org.springframework.web.multipart.commons.CommonsMultipartFile.fileItem:Lorg/apache/commons/fileupload/FileItem;
invokeinterface org.apache.commons.fileupload.FileItem.getSize:()J
putfield org.springframework.web.multipart.commons.CommonsMultipartFile.size:J
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/web/multipart/commons/CommonsMultipartFile;
0 5 1 fileItem Lorg/apache/commons/fileupload/FileItem;
MethodParameters:
Name Flags
fileItem
public final org.apache.commons.fileupload.FileItem getFileItem();
descriptor: ()Lorg/apache/commons/fileupload/FileItem;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.multipart.commons.CommonsMultipartFile.fileItem:Lorg/apache/commons/fileupload/FileItem;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/multipart/commons/CommonsMultipartFile;
public void setPreserveFilename(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.springframework.web.multipart.commons.CommonsMultipartFile.preserveFilename:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/springframework/web/multipart/commons/CommonsMultipartFile;
0 2 1 preserveFilename Z
MethodParameters:
Name Flags
preserveFilename
public java.lang.String getName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.multipart.commons.CommonsMultipartFile.fileItem:Lorg/apache/commons/fileupload/FileItem;
invokeinterface org.apache.commons.fileupload.FileItem.getFieldName:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/multipart/commons/CommonsMultipartFile;
public java.lang.String getOriginalFilename();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.multipart.commons.CommonsMultipartFile.fileItem:Lorg/apache/commons/fileupload/FileItem;
invokeinterface org.apache.commons.fileupload.FileItem.getName:()Ljava/lang/String;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: ldc ""
areturn
3: StackMap locals: java.lang.String
StackMap stack:
aload 0
getfield org.springframework.web.multipart.commons.CommonsMultipartFile.preserveFilename:Z
ifeq 5
4: aload 1
areturn
5: StackMap locals:
StackMap stack:
aload 1
bipush 47
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 2
start local 2 6: aload 1
bipush 92
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 3
start local 3 7: iload 3
iload 2
if_icmple 8
iload 3
goto 9
StackMap locals: int int
StackMap stack:
8: iload 2
StackMap locals:
StackMap stack: int
9: istore 4
start local 4 10: iload 4
iconst_m1
if_icmpeq 12
11: aload 1
iload 4
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
areturn
12: StackMap locals: int
StackMap stack:
aload 1
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/springframework/web/multipart/commons/CommonsMultipartFile;
1 13 1 filename Ljava/lang/String;
6 13 2 unixSep I
7 13 3 winSep I
10 13 4 pos I
public java.lang.String getContentType();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.multipart.commons.CommonsMultipartFile.fileItem:Lorg/apache/commons/fileupload/FileItem;
invokeinterface org.apache.commons.fileupload.FileItem.getContentType:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/multipart/commons/CommonsMultipartFile;
public boolean isEmpty();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.multipart.commons.CommonsMultipartFile.size:J
lconst_0
lcmp
ifne 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 Lorg/springframework/web/multipart/commons/CommonsMultipartFile;
public long getSize();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.multipart.commons.CommonsMultipartFile.size:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/web/multipart/commons/CommonsMultipartFile;
public byte[] getBytes();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.springframework.web.multipart.commons.CommonsMultipartFile.isAvailable:()Z
ifne 2
1: new java.lang.IllegalStateException
dup
ldc "File has been moved - cannot be read again"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.web.multipart.commons.CommonsMultipartFile.fileItem:Lorg/apache/commons/fileupload/FileItem;
invokeinterface org.apache.commons.fileupload.FileItem.get:()[B
astore 1
start local 1 3: aload 1
ifnull 4
aload 1
goto 5
StackMap locals: byte[]
StackMap stack:
4: iconst_0
newarray 8
StackMap locals:
StackMap stack: byte[]
5: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/web/multipart/commons/CommonsMultipartFile;
3 6 1 bytes [B
public java.io.InputStream getInputStream();
descriptor: ()Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.springframework.web.multipart.commons.CommonsMultipartFile.isAvailable:()Z
ifne 2
1: new java.lang.IllegalStateException
dup
ldc "File has been moved - cannot be read again"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.web.multipart.commons.CommonsMultipartFile.fileItem:Lorg/apache/commons/fileupload/FileItem;
invokeinterface org.apache.commons.fileupload.FileItem.getInputStream:()Ljava/io/InputStream;
astore 1
start local 1 3: aload 1
ifnull 4
aload 1
goto 5
StackMap locals: java.io.InputStream
StackMap stack:
4: invokestatic org.springframework.util.StreamUtils.emptyInput:()Ljava/io/InputStream;
StackMap locals:
StackMap stack: java.io.InputStream
5: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/web/multipart/commons/CommonsMultipartFile;
3 6 1 inputStream Ljava/io/InputStream;
Exceptions:
throws java.io.IOException
public void transferTo(java.io.File);
descriptor: (Ljava/io/File;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.springframework.web.multipart.commons.CommonsMultipartFile.isAvailable:()Z
ifne 2
1: new java.lang.IllegalStateException
dup
ldc "File has already been moved - cannot be transferred again"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.io.File.exists:()Z
ifeq 6
aload 1
invokevirtual java.io.File.delete:()Z
ifne 6
3: new java.io.IOException
dup
4: new java.lang.StringBuilder
dup
ldc "Destination file ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "] already exists and could not be deleted"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.web.multipart.commons.CommonsMultipartFile.fileItem:Lorg/apache/commons/fileupload/FileItem;
aload 1
invokeinterface org.apache.commons.fileupload.FileItem.write:(Ljava/io/File;)V
7: getstatic org.springframework.web.multipart.commons.CommonsMultipartFile.logger:Lorg/apache/commons/logging/Log;
aload 0
aload 1
invokedynamic apply(Lorg/springframework/web/multipart/commons/CommonsMultipartFile;Ljava/io/File;)Ljava/util/function/Function;
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;)Ljava/lang/Object;
org/springframework/web/multipart/commons/CommonsMultipartFile.lambda$0(Ljava/io/File;Ljava/lang/Boolean;)Ljava/lang/String; (7)
(Ljava/lang/Boolean;)Ljava/lang/String;
invokestatic org.springframework.core.log.LogFormatUtils.traceDebug:(Lorg/apache/commons/logging/Log;Ljava/util/function/Function;)V
8: goto 15
9: StackMap locals:
StackMap stack: org.apache.commons.fileupload.FileUploadException
astore 2
start local 2 10: new java.lang.IllegalStateException
dup
aload 2
invokevirtual org.apache.commons.fileupload.FileUploadException.getMessage:()Ljava/lang/String;
aload 2
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 11: StackMap locals:
StackMap stack: java.lang.Exception
astore 2
start local 2 12: aload 2
athrow
end local 2 13: StackMap locals:
StackMap stack: java.lang.Exception
astore 2
start local 2 14: new java.io.IOException
dup
ldc "File transfer failed"
aload 2
invokespecial java.io.IOException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 15: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/springframework/web/multipart/commons/CommonsMultipartFile;
0 16 1 dest Ljava/io/File;
10 11 2 ex Lorg/apache/commons/fileupload/FileUploadException;
12 13 2 ex Ljava/lang/Exception;
14 15 2 ex Ljava/lang/Exception;
Exception table:
from to target type
6 8 9 Class org.apache.commons.fileupload.FileUploadException
6 8 11 Class java.lang.IllegalStateException
6 8 11 Class java.io.IOException
6 8 13 Class java.lang.Exception
Exceptions:
throws java.io.IOException, java.lang.IllegalStateException
MethodParameters:
Name Flags
dest
public void transferTo(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.springframework.web.multipart.commons.CommonsMultipartFile.isAvailable:()Z
ifne 2
1: new java.lang.IllegalStateException
dup
ldc "File has already been moved - cannot be transferred again"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.web.multipart.commons.CommonsMultipartFile.fileItem:Lorg/apache/commons/fileupload/FileItem;
invokeinterface org.apache.commons.fileupload.FileItem.getInputStream:()Ljava/io/InputStream;
aload 1
iconst_0
anewarray java.nio.file.OpenOption
invokestatic java.nio.file.Files.newOutputStream:(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/OutputStream;
invokestatic org.springframework.util.FileCopyUtils.copy:(Ljava/io/InputStream;Ljava/io/OutputStream;)I
pop
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/web/multipart/commons/CommonsMultipartFile;
0 4 1 dest Ljava/nio/file/Path;
Exceptions:
throws java.io.IOException, java.lang.IllegalStateException
MethodParameters:
Name Flags
dest
protected boolean isAvailable();
descriptor: ()Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.multipart.commons.CommonsMultipartFile.fileItem:Lorg/apache/commons/fileupload/FileItem;
invokeinterface org.apache.commons.fileupload.FileItem.isInMemory:()Z
ifeq 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.web.multipart.commons.CommonsMultipartFile.fileItem:Lorg/apache/commons/fileupload/FileItem;
instanceof org.apache.commons.fileupload.disk.DiskFileItem
ifeq 4
3: aload 0
getfield org.springframework.web.multipart.commons.CommonsMultipartFile.fileItem:Lorg/apache/commons/fileupload/FileItem;
checkcast org.apache.commons.fileupload.disk.DiskFileItem
invokevirtual org.apache.commons.fileupload.disk.DiskFileItem.getStoreLocation:()Ljava/io/File;
invokevirtual java.io.File.exists:()Z
ireturn
4: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.web.multipart.commons.CommonsMultipartFile.fileItem:Lorg/apache/commons/fileupload/FileItem;
invokeinterface org.apache.commons.fileupload.FileItem.getSize:()J
aload 0
getfield org.springframework.web.multipart.commons.CommonsMultipartFile.size:J
lcmp
ifne 5
iconst_1
ireturn
StackMap locals:
StackMap stack:
5: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/web/multipart/commons/CommonsMultipartFile;
public java.lang.String getStorageDescription();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.web.multipart.commons.CommonsMultipartFile.fileItem:Lorg/apache/commons/fileupload/FileItem;
invokeinterface org.apache.commons.fileupload.FileItem.isInMemory:()Z
ifeq 2
1: ldc "in memory"
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.web.multipart.commons.CommonsMultipartFile.fileItem:Lorg/apache/commons/fileupload/FileItem;
instanceof org.apache.commons.fileupload.disk.DiskFileItem
ifeq 4
3: new java.lang.StringBuilder
dup
ldc "at ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.springframework.web.multipart.commons.CommonsMultipartFile.fileItem:Lorg/apache/commons/fileupload/FileItem;
checkcast org.apache.commons.fileupload.disk.DiskFileItem
invokevirtual org.apache.commons.fileupload.disk.DiskFileItem.getStoreLocation:()Ljava/io/File;
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
4: StackMap locals:
StackMap stack:
ldc "on disk"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/springframework/web/multipart/commons/CommonsMultipartFile;
private java.lang.String lambda$0(java.io.File, java.lang.Boolean);
descriptor: (Ljava/io/File;Ljava/lang/Boolean;)Ljava/lang/String;
flags: (0x1002) ACC_PRIVATE, ACC_SYNTHETIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 2 0: ldc "transferred"
astore 3
start local 3 1: aload 0
getfield org.springframework.web.multipart.commons.CommonsMultipartFile.fileItem:Lorg/apache/commons/fileupload/FileItem;
invokeinterface org.apache.commons.fileupload.FileItem.isInMemory:()Z
ifne 5
2: aload 0
invokevirtual org.springframework.web.multipart.commons.CommonsMultipartFile.isAvailable:()Z
ifeq 3
ldc "copied"
goto 4
StackMap locals: java.lang.String
StackMap stack:
3: ldc "moved"
StackMap locals:
StackMap stack: java.lang.String
4: astore 3
5: StackMap locals:
StackMap stack:
new java.lang.StringBuilder
dup
ldc "Part '"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual org.springframework.web.multipart.commons.CommonsMultipartFile.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "', filename '"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual org.springframework.web.multipart.commons.CommonsMultipartFile.getOriginalFilename:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "'"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
6: aload 2
invokevirtual java.lang.Boolean.booleanValue:()Z
ifeq 7
new java.lang.StringBuilder
dup
ldc ", stored "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual org.springframework.web.multipart.commons.CommonsMultipartFile.getStorageDescription:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
goto 8
StackMap locals:
StackMap stack: java.lang.StringBuilder
7: ldc ""
StackMap locals: org.springframework.web.multipart.commons.CommonsMultipartFile java.io.File java.lang.Boolean java.lang.String
StackMap stack: java.lang.StringBuilder java.lang.String
8: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
9: ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " to ["
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 1
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
10: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/springframework/web/multipart/commons/CommonsMultipartFile;
0 11 2 traceOn Ljava/lang/Boolean;
1 11 3 action Ljava/lang/String;
}
SourceFile: "CommonsMultipartFile.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles