class org.springframework.boot.convert.StringToFileConverter implements org.springframework.core.convert.converter.Converter<java.lang.String, java.io.File>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.springframework.boot.convert.StringToFileConverter
super_class: java.lang.Object
{
private static final org.springframework.core.io.ResourceLoader resourceLoader;
descriptor: Lorg/springframework/core/io/ResourceLoader;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new org.springframework.core.io.DefaultResourceLoader
dup
aconst_null
invokespecial org.springframework.core.io.DefaultResourceLoader.<init>:(Ljava/lang/ClassLoader;)V
putstatic org.springframework.boot.convert.StringToFileConverter.resourceLoader:Lorg/springframework/core/io/ResourceLoader;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/boot/convert/StringToFileConverter;
public java.io.File convert(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/io/File;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.springframework.util.ResourceUtils.isUrl:(Ljava/lang/String;)Z
ifeq 2
1: aload 0
getstatic org.springframework.boot.convert.StringToFileConverter.resourceLoader:Lorg/springframework/core/io/ResourceLoader;
aload 1
invokeinterface org.springframework.core.io.ResourceLoader.getResource:(Ljava/lang/String;)Lorg/springframework/core/io/Resource;
invokevirtual org.springframework.boot.convert.StringToFileConverter.getFile:(Lorg/springframework/core/io/Resource;)Ljava/io/File;
areturn
2: StackMap locals:
StackMap stack:
new java.io.File
dup
aload 1
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 2
start local 2 3: aload 2
invokevirtual java.io.File.exists:()Z
ifeq 5
4: aload 2
areturn
5: StackMap locals: java.io.File
StackMap stack:
getstatic org.springframework.boot.convert.StringToFileConverter.resourceLoader:Lorg/springframework/core/io/ResourceLoader;
aload 1
invokeinterface org.springframework.core.io.ResourceLoader.getResource:(Ljava/lang/String;)Lorg/springframework/core/io/Resource;
astore 3
start local 3 6: aload 3
invokeinterface org.springframework.core.io.Resource.exists:()Z
ifeq 8
7: aload 0
aload 3
invokevirtual org.springframework.boot.convert.StringToFileConverter.getFile:(Lorg/springframework/core/io/Resource;)Ljava/io/File;
areturn
8: StackMap locals: org.springframework.core.io.Resource
StackMap stack:
aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/springframework/boot/convert/StringToFileConverter;
0 9 1 source Ljava/lang/String;
3 9 2 file Ljava/io/File;
6 9 3 resource Lorg/springframework/core/io/Resource;
MethodParameters:
Name Flags
source
private java.io.File getFile(org.springframework.core.io.Resource);
descriptor: (Lorg/springframework/core/io/Resource;)Ljava/io/File;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface org.springframework.core.io.Resource.getFile:()Ljava/io/File;
1: areturn
2: StackMap locals:
StackMap stack: java.io.IOException
astore 2
start local 2 3: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "Could not retrieve file for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/boot/convert/StringToFileConverter;
0 4 1 resource Lorg/springframework/core/io/Resource;
3 4 2 ex Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
MethodParameters:
Name Flags
resource
public java.lang.Object convert(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast java.lang.String
invokevirtual org.springframework.boot.convert.StringToFileConverter.convert:(Ljava/lang/String;)Ljava/io/File;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Lorg/springframework/core/convert/converter/Converter<Ljava/lang/String;Ljava/io/File;>;
SourceFile: "StringToFileConverter.java"