public abstract class sun.nio.fs.AbstractFileTypeDetector extends java.nio.file.spi.FileTypeDetector
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: sun.nio.fs.AbstractFileTypeDetector
super_class: java.nio.file.spi.FileTypeDetector
{
private static final java.lang.String TSPECIALS;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "()<>@,;:/[]?=\\\""
protected void <init>();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.nio.file.spi.FileTypeDetector.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/fs/AbstractFileTypeDetector;
protected final java.lang.String getExtension(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: ldc ""
astore 2
start local 2 1: aload 1
ifnull 5
aload 1
invokevirtual java.lang.String.isEmpty:()Z
ifne 5
2: aload 1
bipush 46
invokevirtual java.lang.String.indexOf:(I)I
istore 3
start local 3 3: iload 3
iflt 5
iload 3
aload 1
invokevirtual java.lang.String.length:()I
iconst_1
isub
if_icmpge 5
4: aload 1
iload 3
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 2
end local 3 5: StackMap locals: java.lang.String
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/nio/fs/AbstractFileTypeDetector;
0 6 1 name Ljava/lang/String;
1 6 2 ext Ljava/lang/String;
3 5 3 dot I
MethodParameters:
Name Flags
name
public final java.lang.String probeContentType(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.NullPointerException
dup
ldc "'file' is null"
invokespecial java.lang.NullPointerException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual sun.nio.fs.AbstractFileTypeDetector.implProbeContentType:(Ljava/nio/file/Path;)Ljava/lang/String;
astore 2
start local 2 3: aload 2
ifnonnull 8
4: aload 1
invokeinterface java.nio.file.Path.getFileName:()Ljava/nio/file/Path;
astore 3
start local 3 5: aload 3
ifnull 8
6: invokestatic java.net.URLConnection.getFileNameMap:()Ljava/net/FileNameMap;
astore 4
start local 4 7: aload 4
aload 3
invokeinterface java.nio.file.Path.toString:()Ljava/lang/String;
invokeinterface java.net.FileNameMap.getContentTypeFor:(Ljava/lang/String;)Ljava/lang/String;
astore 2
end local 4 end local 3 8: StackMap locals: java.lang.String
StackMap stack:
aload 2
ifnonnull 9
aconst_null
goto 10
StackMap locals:
StackMap stack:
9: aload 2
invokestatic sun.nio.fs.AbstractFileTypeDetector.parse:(Ljava/lang/String;)Ljava/lang/String;
StackMap locals:
StackMap stack: java.lang.String
10: areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/nio/fs/AbstractFileTypeDetector;
0 11 1 file Ljava/nio/file/Path;
3 11 2 result Ljava/lang/String;
5 8 3 fileName Ljava/nio/file/Path;
7 8 4 fileNameMap Ljava/net/FileNameMap;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
file
protected abstract java.lang.String implProbeContentType(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljava/lang/String;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
file
private static java.lang.String parse(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=6, args_size=1
start local 0 0: aload 0
bipush 47
invokevirtual java.lang.String.indexOf:(I)I
istore 1
start local 1 1: aload 0
bipush 59
invokevirtual java.lang.String.indexOf:(I)I
istore 2
start local 2 2: iload 1
ifge 4
3: aconst_null
areturn
4: StackMap locals: int int
StackMap stack:
aload 0
iconst_0
iload 1
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
astore 3
start local 3 5: aload 3
invokestatic sun.nio.fs.AbstractFileTypeDetector.isValidToken:(Ljava/lang/String;)Z
ifne 7
6: aconst_null
areturn
7: StackMap locals: java.lang.String
StackMap stack:
iload 2
ifge 8
aload 0
iload 1
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
goto 9
8: StackMap locals:
StackMap stack:
aload 0
iload 1
iconst_1
iadd
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
9: StackMap locals:
StackMap stack: java.lang.String
astore 4
start local 4 10: aload 4
invokevirtual java.lang.String.trim:()Ljava/lang/String;
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
astore 4
11: aload 4
invokestatic sun.nio.fs.AbstractFileTypeDetector.isValidToken:(Ljava/lang/String;)Z
ifne 13
12: aconst_null
areturn
13: StackMap locals: java.lang.String
StackMap stack:
new java.lang.StringBuilder
dup
aload 3
invokevirtual java.lang.String.length:()I
aload 4
invokevirtual java.lang.String.length:()I
iadd
iconst_1
iadd
invokespecial java.lang.StringBuilder.<init>:(I)V
astore 5
start local 5 14: aload 5
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
15: aload 5
bipush 47
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
16: aload 5
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
17: aload 5
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 s Ljava/lang/String;
1 18 1 slash I
2 18 2 semicolon I
5 18 3 type Ljava/lang/String;
10 18 4 subtype Ljava/lang/String;
14 18 5 sb Ljava/lang/StringBuilder;
MethodParameters:
Name Flags
s
private static boolean isTokenChar(char);
descriptor: (C)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
bipush 32
if_icmple 1
iload 0
bipush 127
if_icmpge 1
ldc "()<>@,;:/[]?=\\\""
iload 0
invokevirtual java.lang.String.indexOf:(I)I
ifge 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 c C
MethodParameters:
Name Flags
c
private static boolean isValidToken(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.String.length:()I
istore 1
start local 1 1: iload 1
ifne 3
2: iconst_0
ireturn
3: StackMap locals: int
StackMap stack:
iconst_0
istore 2
start local 2 4: goto 8
5: StackMap locals: int
StackMap stack:
aload 0
iload 2
invokevirtual java.lang.String.charAt:(I)C
invokestatic sun.nio.fs.AbstractFileTypeDetector.isTokenChar:(C)Z
ifne 7
6: iconst_0
ireturn
7: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
8: iload 2
iload 1
if_icmplt 5
end local 2 9: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 s Ljava/lang/String;
1 10 1 len I
4 9 2 i I
MethodParameters:
Name Flags
s
}
SourceFile: "AbstractFileTypeDetector.java"