public class org.eclipse.jetty.util.resource.PathResource extends org.eclipse.jetty.util.resource.Resource
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.eclipse.jetty.util.resource.PathResource
super_class: org.eclipse.jetty.util.resource.Resource
{
private static final org.eclipse.jetty.util.log.Logger LOG;
descriptor: Lorg/eclipse/jetty/util/log/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.nio.file.LinkOption[] NO_FOLLOW_LINKS;
descriptor: [Ljava/nio/file/LinkOption;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.nio.file.LinkOption[] FOLLOW_LINKS;
descriptor: [Ljava/nio/file/LinkOption;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.nio.file.Path path;
descriptor: Ljava/nio/file/Path;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.nio.file.Path alias;
descriptor: Ljava/nio/file/Path;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.net.URI uri;
descriptor: Ljava/net/URI;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: ldc Lorg/eclipse/jetty/util/resource/PathResource;
invokestatic org.eclipse.jetty.util.log.Log.getLogger:(Ljava/lang/Class;)Lorg/eclipse/jetty/util/log/Logger;
putstatic org.eclipse.jetty.util.resource.PathResource.LOG:Lorg/eclipse/jetty/util/log/Logger;
1: iconst_1
anewarray java.nio.file.LinkOption
dup
iconst_0
getstatic java.nio.file.LinkOption.NOFOLLOW_LINKS:Ljava/nio/file/LinkOption;
aastore
putstatic org.eclipse.jetty.util.resource.PathResource.NO_FOLLOW_LINKS:[Ljava/nio/file/LinkOption;
2: iconst_0
anewarray java.nio.file.LinkOption
putstatic org.eclipse.jetty.util.resource.PathResource.FOLLOW_LINKS:[Ljava/nio/file/LinkOption;
return
LocalVariableTable:
Start End Slot Name Signature
private final java.nio.file.Path checkAliasPath();
descriptor: ()Ljava/nio/file/Path;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Code:
stack=6, locals=6, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.resource.PathResource.path:Ljava/nio/file/Path;
astore 1
start local 1 1: aload 0
getfield org.eclipse.jetty.util.resource.PathResource.uri:Ljava/net/URI;
aload 0
getfield org.eclipse.jetty.util.resource.PathResource.path:Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toUri:()Ljava/net/URI;
invokestatic org.eclipse.jetty.util.URIUtil.equalsIgnoreEncodings:(Ljava/net/URI;Ljava/net/URI;)Z
ifne 6
2: aload 0
getfield org.eclipse.jetty.util.resource.PathResource.uri:Ljava/net/URI;
invokestatic java.nio.file.Paths.get:(Ljava/net/URI;)Ljava/nio/file/Path;
getstatic org.eclipse.jetty.util.resource.PathResource.FOLLOW_LINKS:[Ljava/nio/file/LinkOption;
invokeinterface java.nio.file.Path.toRealPath:([Ljava/nio/file/LinkOption;)Ljava/nio/file/Path;
3: areturn
4: StackMap locals: org.eclipse.jetty.util.resource.PathResource java.nio.file.Path
StackMap stack: java.io.IOException
astore 2
start local 2 5: getstatic org.eclipse.jetty.util.resource.PathResource.LOG:Lorg/eclipse/jetty/util/log/Logger;
aload 2
invokeinterface org.eclipse.jetty.util.log.Logger.ignore:(Ljava/lang/Throwable;)V
end local 2 6: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.nio.file.Path.isAbsolute:()Z
ifne 8
7: aload 0
getfield org.eclipse.jetty.util.resource.PathResource.path:Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
astore 1
8: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.jetty.util.resource.PathResource.path:Ljava/nio/file/Path;
invokestatic java.nio.file.Files.isSymbolicLink:(Ljava/nio/file/Path;)Z
ifeq 11
9: aload 0
getfield org.eclipse.jetty.util.resource.PathResource.path:Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.getParent:()Ljava/nio/file/Path;
aload 0
getfield org.eclipse.jetty.util.resource.PathResource.path:Ljava/nio/file/Path;
invokestatic java.nio.file.Files.readSymbolicLink:(Ljava/nio/file/Path;)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.resolve:(Ljava/nio/file/Path;)Ljava/nio/file/Path;
10: areturn
11: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.jetty.util.resource.PathResource.path: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
ifeq 31
12: aload 1
getstatic org.eclipse.jetty.util.resource.PathResource.FOLLOW_LINKS:[Ljava/nio/file/LinkOption;
invokeinterface java.nio.file.Path.toRealPath:([Ljava/nio/file/LinkOption;)Ljava/nio/file/Path;
astore 2
start local 2 13: aload 1
invokeinterface java.nio.file.Path.getNameCount:()I
istore 3
start local 3 14: aload 2
invokeinterface java.nio.file.Path.getNameCount:()I
istore 4
start local 4 15: iload 3
iload 4
if_icmpeq 18
16: aload 2
17: areturn
18: StackMap locals: java.nio.file.Path int int
StackMap stack:
iload 4
iconst_1
isub
istore 5
start local 5 19: goto 24
20: StackMap locals: int
StackMap stack:
aload 1
iload 5
invokeinterface java.nio.file.Path.getName:(I)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
aload 2
iload 5
invokeinterface java.nio.file.Path.getName:(I)Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 23
21: aload 2
22: areturn
23: StackMap locals:
StackMap stack:
iinc 5 -1
StackMap locals:
StackMap stack:
24: iload 5
ifge 20
end local 5 end local 4 end local 3 end local 2 25: goto 31
26: StackMap locals: org.eclipse.jetty.util.resource.PathResource java.nio.file.Path
StackMap stack: java.io.IOException
astore 2
start local 2 27: getstatic org.eclipse.jetty.util.resource.PathResource.LOG:Lorg/eclipse/jetty/util/log/Logger;
aload 2
invokeinterface org.eclipse.jetty.util.log.Logger.ignore:(Ljava/lang/Throwable;)V
end local 2 28: goto 31
29: StackMap locals:
StackMap stack: java.lang.Exception
astore 2
start local 2 30: getstatic org.eclipse.jetty.util.resource.PathResource.LOG:Lorg/eclipse/jetty/util/log/Logger;
ldc "bad alias ({} {}) for {}"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 2
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
aastore
dup
iconst_1
aload 2
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
aastore
dup
iconst_2
aload 0
getfield org.eclipse.jetty.util.resource.PathResource.path:Ljava/nio/file/Path;
aastore
invokeinterface org.eclipse.jetty.util.log.Logger.warn:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 2 31: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 32 0 this Lorg/eclipse/jetty/util/resource/PathResource;
1 32 1 abs Ljava/nio/file/Path;
5 6 2 ignored Ljava/io/IOException;
13 25 2 real Ljava/nio/file/Path;
14 25 3 absCount I
15 25 4 realCount I
19 25 5 i I
27 28 2 e Ljava/io/IOException;
30 31 2 e Ljava/lang/Exception;
Exception table:
from to target type
2 3 4 Class java.io.IOException
8 10 26 Class java.io.IOException
11 17 26 Class java.io.IOException
18 22 26 Class java.io.IOException
23 25 26 Class java.io.IOException
8 10 29 Class java.lang.Exception
11 17 29 Class java.lang.Exception
18 22 29 Class java.lang.Exception
23 25 29 Class java.lang.Exception
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
aload 1
invokevirtual java.io.File.toPath:()Ljava/nio/file/Path;
invokespecial org.eclipse.jetty.util.resource.PathResource.<init>:(Ljava/nio/file/Path;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/jetty/util/resource/PathResource;
0 2 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.eclipse.jetty.util.resource.Resource.<init>:()V
1: aload 0
aload 1
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
putfield org.eclipse.jetty.util.resource.PathResource.path:Ljava/nio/file/Path;
2: aload 0
aload 1
invokevirtual org.eclipse.jetty.util.resource.PathResource.assertValidPath:(Ljava/nio/file/Path;)V
3: aload 0
aload 0
getfield org.eclipse.jetty.util.resource.PathResource.path:Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toUri:()Ljava/net/URI;
putfield org.eclipse.jetty.util.resource.PathResource.uri:Ljava/net/URI;
4: aload 0
aload 0
invokevirtual org.eclipse.jetty.util.resource.PathResource.checkAliasPath:()Ljava/nio/file/Path;
putfield org.eclipse.jetty.util.resource.PathResource.alias:Ljava/nio/file/Path;
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/eclipse/jetty/util/resource/PathResource;
0 6 1 path Ljava/nio/file/Path;
MethodParameters:
Name Flags
path
private void <init>(org.eclipse.jetty.util.resource.PathResource, java.lang.String);
descriptor: (Lorg/eclipse/jetty/util/resource/PathResource;Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=7, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial org.eclipse.jetty.util.resource.Resource.<init>:()V
1: aload 0
aload 1
getfield org.eclipse.jetty.util.resource.PathResource.path:Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.getFileSystem:()Ljava/nio/file/FileSystem;
aload 1
getfield org.eclipse.jetty.util.resource.PathResource.path:Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 2
aastore
invokevirtual java.nio.file.FileSystem.getPath:(Ljava/lang/String;[Ljava/lang/String;)Ljava/nio/file/Path;
putfield org.eclipse.jetty.util.resource.PathResource.path:Ljava/nio/file/Path;
2: aload 0
invokevirtual org.eclipse.jetty.util.resource.PathResource.isDirectory:()Z
ifeq 4
aload 2
ldc "/"
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 4
3: new java.lang.StringBuilder
dup
aload 2
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
4: StackMap locals: org.eclipse.jetty.util.resource.PathResource org.eclipse.jetty.util.resource.PathResource java.lang.String
StackMap stack:
aload 0
aload 1
getfield org.eclipse.jetty.util.resource.PathResource.uri:Ljava/net/URI;
aload 2
invokestatic org.eclipse.jetty.util.URIUtil.addPath:(Ljava/net/URI;Ljava/lang/String;)Ljava/net/URI;
putfield org.eclipse.jetty.util.resource.PathResource.uri:Ljava/net/URI;
5: aload 0
aload 0
invokevirtual org.eclipse.jetty.util.resource.PathResource.checkAliasPath:()Ljava/nio/file/Path;
putfield org.eclipse.jetty.util.resource.PathResource.alias: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/eclipse/jetty/util/resource/PathResource;
0 7 1 parent Lorg/eclipse/jetty/util/resource/PathResource;
0 7 2 childPath Ljava/lang/String;
MethodParameters:
Name Flags
parent
childPath
public void <init>(java.net.URI);
descriptor: (Ljava/net/URI;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokespecial org.eclipse.jetty.util.resource.Resource.<init>:()V
1: aload 1
invokevirtual java.net.URI.isAbsolute:()Z
ifne 3
2: new java.lang.IllegalArgumentException
dup
ldc "not an absolute uri"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.eclipse.jetty.util.resource.PathResource java.net.URI
StackMap stack:
aload 1
invokevirtual java.net.URI.getScheme:()Ljava/lang/String;
ldc "file"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 5
4: new java.lang.IllegalArgumentException
dup
ldc "not file: scheme"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 1
invokestatic java.nio.file.Paths.get:(Ljava/net/URI;)Ljava/nio/file/Path;
astore 2
start local 2 6: goto 12
end local 2 7: StackMap locals:
StackMap stack: java.lang.IllegalArgumentException
astore 3
start local 3 8: aload 3
athrow
end local 3 9: StackMap locals:
StackMap stack: java.lang.Exception
astore 3
start local 3 10: getstatic org.eclipse.jetty.util.resource.PathResource.LOG:Lorg/eclipse/jetty/util/log/Logger;
aload 3
invokeinterface org.eclipse.jetty.util.log.Logger.ignore:(Ljava/lang/Throwable;)V
11: new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "Unable to build Path from: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
invokespecial java.io.IOException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 start local 2 12: StackMap locals: java.nio.file.Path
StackMap stack:
aload 0
aload 2
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
putfield org.eclipse.jetty.util.resource.PathResource.path:Ljava/nio/file/Path;
13: aload 0
aload 2
invokeinterface java.nio.file.Path.toUri:()Ljava/net/URI;
putfield org.eclipse.jetty.util.resource.PathResource.uri:Ljava/net/URI;
14: aload 0
aload 0
invokevirtual org.eclipse.jetty.util.resource.PathResource.checkAliasPath:()Ljava/nio/file/Path;
putfield org.eclipse.jetty.util.resource.PathResource.alias:Ljava/nio/file/Path;
15: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/eclipse/jetty/util/resource/PathResource;
0 16 1 uri Ljava/net/URI;
6 7 2 path Ljava/nio/file/Path;
12 16 2 path Ljava/nio/file/Path;
8 9 3 e Ljava/lang/IllegalArgumentException;
10 12 3 e Ljava/lang/Exception;
Exception table:
from to target type
5 6 7 Class java.lang.IllegalArgumentException
5 6 9 Class java.lang.Exception
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
uri
public void <init>(java.net.URL);
descriptor: (Ljava/net/URL;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual java.net.URL.toURI:()Ljava/net/URI;
invokespecial org.eclipse.jetty.util.resource.PathResource.<init>:(Ljava/net/URI;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/jetty/util/resource/PathResource;
0 2 1 url Ljava/net/URL;
Exceptions:
throws java.io.IOException, java.net.URISyntaxException
MethodParameters:
Name Flags
url
public org.eclipse.jetty.util.resource.Resource addPath(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/eclipse/jetty/util/resource/Resource;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.eclipse.jetty.util.URIUtil.canonicalPath:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 1: aload 2
ifnull 2
aload 2
invokevirtual java.lang.String.length:()I
ifne 3
2: StackMap locals: java.lang.String
StackMap stack:
new java.net.MalformedURLException
dup
aload 1
invokespecial java.net.MalformedURLException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals:
StackMap stack:
ldc "/"
aload 2
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 5
4: aload 0
areturn
5: StackMap locals:
StackMap stack:
new org.eclipse.jetty.util.resource.PathResource
dup
aload 0
aload 1
invokespecial org.eclipse.jetty.util.resource.PathResource.<init>:(Lorg/eclipse/jetty/util/resource/PathResource;Ljava/lang/String;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/eclipse/jetty/util/resource/PathResource;
0 6 1 subpath Ljava/lang/String;
1 6 2 cpath Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
subpath final
private void assertValidPath(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
astore 2
start local 2 1: aload 2
invokestatic org.eclipse.jetty.util.StringUtil.indexOfControlChars:(Ljava/lang/String;)I
istore 3
start local 3 2: iload 3
iflt 4
3: new java.nio.file.InvalidPathException
dup
aload 2
new java.lang.StringBuilder
dup
ldc "Invalid Character at index "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.nio.file.InvalidPathException.<init>:(Ljava/lang/String;Ljava/lang/String;)V
athrow
4: StackMap locals: java.lang.String int
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/eclipse/jetty/util/resource/PathResource;
0 5 1 path Ljava/nio/file/Path;
1 5 2 str Ljava/lang/String;
2 5 3 idx I
MethodParameters:
Name Flags
path
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/util/resource/PathResource;
public boolean delete();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.resource.PathResource.path:Ljava/nio/file/Path;
invokestatic java.nio.file.Files.deleteIfExists:(Ljava/nio/file/Path;)Z
1: ireturn
2: StackMap locals:
StackMap stack: java.io.IOException
astore 1
start local 1 3: getstatic org.eclipse.jetty.util.resource.PathResource.LOG:Lorg/eclipse/jetty/util/log/Logger;
aload 1
invokeinterface org.eclipse.jetty.util.log.Logger.ignore:(Ljava/lang/Throwable;)V
4: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/eclipse/jetty/util/resource/PathResource;
3 5 1 e Ljava/io/IOException;
Exception table:
from to target type
0 1 2 Class java.io.IOException
Exceptions:
throws java.lang.SecurityException
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
ifnonnull 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aload 1
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
if_acmpeq 6
5: iconst_0
ireturn
6: StackMap locals:
StackMap stack:
aload 1
checkcast org.eclipse.jetty.util.resource.PathResource
astore 2
start local 2 7: aload 0
getfield org.eclipse.jetty.util.resource.PathResource.path:Ljava/nio/file/Path;
ifnonnull 10
8: aload 2
getfield org.eclipse.jetty.util.resource.PathResource.path:Ljava/nio/file/Path;
ifnull 12
9: iconst_0
ireturn
10: StackMap locals: org.eclipse.jetty.util.resource.PathResource
StackMap stack:
aload 0
getfield org.eclipse.jetty.util.resource.PathResource.path:Ljava/nio/file/Path;
aload 2
getfield org.eclipse.jetty.util.resource.PathResource.path:Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.equals:(Ljava/lang/Object;)Z
ifne 12
11: iconst_0
ireturn
12: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/eclipse/jetty/util/resource/PathResource;
0 13 1 obj Ljava/lang/Object;
7 13 2 other Lorg/eclipse/jetty/util/resource/PathResource;
MethodParameters:
Name Flags
obj
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.eclipse.jetty.util.resource.PathResource.path:Ljava/nio/file/Path;
getstatic org.eclipse.jetty.util.resource.PathResource.NO_FOLLOW_LINKS:[Ljava/nio/file/LinkOption;
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/util/resource/PathResource;
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.eclipse.jetty.util.resource.PathResource.path:Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/util/resource/PathResource;
Exceptions:
throws java.io.IOException
public java.nio.file.Path getPath();
descriptor: ()Ljava/nio/file/Path;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.resource.PathResource.path:Ljava/nio/file/Path;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/util/resource/PathResource;
public java.io.InputStream getInputStream();
descriptor: ()Ljava/io/InputStream;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.io.FileInputStream
dup
aload 0
invokevirtual org.eclipse.jetty.util.resource.PathResource.getFile:()Ljava/io/File;
invokespecial java.io.FileInputStream.<init>:(Ljava/io/File;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/util/resource/PathResource;
Exceptions:
throws java.io.IOException
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.eclipse.jetty.util.resource.PathResource.path:Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toAbsolutePath:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/util/resource/PathResource;
public java.nio.channels.ReadableByteChannel getReadableByteChannel();
descriptor: ()Ljava/nio/channels/ReadableByteChannel;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.resource.PathResource.path: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;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/util/resource/PathResource;
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.eclipse.jetty.util.resource.PathResource.uri:Ljava/net/URI;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/util/resource/PathResource;
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: iconst_1
istore 1
start local 1 1: bipush 31
iload 1
imul
aload 0
getfield org.eclipse.jetty.util.resource.PathResource.path:Ljava/nio/file/Path;
ifnonnull 2
iconst_0
goto 3
StackMap locals: org.eclipse.jetty.util.resource.PathResource int
StackMap stack: int
2: aload 0
getfield org.eclipse.jetty.util.resource.PathResource.path:Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.hashCode:()I
StackMap locals: org.eclipse.jetty.util.resource.PathResource int
StackMap stack: int int
3: iadd
istore 1
4: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/eclipse/jetty/util/resource/PathResource;
1 5 1 result I
public boolean isContainedIn(org.eclipse.jetty.util.resource.Resource);
descriptor: (Lorg/eclipse/jetty/util/resource/Resource;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/util/resource/PathResource;
0 1 1 r Lorg/eclipse/jetty/util/resource/Resource;
Exceptions:
throws java.net.MalformedURLException
MethodParameters:
Name Flags
r
public boolean isDirectory();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.resource.PathResource.path:Ljava/nio/file/Path;
getstatic org.eclipse.jetty.util.resource.PathResource.FOLLOW_LINKS:[Ljava/nio/file/LinkOption;
invokestatic java.nio.file.Files.isDirectory:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/util/resource/PathResource;
public long lastModified();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.resource.PathResource.path:Ljava/nio/file/Path;
getstatic org.eclipse.jetty.util.resource.PathResource.FOLLOW_LINKS:[Ljava/nio/file/LinkOption;
invokestatic java.nio.file.Files.getLastModifiedTime:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Ljava/nio/file/attribute/FileTime;
astore 1
start local 1 1: aload 1
invokevirtual java.nio.file.attribute.FileTime.toMillis:()J
2: lreturn
end local 1 3: StackMap locals:
StackMap stack: java.io.IOException
astore 1
start local 1 4: getstatic org.eclipse.jetty.util.resource.PathResource.LOG:Lorg/eclipse/jetty/util/log/Logger;
aload 1
invokeinterface org.eclipse.jetty.util.log.Logger.ignore:(Ljava/lang/Throwable;)V
5: lconst_0
lreturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/eclipse/jetty/util/resource/PathResource;
1 3 1 ft Ljava/nio/file/attribute/FileTime;
4 6 1 e Ljava/io/IOException;
Exception table:
from to target type
0 2 3 Class java.io.IOException
public long length();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.resource.PathResource.path:Ljava/nio/file/Path;
invokestatic java.nio.file.Files.size:(Ljava/nio/file/Path;)J
1: lreturn
2: StackMap locals:
StackMap stack: java.io.IOException
pop
3: lconst_0
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/eclipse/jetty/util/resource/PathResource;
Exception table:
from to target type
0 1 2 Class java.io.IOException
public boolean isAlias();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.resource.PathResource.alias:Ljava/nio/file/Path;
ifnull 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/eclipse/jetty/util/resource/PathResource;
public java.nio.file.Path getAliasPath();
descriptor: ()Ljava/nio/file/Path;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.resource.PathResource.alias:Ljava/nio/file/Path;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/util/resource/PathResource;
public java.net.URI getAlias();
descriptor: ()Ljava/net/URI;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.resource.PathResource.alias:Ljava/nio/file/Path;
ifnonnull 1
aconst_null
goto 2
StackMap locals:
StackMap stack:
1: aload 0
getfield org.eclipse.jetty.util.resource.PathResource.alias: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/eclipse/jetty/util/resource/PathResource;
public java.lang.String[] list();
descriptor: ()[Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=8, args_size=1
start local 0 0: aconst_null
astore 1
aconst_null
astore 2
1: aload 0
getfield org.eclipse.jetty.util.resource.PathResource.path:Ljava/nio/file/Path;
invokestatic java.nio.file.Files.newDirectoryStream:(Ljava/nio/file/Path;)Ljava/nio/file/DirectoryStream;
astore 3
start local 3 2: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 4
start local 4 3: aload 3
invokeinterface java.nio.file.DirectoryStream.iterator:()Ljava/util/Iterator;
astore 6
goto 9
StackMap locals: org.eclipse.jetty.util.resource.PathResource java.lang.Throwable java.lang.Throwable java.nio.file.DirectoryStream java.util.List top java.util.Iterator
StackMap stack:
4: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.nio.file.Path
astore 5
start local 5 5: aload 5
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
astore 7
start local 7 6: aload 5
iconst_0
anewarray java.nio.file.LinkOption
invokestatic java.nio.file.Files.isDirectory:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
ifeq 8
7: new java.lang.StringBuilder
dup
aload 7
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 7
8: StackMap locals: org.eclipse.jetty.util.resource.PathResource java.lang.Throwable java.lang.Throwable java.nio.file.DirectoryStream java.util.List java.nio.file.Path java.util.Iterator java.lang.String
StackMap stack:
aload 4
aload 7
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 7 end local 5 9: StackMap locals: org.eclipse.jetty.util.resource.PathResource java.lang.Throwable java.lang.Throwable java.nio.file.DirectoryStream java.util.List top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
10: aload 4
invokeinterface java.util.List.size:()I
istore 5
start local 5 11: aload 4
iload 5
anewarray java.lang.String
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.lang.String[]
12: aload 3
ifnull 13
aload 3
invokeinterface java.nio.file.DirectoryStream.close:()V
13: StackMap locals: org.eclipse.jetty.util.resource.PathResource java.lang.Throwable java.lang.Throwable java.nio.file.DirectoryStream java.util.List int
StackMap stack: java.lang.String[]
areturn
end local 5 end local 4 StackMap locals: org.eclipse.jetty.util.resource.PathResource java.lang.Throwable java.lang.Throwable java.nio.file.DirectoryStream
StackMap stack: java.lang.Throwable
14: astore 1
15: aload 3
ifnull 16
aload 3
invokeinterface java.nio.file.DirectoryStream.close:()V
end local 3 StackMap locals:
StackMap stack:
16: aload 1
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
17: astore 2
aload 1
ifnonnull 18
aload 2
astore 1
goto 19
StackMap locals:
StackMap stack:
18: aload 1
aload 2
if_acmpeq 19
aload 1
aload 2
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
19: aload 1
athrow
20: StackMap locals: org.eclipse.jetty.util.resource.PathResource
StackMap stack: java.nio.file.DirectoryIteratorException
astore 1
start local 1 21: getstatic org.eclipse.jetty.util.resource.PathResource.LOG:Lorg/eclipse/jetty/util/log/Logger;
aload 1
invokeinterface org.eclipse.jetty.util.log.Logger.debug:(Ljava/lang/Throwable;)V
end local 1 22: goto 25
23: StackMap locals:
StackMap stack: java.io.IOException
astore 1
start local 1 24: getstatic org.eclipse.jetty.util.resource.PathResource.LOG:Lorg/eclipse/jetty/util/log/Logger;
aload 1
invokeinterface org.eclipse.jetty.util.log.Logger.debug:(Ljava/lang/Throwable;)V
end local 1 25: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lorg/eclipse/jetty/util/resource/PathResource;
2 16 3 dir Ljava/nio/file/DirectoryStream<Ljava/nio/file/Path;>;
3 14 4 entries Ljava/util/List<Ljava/lang/String;>;
5 9 5 entry Ljava/nio/file/Path;
6 9 7 name Ljava/lang/String;
11 14 5 size I
21 22 1 e Ljava/nio/file/DirectoryIteratorException;
24 25 1 e Ljava/io/IOException;
Exception table:
from to target type
2 12 14 any
1 13 17 any
14 17 17 any
0 13 20 Class java.nio.file.DirectoryIteratorException
14 20 20 Class java.nio.file.DirectoryIteratorException
0 13 23 Class java.io.IOException
14 20 23 Class java.io.IOException
public boolean renameTo(org.eclipse.jetty.util.resource.Resource);
descriptor: (Lorg/eclipse/jetty/util/resource/Resource;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
instanceof org.eclipse.jetty.util.resource.PathResource
ifeq 8
1: aload 1
checkcast org.eclipse.jetty.util.resource.PathResource
astore 2
start local 2 2: aload 0
getfield org.eclipse.jetty.util.resource.PathResource.path:Ljava/nio/file/Path;
aload 2
getfield org.eclipse.jetty.util.resource.PathResource.path:Ljava/nio/file/Path;
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;
astore 3
start local 3 3: aload 3
getstatic org.eclipse.jetty.util.resource.PathResource.NO_FOLLOW_LINKS:[Ljava/nio/file/LinkOption;
invokestatic java.nio.file.Files.exists:(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z
4: ireturn
end local 3 5: StackMap locals: org.eclipse.jetty.util.resource.PathResource org.eclipse.jetty.util.resource.Resource org.eclipse.jetty.util.resource.PathResource
StackMap stack: java.io.IOException
astore 3
start local 3 6: getstatic org.eclipse.jetty.util.resource.PathResource.LOG:Lorg/eclipse/jetty/util/log/Logger;
aload 3
invokeinterface org.eclipse.jetty.util.log.Logger.ignore:(Ljava/lang/Throwable;)V
7: iconst_0
ireturn
end local 3 end local 2 8: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/eclipse/jetty/util/resource/PathResource;
0 9 1 dest Lorg/eclipse/jetty/util/resource/Resource;
2 8 2 destRes Lorg/eclipse/jetty/util/resource/PathResource;
3 5 3 result Ljava/nio/file/Path;
6 8 3 e Ljava/io/IOException;
Exception table:
from to target type
2 4 5 Class java.io.IOException
Exceptions:
throws java.lang.SecurityException
MethodParameters:
Name Flags
dest
public void copyTo(java.io.File);
descriptor: (Ljava/io/File;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.eclipse.jetty.util.resource.PathResource.isDirectory:()Z
ifeq 3
1: aload 0
getfield org.eclipse.jetty.util.resource.PathResource.path:Ljava/nio/file/Path;
invokeinterface java.nio.file.Path.toFile:()Ljava/io/File;
aload 1
invokestatic org.eclipse.jetty.util.IO.copyDir:(Ljava/io/File;Ljava/io/File;)V
2: goto 4
3: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.jetty.util.resource.PathResource.path:Ljava/nio/file/Path;
aload 1
invokevirtual java.io.File.toPath:()Ljava/nio/file/Path;
iconst_0
anewarray java.nio.file.CopyOption
invokestatic java.nio.file.Files.copy:(Ljava/nio/file/Path;Ljava/nio/file/Path;[Ljava/nio/file/CopyOption;)Ljava/nio/file/Path;
pop
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/eclipse/jetty/util/resource/PathResource;
0 5 1 destination Ljava/io/File;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
destination
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.eclipse.jetty.util.resource.PathResource.uri:Ljava/net/URI;
invokevirtual java.net.URI.toASCIIString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/util/resource/PathResource;
}
SourceFile: "PathResource.java"