public class javax.activation.MimetypesFileTypeMap extends javax.activation.FileTypeMap
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.activation.MimetypesFileTypeMap
super_class: javax.activation.FileTypeMap
{
private com.sun.activation.registries.MimeTypeFile[] DB;
descriptor: [Lcom/sun/activation/registries/MimeTypeFile;
flags: (0x0002) ACC_PRIVATE
private static final int PROG;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
private static final java.lang.String defaultType;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "application/octet-stream"
private static final java.lang.String confDir;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: aconst_null
astore 0
start local 0 1: new javax.activation.MimetypesFileTypeMap$1
dup
invokespecial javax.activation.MimetypesFileTypeMap$1.<init>:()V
2: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.lang.String
astore 0
3: goto 5
StackMap locals: java.lang.String
StackMap stack: java.lang.Exception
4: pop
5: StackMap locals:
StackMap stack:
aload 0
putstatic javax.activation.MimetypesFileTypeMap.confDir:Ljava/lang/String;
end local 0 6: return
LocalVariableTable:
Start End Slot Name Signature
1 6 0 dir Ljava/lang/String;
Exception table:
from to target type
1 3 4 Class java.lang.Exception
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=1
start local 0 0: aload 0
invokespecial javax.activation.FileTypeMap.<init>:()V
1: new java.util.Vector
dup
iconst_5
invokespecial java.util.Vector.<init>:(I)V
astore 1
start local 1 2: aconst_null
astore 2
start local 2 3: aload 1
aconst_null
invokevirtual java.util.Vector.addElement:(Ljava/lang/Object;)V
4: ldc "MimetypesFileTypeMap: load HOME"
invokestatic com.sun.activation.registries.LogSupport.log:(Ljava/lang/String;)V
5: ldc "user.home"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 6: aload 3
ifnull 13
7: new java.lang.StringBuilder
dup
aload 3
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic java.io.File.separator:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ".mime.types"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 4
start local 4 8: aload 0
aload 4
invokevirtual javax.activation.MimetypesFileTypeMap.loadFile:(Ljava/lang/String;)Lcom/sun/activation/registries/MimeTypeFile;
astore 2
9: aload 2
ifnull 13
10: aload 1
aload 2
invokevirtual java.util.Vector.addElement:(Ljava/lang/Object;)V
end local 4 end local 3 11: goto 13
StackMap locals: javax.activation.MimetypesFileTypeMap java.util.Vector com.sun.activation.registries.MimeTypeFile
StackMap stack: java.lang.SecurityException
12: pop
13: StackMap locals:
StackMap stack:
ldc "MimetypesFileTypeMap: load SYS"
invokestatic com.sun.activation.registries.LogSupport.log:(Ljava/lang/String;)V
14: getstatic javax.activation.MimetypesFileTypeMap.confDir:Ljava/lang/String;
ifnull 20
15: aload 0
new java.lang.StringBuilder
dup
getstatic javax.activation.MimetypesFileTypeMap.confDir:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "mime.types"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual javax.activation.MimetypesFileTypeMap.loadFile:(Ljava/lang/String;)Lcom/sun/activation/registries/MimeTypeFile;
astore 2
16: aload 2
ifnull 20
17: aload 1
aload 2
invokevirtual java.util.Vector.addElement:(Ljava/lang/Object;)V
18: goto 20
StackMap locals:
StackMap stack: java.lang.SecurityException
19: pop
20: StackMap locals:
StackMap stack:
ldc "MimetypesFileTypeMap: load JAR"
invokestatic com.sun.activation.registries.LogSupport.log:(Ljava/lang/String;)V
21: aload 0
aload 1
ldc "META-INF/mime.types"
invokevirtual javax.activation.MimetypesFileTypeMap.loadAllResources:(Ljava/util/Vector;Ljava/lang/String;)V
22: ldc "MimetypesFileTypeMap: load DEF"
invokestatic com.sun.activation.registries.LogSupport.log:(Ljava/lang/String;)V
23: aload 0
ldc "/META-INF/mimetypes.default"
invokevirtual javax.activation.MimetypesFileTypeMap.loadResource:(Ljava/lang/String;)Lcom/sun/activation/registries/MimeTypeFile;
astore 2
24: aload 2
ifnull 26
25: aload 1
aload 2
invokevirtual java.util.Vector.addElement:(Ljava/lang/Object;)V
26: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual java.util.Vector.size:()I
anewarray com.sun.activation.registries.MimeTypeFile
putfield javax.activation.MimetypesFileTypeMap.DB:[Lcom/sun/activation/registries/MimeTypeFile;
27: aload 1
aload 0
getfield javax.activation.MimetypesFileTypeMap.DB:[Lcom/sun/activation/registries/MimeTypeFile;
invokevirtual java.util.Vector.copyInto:([Ljava/lang/Object;)V
28: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Ljavax/activation/MimetypesFileTypeMap;
2 29 1 dbv Ljava/util/Vector;
3 29 2 mf Lcom/sun/activation/registries/MimeTypeFile;
6 11 3 user_home Ljava/lang/String;
8 11 4 path Ljava/lang/String;
Exception table:
from to target type
5 11 12 Class java.lang.SecurityException
14 18 19 Class java.lang.SecurityException
private com.sun.activation.registries.MimeTypeFile loadResource(java.lang.String);
descriptor: (Ljava/lang/String;)Lcom/sun/activation/registries/MimeTypeFile;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aload 1
invokestatic javax.activation.SecuritySupport.getResourceAsStream:(Ljava/lang/Class;Ljava/lang/String;)Ljava/io/InputStream;
astore 2
2: aload 2
ifnull 14
3: new com.sun.activation.registries.MimeTypeFile
dup
aload 2
invokespecial com.sun.activation.registries.MimeTypeFile.<init>:(Ljava/io/InputStream;)V
astore 3
start local 3 4: invokestatic com.sun.activation.registries.LogSupport.isLoggable:()Z
ifeq 8
5: new java.lang.StringBuilder
dup
ldc "MimetypesFileTypeMap: successfully loaded mime types file: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
6: aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
7: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic com.sun.activation.registries.LogSupport.log:(Ljava/lang/String;)V
8: StackMap locals: java.io.InputStream com.sun.activation.registries.MimeTypeFile
StackMap stack:
aload 3
astore 5
9: aload 2
ifnull 13
10: aload 2
invokevirtual java.io.InputStream.close:()V
11: goto 13
StackMap locals: javax.activation.MimetypesFileTypeMap java.lang.String java.io.InputStream com.sun.activation.registries.MimeTypeFile top com.sun.activation.registries.MimeTypeFile
StackMap stack: java.io.IOException
12: pop
13: StackMap locals:
StackMap stack:
aload 5
areturn
end local 3 14: StackMap locals: javax.activation.MimetypesFileTypeMap java.lang.String java.io.InputStream
StackMap stack:
invokestatic com.sun.activation.registries.LogSupport.isLoggable:()Z
ifeq 39
15: new java.lang.StringBuilder
dup
ldc "MimetypesFileTypeMap: not loading mime types file: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
16: aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
17: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic com.sun.activation.registries.LogSupport.log:(Ljava/lang/String;)V
18: goto 39
StackMap locals:
StackMap stack: java.io.IOException
19: astore 3
start local 3 20: invokestatic com.sun.activation.registries.LogSupport.isLoggable:()Z
ifeq 22
21: new java.lang.StringBuilder
dup
ldc "MimetypesFileTypeMap: can't load "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
invokestatic com.sun.activation.registries.LogSupport.log:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 3 22: StackMap locals:
StackMap stack:
aload 2
ifnull 43
23: aload 2
invokevirtual java.io.InputStream.close:()V
24: goto 43
StackMap locals:
StackMap stack: java.io.IOException
25: pop
goto 43
26: StackMap locals:
StackMap stack: java.lang.SecurityException
astore 3
start local 3 27: invokestatic com.sun.activation.registries.LogSupport.isLoggable:()Z
ifeq 29
28: new java.lang.StringBuilder
dup
ldc "MimetypesFileTypeMap: can't load "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
invokestatic com.sun.activation.registries.LogSupport.log:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 3 29: StackMap locals:
StackMap stack:
aload 2
ifnull 43
30: aload 2
invokevirtual java.io.InputStream.close:()V
31: goto 43
StackMap locals:
StackMap stack: java.io.IOException
32: pop
goto 43
33: StackMap locals:
StackMap stack: java.lang.Throwable
astore 4
34: aload 2
ifnull 38
35: aload 2
invokevirtual java.io.InputStream.close:()V
36: goto 38
StackMap locals: javax.activation.MimetypesFileTypeMap java.lang.String java.io.InputStream top java.lang.Throwable
StackMap stack: java.io.IOException
37: pop
38: StackMap locals:
StackMap stack:
aload 4
athrow
39: StackMap locals: javax.activation.MimetypesFileTypeMap java.lang.String java.io.InputStream
StackMap stack:
aload 2
ifnull 43
40: aload 2
invokevirtual java.io.InputStream.close:()V
41: goto 43
StackMap locals:
StackMap stack: java.io.IOException
42: pop
43: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 44 0 this Ljavax/activation/MimetypesFileTypeMap;
0 44 1 name Ljava/lang/String;
1 44 2 clis Ljava/io/InputStream;
4 14 3 mf Lcom/sun/activation/registries/MimeTypeFile;
20 22 3 e Ljava/io/IOException;
27 29 3 sex Ljava/lang/SecurityException;
Exception table:
from to target type
9 11 12 Class java.io.IOException
1 9 19 Class java.io.IOException
14 18 19 Class java.io.IOException
22 24 25 Class java.io.IOException
1 9 26 Class java.lang.SecurityException
14 18 26 Class java.lang.SecurityException
29 31 32 Class java.io.IOException
1 9 33 any
14 22 33 any
26 29 33 any
34 36 37 Class java.io.IOException
39 41 42 Class java.io.IOException
MethodParameters:
Name Flags
name
private void loadAllResources(java.util.Vector, java.lang.String);
descriptor: (Ljava/util/Vector;Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=11, args_size=3
start local 0 start local 1 start local 2 0: iconst_0
istore 3
start local 3 1: aconst_null
astore 5
start local 5 2: invokestatic javax.activation.SecuritySupport.getContextClassLoader:()Ljava/lang/ClassLoader;
astore 5
3: aload 5
ifnonnull 5
4: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
astore 5
5: StackMap locals: javax.activation.MimetypesFileTypeMap java.util.Vector java.lang.String int top java.lang.ClassLoader
StackMap stack:
aload 5
ifnull 8
6: aload 5
aload 2
invokestatic javax.activation.SecuritySupport.getResources:(Ljava/lang/ClassLoader;Ljava/lang/String;)[Ljava/net/URL;
astore 4
start local 4 7: goto 9
end local 4 8: StackMap locals:
StackMap stack:
aload 2
invokestatic javax.activation.SecuritySupport.getSystemResources:(Ljava/lang/String;)[Ljava/net/URL;
astore 4
start local 4 9: StackMap locals: javax.activation.MimetypesFileTypeMap java.util.Vector java.lang.String int java.net.URL[] java.lang.ClassLoader
StackMap stack:
aload 4
ifnull 70
10: invokestatic com.sun.activation.registries.LogSupport.isLoggable:()Z
ifeq 12
11: ldc "MimetypesFileTypeMap: getResources"
invokestatic com.sun.activation.registries.LogSupport.log:(Ljava/lang/String;)V
12: StackMap locals:
StackMap stack:
iconst_0
istore 6
start local 6 13: goto 65
14: StackMap locals: int
StackMap stack:
aload 4
iload 6
aaload
astore 7
start local 7 15: aconst_null
astore 8
start local 8 16: invokestatic com.sun.activation.registries.LogSupport.isLoggable:()Z
ifeq 18
17: new java.lang.StringBuilder
dup
ldc "MimetypesFileTypeMap: URL "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 7
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic com.sun.activation.registries.LogSupport.log:(Ljava/lang/String;)V
18: StackMap locals: java.net.URL java.io.InputStream
StackMap stack:
aload 7
invokestatic javax.activation.SecuritySupport.openStream:(Ljava/net/URL;)Ljava/io/InputStream;
astore 8
19: aload 8
ifnull 27
20: aload 1
new com.sun.activation.registries.MimeTypeFile
dup
aload 8
invokespecial com.sun.activation.registries.MimeTypeFile.<init>:(Ljava/io/InputStream;)V
invokevirtual java.util.Vector.addElement:(Ljava/lang/Object;)V
21: iconst_1
istore 3
22: invokestatic com.sun.activation.registries.LogSupport.isLoggable:()Z
ifeq 60
23: new java.lang.StringBuilder
dup
ldc "MimetypesFileTypeMap: successfully loaded mime types from URL: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
24: aload 7
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
25: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic com.sun.activation.registries.LogSupport.log:(Ljava/lang/String;)V
26: goto 60
27: StackMap locals:
StackMap stack:
invokestatic com.sun.activation.registries.LogSupport.isLoggable:()Z
ifeq 60
28: new java.lang.StringBuilder
dup
ldc "MimetypesFileTypeMap: not loading mime types from URL: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
29: aload 7
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
30: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic com.sun.activation.registries.LogSupport.log:(Ljava/lang/String;)V
31: goto 60
StackMap locals:
StackMap stack: java.io.IOException
32: astore 9
start local 9 33: invokestatic com.sun.activation.registries.LogSupport.isLoggable:()Z
ifeq 39
34: new java.lang.StringBuilder
dup
ldc "MimetypesFileTypeMap: can't load "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
35: aload 7
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
36: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
37: aload 9
38: invokestatic com.sun.activation.registries.LogSupport.log:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 9 39: StackMap locals:
StackMap stack:
aload 8
ifnull 64
40: aload 8
invokevirtual java.io.InputStream.close:()V
41: goto 64
StackMap locals:
StackMap stack: java.io.IOException
42: pop
goto 64
43: StackMap locals:
StackMap stack: java.lang.SecurityException
astore 9
start local 9 44: invokestatic com.sun.activation.registries.LogSupport.isLoggable:()Z
ifeq 50
45: new java.lang.StringBuilder
dup
ldc "MimetypesFileTypeMap: can't load "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
46: aload 7
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
47: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
48: aload 9
49: invokestatic com.sun.activation.registries.LogSupport.log:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 9 50: StackMap locals:
StackMap stack:
aload 8
ifnull 64
51: aload 8
invokevirtual java.io.InputStream.close:()V
52: goto 64
StackMap locals:
StackMap stack: java.io.IOException
53: pop
goto 64
54: StackMap locals:
StackMap stack: java.lang.Throwable
astore 10
55: aload 8
ifnull 59
56: aload 8
invokevirtual java.io.InputStream.close:()V
57: goto 59
StackMap locals: javax.activation.MimetypesFileTypeMap java.util.Vector java.lang.String int java.net.URL[] java.lang.ClassLoader int java.net.URL java.io.InputStream top java.lang.Throwable
StackMap stack: java.io.IOException
58: pop
59: StackMap locals:
StackMap stack:
aload 10
athrow
60: StackMap locals: javax.activation.MimetypesFileTypeMap java.util.Vector java.lang.String int java.net.URL[] java.lang.ClassLoader int java.net.URL java.io.InputStream
StackMap stack:
aload 8
ifnull 64
61: aload 8
invokevirtual java.io.InputStream.close:()V
62: goto 64
StackMap locals:
StackMap stack: java.io.IOException
63: pop
end local 8 end local 7 64: StackMap locals:
StackMap stack:
iinc 6 1
StackMap locals:
StackMap stack:
65: iload 6
aload 4
arraylength
if_icmplt 14
end local 6 end local 5 end local 4 66: goto 70
StackMap locals: javax.activation.MimetypesFileTypeMap java.util.Vector java.lang.String int
StackMap stack: java.lang.Exception
67: astore 4
start local 4 68: invokestatic com.sun.activation.registries.LogSupport.isLoggable:()Z
ifeq 70
69: new java.lang.StringBuilder
dup
ldc "MimetypesFileTypeMap: can't load "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 4
invokestatic com.sun.activation.registries.LogSupport.log:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 4 70: StackMap locals:
StackMap stack:
iload 3
ifne 75
71: ldc "MimetypesFileTypeMap: !anyLoaded"
invokestatic com.sun.activation.registries.LogSupport.log:(Ljava/lang/String;)V
72: aload 0
new java.lang.StringBuilder
dup
ldc "/"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual javax.activation.MimetypesFileTypeMap.loadResource:(Ljava/lang/String;)Lcom/sun/activation/registries/MimeTypeFile;
astore 4
start local 4 73: aload 4
ifnull 75
74: aload 1
aload 4
invokevirtual java.util.Vector.addElement:(Ljava/lang/Object;)V
end local 4 75: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 76 0 this Ljavax/activation/MimetypesFileTypeMap;
0 76 1 v Ljava/util/Vector;
0 76 2 name Ljava/lang/String;
1 76 3 anyLoaded Z
7 8 4 urls [Ljava/net/URL;
9 66 4 urls [Ljava/net/URL;
2 66 5 cld Ljava/lang/ClassLoader;
13 66 6 i I
15 64 7 url Ljava/net/URL;
16 64 8 clis Ljava/io/InputStream;
33 39 9 ioex Ljava/io/IOException;
44 50 9 sex Ljava/lang/SecurityException;
68 70 4 ex Ljava/lang/Exception;
73 75 4 mf Lcom/sun/activation/registries/MimeTypeFile;
Exception table:
from to target type
18 31 32 Class java.io.IOException
39 41 42 Class java.io.IOException
18 31 43 Class java.lang.SecurityException
50 52 53 Class java.io.IOException
18 39 54 any
43 50 54 any
55 57 58 Class java.io.IOException
60 62 63 Class java.io.IOException
1 66 67 Class java.lang.Exception
MethodParameters:
Name Flags
v
name
private com.sun.activation.registries.MimeTypeFile loadFile(java.lang.String);
descriptor: (Ljava/lang/String;)Lcom/sun/activation/registries/MimeTypeFile;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: new com.sun.activation.registries.MimeTypeFile
dup
aload 1
invokespecial com.sun.activation.registries.MimeTypeFile.<init>:(Ljava/lang/String;)V
astore 2
2: goto 4
StackMap locals: javax.activation.MimetypesFileTypeMap java.lang.String com.sun.activation.registries.MimeTypeFile
StackMap stack: java.io.IOException
3: pop
4: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/activation/MimetypesFileTypeMap;
0 5 1 name Ljava/lang/String;
1 5 2 mtf Lcom/sun/activation/registries/MimeTypeFile;
Exception table:
from to target type
1 2 3 Class java.io.IOException
MethodParameters:
Name Flags
name
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial javax.activation.MimetypesFileTypeMap.<init>:()V
1: aload 0
getfield javax.activation.MimetypesFileTypeMap.DB:[Lcom/sun/activation/registries/MimeTypeFile;
iconst_0
new com.sun.activation.registries.MimeTypeFile
dup
aload 1
invokespecial com.sun.activation.registries.MimeTypeFile.<init>:(Ljava/lang/String;)V
aastore
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/activation/MimetypesFileTypeMap;
0 3 1 mimeTypeFileName Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
mimeTypeFileName
public void <init>(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial javax.activation.MimetypesFileTypeMap.<init>:()V
1: aload 0
getfield javax.activation.MimetypesFileTypeMap.DB:[Lcom/sun/activation/registries/MimeTypeFile;
iconst_0
new com.sun.activation.registries.MimeTypeFile
dup
aload 1
invokespecial com.sun.activation.registries.MimeTypeFile.<init>:(Ljava/io/InputStream;)V
aastore
2: goto 4
StackMap locals: javax.activation.MimetypesFileTypeMap java.io.InputStream
StackMap stack: java.io.IOException
3: pop
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/activation/MimetypesFileTypeMap;
0 5 1 is Ljava/io/InputStream;
Exception table:
from to target type
1 2 3 Class java.io.IOException
MethodParameters:
Name Flags
is
public synchronized void addMimeTypes(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield javax.activation.MimetypesFileTypeMap.DB:[Lcom/sun/activation/registries/MimeTypeFile;
iconst_0
aaload
ifnonnull 2
1: aload 0
getfield javax.activation.MimetypesFileTypeMap.DB:[Lcom/sun/activation/registries/MimeTypeFile;
iconst_0
new com.sun.activation.registries.MimeTypeFile
dup
invokespecial com.sun.activation.registries.MimeTypeFile.<init>:()V
aastore
2: StackMap locals:
StackMap stack:
aload 0
getfield javax.activation.MimetypesFileTypeMap.DB:[Lcom/sun/activation/registries/MimeTypeFile;
iconst_0
aaload
aload 1
invokevirtual com.sun.activation.registries.MimeTypeFile.appendToRegistry:(Ljava/lang/String;)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/activation/MimetypesFileTypeMap;
0 4 1 mime_types Ljava/lang/String;
MethodParameters:
Name Flags
mime_types
public java.lang.String getContentType(java.io.File);
descriptor: (Ljava/io/File;)Ljava/lang/String;
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.getName:()Ljava/lang/String;
invokevirtual javax.activation.MimetypesFileTypeMap.getContentType:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/activation/MimetypesFileTypeMap;
0 1 1 f Ljava/io/File;
MethodParameters:
Name Flags
f
public synchronized java.lang.String getContentType(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 1
ldc "."
invokevirtual java.lang.String.lastIndexOf:(Ljava/lang/String;)I
istore 2
start local 2 1: iload 2
ifge 3
2: ldc "application/octet-stream"
areturn
3: StackMap locals: int
StackMap stack:
aload 1
iload 2
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 3
start local 3 4: aload 3
invokevirtual java.lang.String.length:()I
ifne 6
5: ldc "application/octet-stream"
areturn
6: StackMap locals: java.lang.String
StackMap stack:
iconst_0
istore 4
start local 4 7: goto 14
8: StackMap locals: int
StackMap stack:
aload 0
getfield javax.activation.MimetypesFileTypeMap.DB:[Lcom/sun/activation/registries/MimeTypeFile;
iload 4
aaload
ifnonnull 10
9: goto 13
10: StackMap locals:
StackMap stack:
aload 0
getfield javax.activation.MimetypesFileTypeMap.DB:[Lcom/sun/activation/registries/MimeTypeFile;
iload 4
aaload
aload 3
invokevirtual com.sun.activation.registries.MimeTypeFile.getMIMETypeString:(Ljava/lang/String;)Ljava/lang/String;
astore 5
start local 5 11: aload 5
ifnull 13
12: aload 5
areturn
end local 5 13: StackMap locals:
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
14: iload 4
aload 0
getfield javax.activation.MimetypesFileTypeMap.DB:[Lcom/sun/activation/registries/MimeTypeFile;
arraylength
if_icmplt 8
end local 4 15: ldc "application/octet-stream"
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Ljavax/activation/MimetypesFileTypeMap;
0 16 1 filename Ljava/lang/String;
1 16 2 dot_pos I
4 16 3 file_ext Ljava/lang/String;
7 15 4 i I
11 13 5 result Ljava/lang/String;
MethodParameters:
Name Flags
filename
}
SourceFile: "MimetypesFileTypeMap.java"
NestMembers:
javax.activation.MimetypesFileTypeMap$1
InnerClasses:
javax.activation.MimetypesFileTypeMap$1