public class org.springframework.core.io.FileSystemResource extends org.springframework.core.io.AbstractResource implements org.springframework.core.io.WritableResource
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.springframework.core.io.FileSystemResource
super_class: org.springframework.core.io.AbstractResource
{
private final java.lang.String path;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.io.File file;
descriptor: Ljava/io/File;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
RuntimeVisibleAnnotations:
org.springframework.lang.Nullable()
private final java.nio.file.Path filePath;
descriptor: Ljava/nio/file/Path;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial org.springframework.core.io.AbstractResource.<init>:()V
1: aload 1
ldc "Path must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
2: aload 0
aload 1
invokestatic org.springframework.util.StringUtils.cleanPath:(Ljava/lang/String;)Ljava/lang/String;
putfield org.springframework.core.io.FileSystemResource.path:Ljava/lang/String;
3: aload 0
new java.io.File
dup
aload 1
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
putfield org.springframework.core.io.FileSystemResource.file:Ljava/io/File;
4: aload 0
aload 0
getfield org.springframework.core.io.FileSystemResource.file:Ljava/io/File;
invokevirtual java.io.File.toPath:()Ljava/nio/file/Path;
putfield org.springframework.core.io.FileSystemResource.filePath:Ljava/nio/file/Path;
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/core/io/FileSystemResource;
0 6 1 path Ljava/lang/String;
MethodParameters:
Name Flags
path
public void <init>(java.io.File);
descriptor: (Ljava/io/File;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial org.springframework.core.io.AbstractResource.<init>:()V
1: aload 1
ldc "File must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
2: aload 0
aload 1
invokevirtual java.io.File.getPath:()Ljava/lang/String;
invokestatic org.springframework.util.StringUtils.cleanPath:(Ljava/lang/String;)Ljava/lang/String;
putfield org.springframework.core.io.FileSystemResource.path:Ljava/lang/String;
3: aload 0
aload 1
putfield org.springframework.core.io.FileSystemResource.file:Ljava/io/File;
4: aload 0
aload 1
invokevirtual java.io.File.toPath:()Ljava/nio/file/Path;
putfield org.springframework.core.io.FileSystemResource.filePath:Ljava/nio/file/Path;
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/core/io/FileSystemResource;
0 6 1 file Ljava/io/File;
MethodParameters:
Name Flags
file
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 org.springframework.core.io.AbstractResource.<init>:()V
1: aload 1
ldc "Path must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
2: aload 0
aload 1
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
invokestatic org.springframework.util.StringUtils.cleanPath:(Ljava/lang/String;)Ljava/lang/String;
putfield org.springframework.core.io.FileSystemResource.path:Ljava/lang/String;
3: aload 0
aconst_null
putfield org.springframework.core.io.FileSystemResource.file:Ljava/io/File;
4: aload 0
aload 1
putfield org.springframework.core.io.FileSystemResource.filePath:Ljava/nio/file/Path;
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/core/io/FileSystemResource;
0 6 1 filePath Ljava/nio/file/Path;
MethodParameters:
Name Flags
filePath
public void <init>(java.nio.file.FileSystem, java.lang.String);
descriptor: (Ljava/nio/file/FileSystem;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial org.springframework.core.io.AbstractResource.<init>:()V
1: aload 1
ldc "FileSystem must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
2: aload 2
ldc "Path must not be null"
invokestatic org.springframework.util.Assert.notNull:(Ljava/lang/Object;Ljava/lang/String;)V
3: aload 0
aload 2
invokestatic org.springframework.util.StringUtils.cleanPath:(Ljava/lang/String;)Ljava/lang/String;
putfield org.springframework.core.io.FileSystemResource.path:Ljava/lang/String;
4: aload 0
aconst_null
putfield org.springframework.core.io.FileSystemResource.file:Ljava/io/File;
5: aload 0
aload 1
aload 0
getfield org.springframework.core.io.FileSystemResource.path:Ljava/lang/String;
iconst_0
anewarray java.lang.String
invokevirtual java.nio.file.FileSystem.getPath:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.normalize:()Ljava/nio/file/Path;
putfield org.springframework.core.io.FileSystemResource.filePath:Ljava/nio/file/Path;
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/springframework/core/io/FileSystemResource;
0 7 1 fileSystem Ljava/nio/file/FileSystem;
0 7 2 path Ljava/lang/String;
MethodParameters:
Name Flags
fileSystem
path
public final java.lang.String getPath();
descriptor: ()Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.core.io.FileSystemResource.path:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/core/io/FileSystemResource;
public boolean exists();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.core.io.FileSystemResource.file:Ljava/io/File;
ifnull 1
aload 0
getfield org.springframework.core.io.FileSystemResource.file:Ljava/io/File;
invokevirtual java.io.File.exists:()Z
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield org.springframework.core.io.FileSystemResource.filePath: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
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/core/io/FileSystemResource;
public boolean isReadable();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.core.io.FileSystemResource.file:Ljava/io/File;
ifnull 2
aload 0
getfield org.springframework.core.io.FileSystemResource.file:Ljava/io/File;
invokevirtual java.io.File.canRead:()Z
ifeq 1
aload 0
getfield org.springframework.core.io.FileSystemResource.file:Ljava/io/File;
invokevirtual java.io.File.isDirectory:()Z
ifne 1
iconst_1
goto 5
StackMap locals:
StackMap stack:
1: iconst_0
goto 5
2: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.core.io.FileSystemResource.filePath:Ljava/nio/file/Path;
invokestatic java.nio.file.Files.isReadable:(Ljava/nio/file/Path;)Z
ifeq 4
aload 0
getfield org.springframework.core.io.FileSystemResource.filePath:Ljava/nio/file/Path;
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.isDirectory:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifne 4
3: iconst_1
goto 5
StackMap locals:
StackMap stack:
4: iconst_0
StackMap locals:
StackMap stack: int
5: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/core/io/FileSystemResource;
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
getfield org.springframework.core.io.FileSystemResource.filePath: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;
1: areturn
2: StackMap locals:
StackMap stack: java.nio.file.NoSuchFileException
astore 1
start local 1 3: new java.io.FileNotFoundException
dup
aload 1
invokevirtual java.nio.file.NoSuchFileException.getMessage:()Ljava/lang/String;
invokespecial java.io.FileNotFoundException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/core/io/FileSystemResource;
3 4 1 ex Ljava/nio/file/NoSuchFileException;
Exception table:
from to target type
0 1 2 Class java.nio.file.NoSuchFileException
Exceptions:
throws java.io.IOException
public boolean isWritable();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.core.io.FileSystemResource.file:Ljava/io/File;
ifnull 2
aload 0
getfield org.springframework.core.io.FileSystemResource.file:Ljava/io/File;
invokevirtual java.io.File.canWrite:()Z
ifeq 1
aload 0
getfield org.springframework.core.io.FileSystemResource.file:Ljava/io/File;
invokevirtual java.io.File.isDirectory:()Z
ifne 1
iconst_1
goto 5
StackMap locals:
StackMap stack:
1: iconst_0
goto 5
2: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.core.io.FileSystemResource.filePath:Ljava/nio/file/Path;
invokestatic java.nio.file.Files.isWritable:(Ljava/nio/file/Path;)Z
ifeq 4
aload 0
getfield org.springframework.core.io.FileSystemResource.filePath:Ljava/nio/file/Path;
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.isDirectory:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifne 4
3: iconst_1
goto 5
StackMap locals:
StackMap stack:
4: iconst_0
StackMap locals:
StackMap stack: int
5: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/core/io/FileSystemResource;
public java.io.OutputStream getOutputStream();
descriptor: ()Ljava/io/OutputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.core.io.FileSystemResource.filePath:Ljava/nio/file/Path;
iconst_0
anewarray java.nio.file.OpenOption
invokestatic java.nio.file.Files.newOutputStream:(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/OutputStream;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/core/io/FileSystemResource;
Exceptions:
throws java.io.IOException
public java.net.URL getURL();
descriptor: ()Ljava/net/URL;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.core.io.FileSystemResource.file:Ljava/io/File;
ifnull 1
aload 0
getfield org.springframework.core.io.FileSystemResource.file:Ljava/io/File;
invokevirtual java.io.File.toURI:()Ljava/net/URI;
invokevirtual java.net.URI.toURL:()Ljava/net/URL;
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield org.springframework.core.io.FileSystemResource.filePath:Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toUri:()Ljava/net/URI;
invokevirtual java.net.URI.toURL:()Ljava/net/URL;
StackMap locals:
StackMap stack: java.net.URL
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/core/io/FileSystemResource;
Exceptions:
throws java.io.IOException
public java.net.URI getURI();
descriptor: ()Ljava/net/URI;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.core.io.FileSystemResource.file:Ljava/io/File;
ifnull 1
aload 0
getfield org.springframework.core.io.FileSystemResource.file:Ljava/io/File;
invokevirtual java.io.File.toURI:()Ljava/net/URI;
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield org.springframework.core.io.FileSystemResource.filePath:Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toUri:()Ljava/net/URI;
StackMap locals:
StackMap stack: java.net.URI
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/core/io/FileSystemResource;
Exceptions:
throws java.io.IOException
public boolean isFile();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/core/io/FileSystemResource;
public java.io.File getFile();
descriptor: ()Ljava/io/File;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.core.io.FileSystemResource.file:Ljava/io/File;
ifnull 1
aload 0
getfield org.springframework.core.io.FileSystemResource.file:Ljava/io/File;
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield org.springframework.core.io.FileSystemResource.filePath:Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
StackMap locals:
StackMap stack: java.io.File
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/core/io/FileSystemResource;
public java.nio.channels.ReadableByteChannel readableChannel();
descriptor: ()Ljava/nio/channels/ReadableByteChannel;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield org.springframework.core.io.FileSystemResource.filePath:Ljava/nio/file/Path;
iconst_1
anewarray java.nio.file.OpenOption
dup
iconst_0
getstatic java.nio.file.StandardOpenOption.READ:Ljava/nio/file/StandardOpenOption;
aastore
invokestatic java.nio.channels.FileChannel.open:(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/nio/channels/FileChannel;
1: areturn
2: StackMap locals:
StackMap stack: java.nio.file.NoSuchFileException
astore 1
start local 1 3: new java.io.FileNotFoundException
dup
aload 1
invokevirtual java.nio.file.NoSuchFileException.getMessage:()Ljava/lang/String;
invokespecial java.io.FileNotFoundException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/core/io/FileSystemResource;
3 4 1 ex Ljava/nio/file/NoSuchFileException;
Exception table:
from to target type
0 1 2 Class java.nio.file.NoSuchFileException
Exceptions:
throws java.io.IOException
public java.nio.channels.WritableByteChannel writableChannel();
descriptor: ()Ljava/nio/channels/WritableByteChannel;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.core.io.FileSystemResource.filePath:Ljava/nio/file/Path;
iconst_1
anewarray java.nio.file.OpenOption
dup
iconst_0
getstatic java.nio.file.StandardOpenOption.WRITE:Ljava/nio/file/StandardOpenOption;
aastore
invokestatic java.nio.channels.FileChannel.open:(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/nio/channels/FileChannel;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/core/io/FileSystemResource;
Exceptions:
throws java.io.IOException
public long contentLength();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
getfield org.springframework.core.io.FileSystemResource.file:Ljava/io/File;
ifnull 7
1: aload 0
getfield org.springframework.core.io.FileSystemResource.file:Ljava/io/File;
invokevirtual java.io.File.length:()J
lstore 1
start local 1 2: lload 1
lconst_0
lcmp
ifne 6
aload 0
getfield org.springframework.core.io.FileSystemResource.file:Ljava/io/File;
invokevirtual java.io.File.exists:()Z
ifne 6
3: new java.io.FileNotFoundException
dup
new java.lang.StringBuilder
dup
aload 0
invokevirtual org.springframework.core.io.FileSystemResource.getDescription:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
4: ldc " cannot be resolved in the file system for checking its content length"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: invokespecial java.io.FileNotFoundException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: long
StackMap stack:
lload 1
lreturn
end local 1 7: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.core.io.FileSystemResource.filePath:Ljava/nio/file/Path;
invokestatic java.nio.file.Files.size:(Ljava/nio/file/Path;)J
8: lreturn
9: StackMap locals:
StackMap stack: java.nio.file.NoSuchFileException
astore 1
start local 1 10: new java.io.FileNotFoundException
dup
aload 1
invokevirtual java.nio.file.NoSuchFileException.getMessage:()Ljava/lang/String;
invokespecial java.io.FileNotFoundException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/springframework/core/io/FileSystemResource;
2 7 1 length J
10 11 1 ex Ljava/nio/file/NoSuchFileException;
Exception table:
from to target type
7 8 9 Class java.nio.file.NoSuchFileException
Exceptions:
throws java.io.IOException
public long lastModified();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield org.springframework.core.io.FileSystemResource.file:Ljava/io/File;
ifnull 2
1: aload 0
invokespecial org.springframework.core.io.AbstractResource.lastModified:()J
lreturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.springframework.core.io.FileSystemResource.filePath:Ljava/nio/file/Path;
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.getLastModifiedTime:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Ljava/nio/file/attribute/FileTime;
invokevirtual java.nio.file.attribute.FileTime.toMillis:()J
3: lreturn
4: StackMap locals:
StackMap stack: java.nio.file.NoSuchFileException
astore 1
start local 1 5: new java.io.FileNotFoundException
dup
aload 1
invokevirtual java.nio.file.NoSuchFileException.getMessage:()Ljava/lang/String;
invokespecial java.io.FileNotFoundException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/springframework/core/io/FileSystemResource;
5 6 1 ex Ljava/nio/file/NoSuchFileException;
Exception table:
from to target type
2 3 4 Class java.nio.file.NoSuchFileException
Exceptions:
throws java.io.IOException
public org.springframework.core.io.Resource createRelative(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/springframework/core/io/Resource;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.springframework.core.io.FileSystemResource.path:Ljava/lang/String;
aload 1
invokestatic org.springframework.util.StringUtils.applyRelativePath:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 1: aload 0
getfield org.springframework.core.io.FileSystemResource.file:Ljava/io/File;
ifnull 2
new org.springframework.core.io.FileSystemResource
dup
aload 2
invokespecial org.springframework.core.io.FileSystemResource.<init>:(Ljava/lang/String;)V
goto 3
2: StackMap locals: java.lang.String
StackMap stack:
new org.springframework.core.io.FileSystemResource
dup
aload 0
getfield org.springframework.core.io.FileSystemResource.filePath:Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.getFileSystem:()Ljava/nio/file/FileSystem;
aload 2
invokespecial org.springframework.core.io.FileSystemResource.<init>:(Ljava/nio/file/FileSystem;Ljava/lang/String;)V
3: StackMap locals:
StackMap stack: org.springframework.core.io.FileSystemResource
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/core/io/FileSystemResource;
0 4 1 relativePath Ljava/lang/String;
1 4 2 pathToUse Ljava/lang/String;
MethodParameters:
Name Flags
relativePath
public java.lang.String getFilename();
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.core.io.FileSystemResource.file:Ljava/io/File;
ifnull 1
aload 0
getfield org.springframework.core.io.FileSystemResource.file:Ljava/io/File;
invokevirtual java.io.File.getName:()Ljava/lang/String;
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield org.springframework.core.io.FileSystemResource.filePath:Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
2: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/core/io/FileSystemResource;
public java.lang.String getDescription();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "file ["
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.springframework.core.io.FileSystemResource.file:Ljava/io/File;
ifnull 1
aload 0
getfield org.springframework.core.io.FileSystemResource.file:Ljava/io/File;
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
goto 2
StackMap locals:
StackMap stack: java.lang.StringBuilder
1: aload 0
getfield org.springframework.core.io.FileSystemResource.filePath:Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
StackMap locals: org.springframework.core.io.FileSystemResource
StackMap stack: java.lang.StringBuilder java.lang.Comparable
2: invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/springframework/core/io/FileSystemResource;
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpeq 3
aload 1
instanceof org.springframework.core.io.FileSystemResource
ifeq 2
1: aload 0
getfield org.springframework.core.io.FileSystemResource.path:Ljava/lang/String;
aload 1
checkcast org.springframework.core.io.FileSystemResource
getfield org.springframework.core.io.FileSystemResource.path:Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 3
2: StackMap locals:
StackMap stack:
iconst_0
ireturn
StackMap locals:
StackMap stack:
3: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/springframework/core/io/FileSystemResource;
0 4 1 other Ljava/lang/Object;
MethodParameters:
Name Flags
other
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.springframework.core.io.FileSystemResource.path:Ljava/lang/String;
invokevirtual java.lang.String.hashCode:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/springframework/core/io/FileSystemResource;
}
SourceFile: "FileSystemResource.java"