public class sun.net.www.MimeTable implements java.net.FileNameMap
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.net.www.MimeTable
super_class: java.lang.Object
{
private java.util.Hashtable<java.lang.String, sun.net.www.MimeEntry> entries;
descriptor: Ljava/util/Hashtable;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Hashtable<Ljava/lang/String;Lsun/net/www/MimeEntry;>;
private java.util.Hashtable<java.lang.String, sun.net.www.MimeEntry> extensionMap;
descriptor: Ljava/util/Hashtable;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Hashtable<Ljava/lang/String;Lsun/net/www/MimeEntry;>;
private static java.lang.String tempFileTemplate;
descriptor: Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private static final java.lang.String filePreamble;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "sun.net.www MIME content-types table"
private static final java.lang.String fileMagic;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "#sun.net.www MIME content-types table"
protected static java.lang.String[] mailcapLocations;
descriptor: [Ljava/lang/String;
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new sun.net.www.MimeTable$1
dup
invokespecial sun.net.www.MimeTable$1.<init>:()V
1: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
pop
2: return
LocalVariableTable:
Start End Slot Name Signature
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
2: new java.util.Hashtable
dup
invokespecial java.util.Hashtable.<init>:()V
putfield sun.net.www.MimeTable.entries:Ljava/util/Hashtable;
3: aload 0
4: new java.util.Hashtable
dup
invokespecial java.util.Hashtable.<init>:()V
putfield sun.net.www.MimeTable.extensionMap:Ljava/util/Hashtable;
5: aload 0
invokevirtual sun.net.www.MimeTable.load:()V
6: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/net/www/MimeTable;
public static sun.net.www.MimeTable getDefaultTable();
descriptor: ()Lsun/net/www/MimeTable;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic sun.net.www.MimeTable$DefaultInstanceHolder.defaultInstance:Lsun/net/www/MimeTable;
areturn
LocalVariableTable:
Start End Slot Name Signature
public static java.net.FileNameMap loadTable();
descriptor: ()Ljava/net/FileNameMap;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=0
0: invokestatic sun.net.www.MimeTable.getDefaultTable:()Lsun/net/www/MimeTable;
astore 0
start local 0 1: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 2 0 mt Lsun/net/www/MimeTable;
public synchronized int getSize();
descriptor: ()I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.www.MimeTable.entries:Ljava/util/Hashtable;
invokevirtual java.util.Hashtable.size:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/www/MimeTable;
public synchronized java.lang.String getContentTypeFor(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual sun.net.www.MimeTable.findByFileName:(Ljava/lang/String;)Lsun/net/www/MimeEntry;
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 2
invokevirtual sun.net.www.MimeEntry.getType:()Ljava/lang/String;
areturn
3: StackMap locals: sun.net.www.MimeEntry
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/net/www/MimeTable;
0 4 1 fileName Ljava/lang/String;
1 4 2 entry Lsun/net/www/MimeEntry;
MethodParameters:
Name Flags
fileName
public synchronized void add(sun.net.www.MimeEntry);
descriptor: (Lsun/net/www/MimeEntry;)V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.net.www.MimeTable.entries:Ljava/util/Hashtable;
aload 1
invokevirtual sun.net.www.MimeEntry.getType:()Ljava/lang/String;
aload 1
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: aload 1
invokevirtual sun.net.www.MimeEntry.getExtensions:()[Ljava/lang/String;
astore 2
start local 2 2: aload 2
ifnonnull 4
3: return
4: StackMap locals: java.lang.String[]
StackMap stack:
iconst_0
istore 3
start local 3 5: goto 8
6: StackMap locals: int
StackMap stack:
aload 0
getfield sun.net.www.MimeTable.extensionMap:Ljava/util/Hashtable;
aload 2
iload 3
aaload
aload 1
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
7: iinc 3 1
StackMap locals:
StackMap stack:
8: iload 3
aload 2
arraylength
if_icmplt 6
end local 3 9: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/net/www/MimeTable;
0 10 1 m Lsun/net/www/MimeEntry;
2 10 2 exts [Ljava/lang/String;
5 9 3 i I
MethodParameters:
Name Flags
m
public synchronized sun.net.www.MimeEntry remove(java.lang.String);
descriptor: (Ljava/lang/String;)Lsun/net/www/MimeEntry;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.net.www.MimeTable.entries:Ljava/util/Hashtable;
aload 1
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.net.www.MimeEntry
astore 2
start local 2 1: aload 0
aload 2
invokevirtual sun.net.www.MimeTable.remove:(Lsun/net/www/MimeEntry;)Lsun/net/www/MimeEntry;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/net/www/MimeTable;
0 2 1 type Ljava/lang/String;
1 2 2 entry Lsun/net/www/MimeEntry;
MethodParameters:
Name Flags
type
public synchronized sun.net.www.MimeEntry remove(sun.net.www.MimeEntry);
descriptor: (Lsun/net/www/MimeEntry;)Lsun/net/www/MimeEntry;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual sun.net.www.MimeEntry.getExtensions:()[Ljava/lang/String;
astore 2
start local 2 1: aload 2
ifnull 7
2: iconst_0
istore 3
start local 3 3: goto 6
4: StackMap locals: java.lang.String[] int
StackMap stack:
aload 0
getfield sun.net.www.MimeTable.extensionMap:Ljava/util/Hashtable;
aload 2
iload 3
aaload
invokevirtual java.util.Hashtable.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
5: iinc 3 1
StackMap locals:
StackMap stack:
6: iload 3
aload 2
arraylength
if_icmplt 4
end local 3 7: StackMap locals:
StackMap stack:
aload 0
getfield sun.net.www.MimeTable.entries:Ljava/util/Hashtable;
aload 1
invokevirtual sun.net.www.MimeEntry.getType:()Ljava/lang/String;
invokevirtual java.util.Hashtable.remove:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.net.www.MimeEntry
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/net/www/MimeTable;
0 8 1 entry Lsun/net/www/MimeEntry;
1 8 2 extensionKeys [Ljava/lang/String;
3 7 3 i I
MethodParameters:
Name Flags
entry
public synchronized sun.net.www.MimeEntry find(java.lang.String);
descriptor: (Ljava/lang/String;)Lsun/net/www/MimeEntry;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.net.www.MimeTable.entries:Ljava/util/Hashtable;
aload 1
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.net.www.MimeEntry
astore 2
start local 2 1: aload 2
ifnonnull 8
2: aload 0
getfield sun.net.www.MimeTable.entries:Ljava/util/Hashtable;
invokevirtual java.util.Hashtable.elements:()Ljava/util/Enumeration;
astore 3
start local 3 3: goto 7
4: StackMap locals: sun.net.www.MimeEntry java.util.Enumeration
StackMap stack:
aload 3
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast sun.net.www.MimeEntry
astore 4
start local 4 5: aload 4
aload 1
invokevirtual sun.net.www.MimeEntry.matches:(Ljava/lang/String;)Z
ifeq 7
6: aload 4
areturn
end local 4 7: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 4
end local 3 8: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/net/www/MimeTable;
0 9 1 type Ljava/lang/String;
1 9 2 entry Lsun/net/www/MimeEntry;
3 8 3 e Ljava/util/Enumeration<Lsun/net/www/MimeEntry;>;
5 7 4 wild Lsun/net/www/MimeEntry;
MethodParameters:
Name Flags
type
public sun.net.www.MimeEntry findByFileName(java.lang.String);
descriptor: (Ljava/lang/String;)Lsun/net/www/MimeEntry;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: ldc ""
astore 2
start local 2 1: aload 1
bipush 35
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 3
start local 3 2: iload 3
ifle 4
3: aload 1
iconst_0
iload 3
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 1
4: StackMap locals: java.lang.String int
StackMap stack:
aload 1
bipush 46
invokevirtual java.lang.String.lastIndexOf:(I)I
istore 3
5: iload 3
aload 1
bipush 47
invokevirtual java.lang.String.lastIndexOf:(I)I
invokestatic java.lang.Math.max:(II)I
istore 3
6: iload 3
aload 1
bipush 63
invokevirtual java.lang.String.lastIndexOf:(I)I
invokestatic java.lang.Math.max:(II)I
istore 3
7: iload 3
iconst_m1
if_icmpeq 9
aload 1
iload 3
invokevirtual java.lang.String.charAt:(I)C
bipush 46
if_icmpne 9
8: aload 1
iload 3
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
astore 2
9: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual sun.net.www.MimeTable.findByExt:(Ljava/lang/String;)Lsun/net/www/MimeEntry;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/net/www/MimeTable;
0 10 1 fname Ljava/lang/String;
1 10 2 ext Ljava/lang/String;
2 10 3 i I
MethodParameters:
Name Flags
fname
public synchronized sun.net.www.MimeEntry findByExt(java.lang.String);
descriptor: (Ljava/lang/String;)Lsun/net/www/MimeEntry;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.net.www.MimeTable.extensionMap:Ljava/util/Hashtable;
aload 1
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast sun.net.www.MimeEntry
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/www/MimeTable;
0 1 1 fileExtension Ljava/lang/String;
MethodParameters:
Name Flags
fileExtension
public synchronized sun.net.www.MimeEntry findByDescription(java.lang.String);
descriptor: (Ljava/lang/String;)Lsun/net/www/MimeEntry;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual sun.net.www.MimeTable.elements:()Ljava/util/Enumeration;
astore 2
start local 2 1: goto 5
2: StackMap locals: java.util.Enumeration
StackMap stack:
aload 2
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast sun.net.www.MimeEntry
astore 3
start local 3 3: aload 1
aload 3
invokevirtual sun.net.www.MimeEntry.getDescription:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 5
4: aload 3
areturn
end local 3 5: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 2
6: aload 0
aload 1
invokevirtual sun.net.www.MimeTable.find:(Ljava/lang/String;)Lsun/net/www/MimeEntry;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/net/www/MimeTable;
0 7 1 description Ljava/lang/String;
1 7 2 e Ljava/util/Enumeration<Lsun/net/www/MimeEntry;>;
3 5 3 entry Lsun/net/www/MimeEntry;
MethodParameters:
Name Flags
description
java.lang.String getTempFileTemplate();
descriptor: ()Ljava/lang/String;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic sun.net.www.MimeTable.tempFileTemplate:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/www/MimeTable;
public synchronized java.util.Enumeration<sun.net.www.MimeEntry> elements();
descriptor: ()Ljava/util/Enumeration;
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.net.www.MimeTable.entries:Ljava/util/Hashtable;
invokevirtual java.util.Hashtable.elements:()Ljava/util/Enumeration;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/net/www/MimeTable;
Signature: ()Ljava/util/Enumeration<Lsun/net/www/MimeEntry;>;
public synchronized void load();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=8, args_size=1
start local 0 0: new java.util.Properties
dup
invokespecial java.util.Properties.<init>:()V
astore 1
start local 1 1: aconst_null
astore 2
start local 2 2: ldc "content.types.user.table"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 4
start local 4 3: aload 4
ifnull 11
new java.io.File
dup
aload 4
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
dup
astore 2
invokevirtual java.io.File.exists:()Z
ifeq 11
4: new java.io.FileInputStream
dup
aload 2
invokespecial java.io.FileInputStream.<init>:(Ljava/io/File;)V
astore 3
start local 3 5: goto 14
end local 3 StackMap locals: sun.net.www.MimeTable java.util.Properties java.io.File top java.lang.String
StackMap stack: java.io.FileNotFoundException
6: pop
7: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Warning: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.io.File.getPath:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
8: ldc " mime table not found."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
9: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
10: return
11: StackMap locals:
StackMap stack:
ldc Lsun/net/www/MimeTable;
ldc "content-types.properties"
invokevirtual java.lang.Class.getResourceAsStream:(Ljava/lang/String;)Ljava/io/InputStream;
astore 3
start local 3 12: aload 3
ifnonnull 14
13: new java.lang.InternalError
dup
ldc "default mime table not found"
invokespecial java.lang.InternalError.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals: sun.net.www.MimeTable java.util.Properties java.io.File java.io.InputStream java.lang.String
StackMap stack:
aconst_null
astore 5
aconst_null
astore 6
15: new java.io.BufferedInputStream
dup
aload 3
invokespecial java.io.BufferedInputStream.<init>:(Ljava/io/InputStream;)V
astore 7
start local 7 16: aload 1
aload 7
invokevirtual java.util.Properties.load:(Ljava/io/InputStream;)V
17: aload 7
ifnull 25
aload 7
invokevirtual java.io.BufferedInputStream.close:()V
goto 25
StackMap locals: sun.net.www.MimeTable java.util.Properties java.io.File java.io.InputStream java.lang.String java.lang.Throwable java.lang.Throwable java.io.BufferedInputStream
StackMap stack: java.lang.Throwable
18: astore 5
aload 7
ifnull 19
aload 7
invokevirtual java.io.BufferedInputStream.close:()V
end local 7 StackMap locals:
StackMap stack:
19: aload 5
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
20: astore 6
aload 5
ifnonnull 21
aload 6
astore 5
goto 22
StackMap locals:
StackMap stack:
21: aload 5
aload 6
if_acmpeq 22
aload 5
aload 6
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
22: aload 5
athrow
StackMap locals: sun.net.www.MimeTable java.util.Properties java.io.File java.io.InputStream java.lang.String
StackMap stack: java.io.IOException
23: astore 5
start local 5 24: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Warning: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
end local 5 25: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual sun.net.www.MimeTable.parse:(Ljava/util/Properties;)V
26: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lsun/net/www/MimeTable;
1 27 1 entries Ljava/util/Properties;
2 27 2 file Ljava/io/File;
5 6 3 in Ljava/io/InputStream;
12 27 3 in Ljava/io/InputStream;
3 27 4 userTablePath Ljava/lang/String;
16 19 7 bin Ljava/io/BufferedInputStream;
24 25 5 e Ljava/io/IOException;
Exception table:
from to target type
4 5 6 Class java.io.FileNotFoundException
16 17 18 any
15 20 20 any
14 23 23 Class java.io.IOException
void parse(java.util.Properties);
descriptor: (Ljava/util/Properties;)V
flags: (0x0000)
Code:
stack=3, locals=6, args_size=2
start local 0 start local 1 0: aload 1
ldc "temp.file.template"
invokevirtual java.util.Properties.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 2
start local 2 1: aload 2
ifnull 4
2: aload 1
ldc "temp.file.template"
invokevirtual java.util.Properties.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
3: aload 2
putstatic sun.net.www.MimeTable.tempFileTemplate:Ljava/lang/String;
4: StackMap locals: java.lang.String
StackMap stack:
aload 1
invokevirtual java.util.Properties.propertyNames:()Ljava/util/Enumeration;
astore 3
start local 3 5: goto 9
6: StackMap locals: java.util.Enumeration
StackMap stack:
aload 3
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 7: aload 1
aload 4
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 5
start local 5 8: aload 0
aload 4
aload 5
invokevirtual sun.net.www.MimeTable.parse:(Ljava/lang/String;Ljava/lang/String;)V
end local 5 end local 4 9: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 6
10: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/net/www/MimeTable;
0 11 1 entries Ljava/util/Properties;
1 11 2 tempFileTemplate Ljava/lang/String;
5 11 3 types Ljava/util/Enumeration<*>;
7 9 4 type Ljava/lang/String;
8 9 5 attrs Ljava/lang/String;
MethodParameters:
Name Flags
entries
void parse(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: new sun.net.www.MimeEntry
dup
aload 1
invokespecial sun.net.www.MimeEntry.<init>:(Ljava/lang/String;)V
astore 3
start local 3 1: new java.util.StringTokenizer
dup
aload 2
ldc ";"
invokespecial java.util.StringTokenizer.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 4
start local 4 2: goto 5
3: StackMap locals: sun.net.www.MimeEntry java.util.StringTokenizer
StackMap stack:
aload 4
invokevirtual java.util.StringTokenizer.nextToken:()Ljava/lang/String;
astore 5
start local 5 4: aload 0
aload 5
aload 3
invokevirtual sun.net.www.MimeTable.parse:(Ljava/lang/String;Lsun/net/www/MimeEntry;)V
end local 5 5: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.util.StringTokenizer.hasMoreTokens:()Z
ifne 3
6: aload 0
aload 3
invokevirtual sun.net.www.MimeTable.add:(Lsun/net/www/MimeEntry;)V
7: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/net/www/MimeTable;
0 8 1 type Ljava/lang/String;
0 8 2 attrs Ljava/lang/String;
1 8 3 newEntry Lsun/net/www/MimeEntry;
2 8 4 tokenizer Ljava/util/StringTokenizer;
4 5 5 pair Ljava/lang/String;
MethodParameters:
Name Flags
type
attrs
void parse(java.lang.String, sun.net.www.MimeEntry);
descriptor: (Ljava/lang/String;Lsun/net/www/MimeEntry;)V
flags: (0x0000)
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aconst_null
astore 3
start local 3 1: aconst_null
astore 4
start local 4 2: iconst_0
istore 5
start local 5 3: new java.util.StringTokenizer
dup
aload 1
ldc "="
invokespecial java.util.StringTokenizer.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 6
start local 6 4: goto 10
5: StackMap locals: sun.net.www.MimeTable java.lang.String sun.net.www.MimeEntry java.lang.String java.lang.String int java.util.StringTokenizer
StackMap stack:
iload 5
ifeq 8
6: aload 6
invokevirtual java.util.StringTokenizer.nextToken:()Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
astore 4
7: goto 10
8: StackMap locals:
StackMap stack:
aload 6
invokevirtual java.util.StringTokenizer.nextToken:()Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
astore 3
9: iconst_1
istore 5
10: StackMap locals:
StackMap stack:
aload 6
invokevirtual java.util.StringTokenizer.hasMoreTokens:()Z
ifne 5
11: aload 0
aload 2
aload 3
aload 4
invokevirtual sun.net.www.MimeTable.fill:(Lsun/net/www/MimeEntry;Ljava/lang/String;Ljava/lang/String;)V
12: return
end local 6 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 13 0 this Lsun/net/www/MimeTable;
0 13 1 pair Ljava/lang/String;
0 13 2 entry Lsun/net/www/MimeEntry;
1 13 3 name Ljava/lang/String;
2 13 4 value Ljava/lang/String;
3 13 5 gotName Z
4 13 6 tokenizer Ljava/util/StringTokenizer;
MethodParameters:
Name Flags
pair
entry
void fill(sun.net.www.MimeEntry, java.lang.String, java.lang.String);
descriptor: (Lsun/net/www/MimeEntry;Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: ldc "description"
aload 2
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 3
1: aload 1
aload 3
invokevirtual sun.net.www.MimeEntry.setDescription:(Ljava/lang/String;)V
2: goto 14
3: StackMap locals:
StackMap stack:
ldc "action"
aload 2
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 6
4: aload 1
aload 0
aload 3
invokevirtual sun.net.www.MimeTable.getActionCode:(Ljava/lang/String;)I
invokevirtual sun.net.www.MimeEntry.setAction:(I)V
5: goto 14
6: StackMap locals:
StackMap stack:
ldc "application"
aload 2
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 9
7: aload 1
aload 3
invokevirtual sun.net.www.MimeEntry.setCommand:(Ljava/lang/String;)V
8: goto 14
9: StackMap locals:
StackMap stack:
ldc "icon"
aload 2
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 12
10: aload 1
aload 3
invokevirtual sun.net.www.MimeEntry.setImageFileName:(Ljava/lang/String;)V
11: goto 14
12: StackMap locals:
StackMap stack:
ldc "file_extensions"
aload 2
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 14
13: aload 1
aload 3
invokevirtual sun.net.www.MimeEntry.setExtensions:(Ljava/lang/String;)V
14: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lsun/net/www/MimeTable;
0 15 1 entry Lsun/net/www/MimeEntry;
0 15 2 name Ljava/lang/String;
0 15 3 value Ljava/lang/String;
MethodParameters:
Name Flags
entry
name
value
java.lang.String[] getExtensions(java.lang.String);
descriptor: (Ljava/lang/String;)[Ljava/lang/String;
flags: (0x0000)
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: new java.util.StringTokenizer
dup
aload 1
ldc ","
invokespecial java.util.StringTokenizer.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 2
start local 2 1: aload 2
invokevirtual java.util.StringTokenizer.countTokens:()I
istore 3
start local 3 2: iload 3
anewarray java.lang.String
astore 4
start local 4 3: iconst_0
istore 5
start local 5 4: goto 7
5: StackMap locals: sun.net.www.MimeTable java.lang.String java.util.StringTokenizer int java.lang.String[] int
StackMap stack:
aload 4
iload 5
aload 2
invokevirtual java.util.StringTokenizer.nextToken:()Ljava/lang/String;
aastore
6: iinc 5 1
StackMap locals:
StackMap stack:
7: iload 5
iload 3
if_icmplt 5
end local 5 8: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/net/www/MimeTable;
0 9 1 list Ljava/lang/String;
1 9 2 tokenizer Ljava/util/StringTokenizer;
2 9 3 n I
3 9 4 extensions [Ljava/lang/String;
4 8 5 i I
MethodParameters:
Name Flags
list
int getActionCode(java.lang.String);
descriptor: (Ljava/lang/String;)I
flags: (0x0000)
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: goto 5
2: StackMap locals: int
StackMap stack:
aload 1
getstatic sun.net.www.MimeEntry.actionKeywords:[Ljava/lang/String;
iload 2
aaload
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 4
3: iload 2
ireturn
4: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
5: iload 2
getstatic sun.net.www.MimeEntry.actionKeywords:[Ljava/lang/String;
arraylength
if_icmplt 2
end local 2 6: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/net/www/MimeTable;
0 7 1 action Ljava/lang/String;
1 6 2 i I
MethodParameters:
Name Flags
action
public java.util.Properties getAsProperties();
descriptor: ()Ljava/util/Properties;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: new java.util.Properties
dup
invokespecial java.util.Properties.<init>:()V
astore 1
start local 1 1: aload 0
invokevirtual sun.net.www.MimeTable.elements:()Ljava/util/Enumeration;
astore 2
start local 2 2: goto 5
3: StackMap locals: java.util.Properties java.util.Enumeration
StackMap stack:
aload 2
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
checkcast sun.net.www.MimeEntry
astore 3
start local 3 4: aload 1
aload 3
invokevirtual sun.net.www.MimeEntry.getType:()Ljava/lang/String;
aload 3
invokevirtual sun.net.www.MimeEntry.toProperty:()Ljava/lang/String;
invokevirtual java.util.Properties.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 3 5: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 3
6: aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/net/www/MimeTable;
1 7 1 properties Ljava/util/Properties;
2 7 2 e Ljava/util/Enumeration<Lsun/net/www/MimeEntry;>;
4 5 3 entry Lsun/net/www/MimeEntry;
protected boolean saveAsProperties(java.io.File);
descriptor: (Ljava/io/File;)Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=8, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: new java.io.FileOutputStream
dup
aload 1
invokespecial java.io.FileOutputStream.<init>:(Ljava/io/File;)V
astore 2
2: aload 0
invokevirtual sun.net.www.MimeTable.getAsProperties:()Ljava/util/Properties;
astore 3
start local 3 3: aload 3
ldc "temp.file.template"
getstatic sun.net.www.MimeTable.tempFileTemplate:Ljava/lang/String;
invokevirtual java.util.Properties.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
4: invokestatic java.lang.System.getSecurityManager:()Ljava/lang/SecurityManager;
astore 5
start local 5 5: aload 5
ifnull 7
6: aload 5
ldc "user.name"
invokevirtual java.lang.SecurityManager.checkPropertyAccess:(Ljava/lang/String;)V
7: StackMap locals: sun.net.www.MimeTable java.io.File java.io.FileOutputStream java.util.Properties top java.lang.SecurityManager
StackMap stack:
invokestatic jdk.internal.util.StaticProperty.userName:()Ljava/lang/String;
astore 6
start local 6 8: aload 6
ifnull 12
9: new java.lang.StringBuilder
dup
ldc "; customized for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 4
start local 4 10: aload 3
aload 2
new java.lang.StringBuilder
dup
ldc "sun.net.www MIME content-types table"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.util.Properties.store:(Ljava/io/OutputStream;Ljava/lang/String;)V
11: goto 27
end local 4 12: StackMap locals: java.lang.String
StackMap stack:
aload 3
aload 2
ldc "sun.net.www MIME content-types table"
invokevirtual java.util.Properties.store:(Ljava/io/OutputStream;Ljava/lang/String;)V
end local 6 end local 5 end local 3 13: goto 27
14: StackMap locals: sun.net.www.MimeTable java.io.File java.io.FileOutputStream
StackMap stack: java.io.IOException
astore 3
start local 3 15: aload 3
invokevirtual java.io.IOException.printStackTrace:()V
16: aload 2
ifnull 20
17: aload 2
invokevirtual java.io.FileOutputStream.close:()V
18: goto 20
StackMap locals: sun.net.www.MimeTable java.io.File java.io.FileOutputStream java.io.IOException
StackMap stack: java.io.IOException
19: pop
20: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 3 21: StackMap locals: sun.net.www.MimeTable java.io.File java.io.FileOutputStream
StackMap stack: java.lang.Throwable
astore 7
22: aload 2
ifnull 26
23: aload 2
invokevirtual java.io.FileOutputStream.close:()V
24: goto 26
StackMap locals: sun.net.www.MimeTable java.io.File java.io.FileOutputStream top top top top java.lang.Throwable
StackMap stack: java.io.IOException
25: pop
26: StackMap locals:
StackMap stack:
aload 7
athrow
27: StackMap locals: sun.net.www.MimeTable java.io.File java.io.FileOutputStream
StackMap stack:
aload 2
ifnull 31
28: aload 2
invokevirtual java.io.FileOutputStream.close:()V
29: goto 31
StackMap locals:
StackMap stack: java.io.IOException
30: pop
31: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 32 0 this Lsun/net/www/MimeTable;
0 32 1 file Ljava/io/File;
1 32 2 os Ljava/io/FileOutputStream;
3 13 3 properties Ljava/util/Properties;
10 12 4 tag Ljava/lang/String;
5 13 5 sm Ljava/lang/SecurityManager;
8 13 6 user Ljava/lang/String;
15 21 3 e Ljava/io/IOException;
Exception table:
from to target type
1 13 14 Class java.io.IOException
17 18 19 Class java.io.IOException
1 16 21 any
23 24 25 Class java.io.IOException
28 29 30 Class java.io.IOException
MethodParameters:
Name Flags
file
}
SourceFile: "MimeTable.java"
NestMembers:
sun.net.www.MimeTable$1 sun.net.www.MimeTable$DefaultInstanceHolder sun.net.www.MimeTable$DefaultInstanceHolder$1
InnerClasses:
sun.net.www.MimeTable$1
private DefaultInstanceHolder = sun.net.www.MimeTable$DefaultInstanceHolder of sun.net.www.MimeTable