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=5, locals=5, 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;
3: astore 4
start local 4 4: aload 4
ifnull 14
5: new java.io.File
dup
aload 4
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 2
6: aload 2
invokevirtual java.io.File.exists:()Z
ifne 20
7: new java.io.File
dup
new java.lang.StringBuilder
dup
ldc "java.home"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
8: getstatic java.io.File.separator:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
9: ldc "lib"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
10: getstatic java.io.File.separator:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
11: ldc "content-types.properties"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
12: invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 2
13: goto 20
14: StackMap locals: sun.net.www.MimeTable java.util.Properties java.io.File top java.lang.String
StackMap stack:
new java.io.File
dup
new java.lang.StringBuilder
dup
ldc "java.home"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
15: getstatic java.io.File.separator:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
16: ldc "lib"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
17: getstatic java.io.File.separator:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
18: ldc "content-types.properties"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
19: invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 2
20: StackMap locals:
StackMap stack:
new java.io.BufferedInputStream
dup
new java.io.FileInputStream
dup
aload 2
invokespecial java.io.FileInputStream.<init>:(Ljava/io/File;)V
invokespecial java.io.BufferedInputStream.<init>:(Ljava/io/InputStream;)V
astore 3
start local 3 21: aload 1
aload 3
invokevirtual java.util.Properties.load:(Ljava/io/InputStream;)V
22: aload 3
invokevirtual java.io.InputStream.close:()V
end local 4 end local 3 23: goto 29
24: StackMap locals: sun.net.www.MimeTable java.util.Properties java.io.File
StackMap stack: java.io.IOException
pop
25: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Warning: default mime table not found: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
26: aload 2
invokevirtual java.io.File.getPath:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
27: invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
28: return
29: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual sun.net.www.MimeTable.parse:(Ljava/util/Properties;)V
30: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 this Lsun/net/www/MimeTable;
1 31 1 entries Ljava/util/Properties;
2 31 2 file Ljava/io/File;
21 23 3 is Ljava/io/InputStream;
4 23 4 userTablePath Ljava/lang/String;
Exception table:
from to target type
2 23 24 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 synchronized boolean save(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 7
1: new java.lang.StringBuilder
dup
ldc "user.home"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
2: getstatic java.io.File.separator:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
3: ldc "lib"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: getstatic java.io.File.separator:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
5: ldc "content-types.properties"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
6: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 1
7: StackMap locals:
StackMap stack:
aload 0
new java.io.File
dup
aload 1
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
invokevirtual sun.net.www.MimeTable.saveAsProperties:(Ljava/io/File;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/net/www/MimeTable;
0 8 1 filename Ljava/lang/String;
MethodParameters:
Name Flags
filename
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=7, 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: ldc "user.name"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 5
start local 5 5: aload 5
ifnull 9
6: new java.lang.StringBuilder
dup
ldc "; customized for "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 4
start local 4 7: 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
8: goto 24
end local 4 9: StackMap locals: sun.net.www.MimeTable java.io.File java.io.FileOutputStream java.util.Properties top 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 5 end local 3 10: goto 24
11: StackMap locals: sun.net.www.MimeTable java.io.File java.io.FileOutputStream
StackMap stack: java.io.IOException
astore 3
start local 3 12: aload 3
invokevirtual java.io.IOException.printStackTrace:()V
13: aload 2
ifnull 17
14: aload 2
invokevirtual java.io.FileOutputStream.close:()V
15: goto 17
StackMap locals: sun.net.www.MimeTable java.io.File java.io.FileOutputStream java.io.IOException
StackMap stack: java.io.IOException
16: pop
17: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 3 18: StackMap locals: sun.net.www.MimeTable java.io.File java.io.FileOutputStream
StackMap stack: java.lang.Throwable
astore 6
19: aload 2
ifnull 23
20: aload 2
invokevirtual java.io.FileOutputStream.close:()V
21: goto 23
StackMap locals: sun.net.www.MimeTable java.io.File java.io.FileOutputStream top top top java.lang.Throwable
StackMap stack: java.io.IOException
22: pop
23: StackMap locals:
StackMap stack:
aload 6
athrow
24: StackMap locals: sun.net.www.MimeTable java.io.File java.io.FileOutputStream
StackMap stack:
aload 2
ifnull 28
25: aload 2
invokevirtual java.io.FileOutputStream.close:()V
26: goto 28
StackMap locals:
StackMap stack: java.io.IOException
27: pop
28: StackMap locals:
StackMap stack:
iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 29 0 this Lsun/net/www/MimeTable;
0 29 1 file Ljava/io/File;
1 29 2 os Ljava/io/FileOutputStream;
3 10 3 properties Ljava/util/Properties;
7 9 4 tag Ljava/lang/String;
5 10 5 user Ljava/lang/String;
12 18 3 e Ljava/io/IOException;
Exception table:
from to target type
1 10 11 Class java.io.IOException
14 15 16 Class java.io.IOException
1 13 18 any
20 21 22 Class java.io.IOException
25 26 27 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