public abstract class javax.activation.FileTypeMap
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: javax.activation.FileTypeMap
super_class: java.lang.Object
{
private static javax.activation.FileTypeMap defaultMap;
descriptor: Ljavax/activation/FileTypeMap;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static java.util.Map<java.lang.ClassLoader, javax.activation.FileTypeMap> map;
descriptor: Ljava/util/Map;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Signature: Ljava/util/Map<Ljava/lang/ClassLoader;Ljavax/activation/FileTypeMap;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: aconst_null
putstatic javax.activation.FileTypeMap.defaultMap:Ljavax/activation/FileTypeMap;
1: new java.util.WeakHashMap
dup
invokespecial java.util.WeakHashMap.<init>:()V
2: putstatic javax.activation.FileTypeMap.map:Ljava/util/Map;
3: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/activation/FileTypeMap;
public abstract java.lang.String getContentType(java.io.File);
descriptor: (Ljava/io/File;)Ljava/lang/String;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
file
public abstract java.lang.String getContentType(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
filename
public static synchronized void setDefaultFileTypeMap(javax.activation.FileTypeMap);
descriptor: (Ljavax/activation/FileTypeMap;)V
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=4, args_size=1
start local 0 0: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 1
start local 1 1: aload 1
ifnull 9
2: aload 1
invokevirtual java.lang.SecurityManager.checkSetFactory:()V
3: goto 9
StackMap locals: javax.activation.FileTypeMap java.lang.SecurityManager
StackMap stack: java.lang.SecurityException
4: astore 2
start local 2 5: ldc Ljavax/activation/FileTypeMap;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
astore 3
start local 3 6: aload 3
ifnull 8
aload 3
invokevirtual java.lang.ClassLoader.getParent:()Ljava/lang/ClassLoader;
ifnull 8
7: aload 3
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
if_acmpeq 9
8: StackMap locals: java.lang.SecurityException java.lang.ClassLoader
StackMap stack:
aload 2
athrow
end local 3 end local 2 9: StackMap locals:
StackMap stack:
getstatic javax.activation.FileTypeMap.map:Ljava/util/Map;
invokestatic javax.activation.SecuritySupport.getContextClassLoader:()Ljava/lang/ClassLoader;
invokeinterface java.util.Map.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
10: aload 0
putstatic javax.activation.FileTypeMap.defaultMap:Ljavax/activation/FileTypeMap;
11: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 fileTypeMap Ljavax/activation/FileTypeMap;
1 12 1 security Ljava/lang/SecurityManager;
5 9 2 ex Ljava/lang/SecurityException;
6 9 3 cl Ljava/lang/ClassLoader;
Exception table:
from to target type
2 3 4 Class java.lang.SecurityException
MethodParameters:
Name Flags
fileTypeMap
public static synchronized javax.activation.FileTypeMap getDefaultFileTypeMap();
descriptor: ()Ljavax/activation/FileTypeMap;
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=2, args_size=0
0: getstatic javax.activation.FileTypeMap.defaultMap:Ljavax/activation/FileTypeMap;
ifnull 2
1: getstatic javax.activation.FileTypeMap.defaultMap:Ljavax/activation/FileTypeMap;
areturn
2: StackMap locals:
StackMap stack:
invokestatic javax.activation.SecuritySupport.getContextClassLoader:()Ljava/lang/ClassLoader;
astore 0
start local 0 3: getstatic javax.activation.FileTypeMap.map:Ljava/util/Map;
aload 0
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast javax.activation.FileTypeMap
astore 1
start local 1 4: aload 1
ifnonnull 7
5: new javax.activation.MimetypesFileTypeMap
dup
invokespecial javax.activation.MimetypesFileTypeMap.<init>:()V
astore 1
6: getstatic javax.activation.FileTypeMap.map:Ljava/util/Map;
aload 0
aload 1
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
7: StackMap locals: java.lang.ClassLoader javax.activation.FileTypeMap
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
3 8 0 tccl Ljava/lang/ClassLoader;
4 8 1 def Ljavax/activation/FileTypeMap;
}
SourceFile: "FileTypeMap.java"