public class com.sun.activation.registries.MimeTypeFile
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.activation.registries.MimeTypeFile
super_class: java.lang.Object
{
private java.lang.String fname;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.util.Hashtable type_hash;
descriptor: Ljava/util/Hashtable;
flags: (0x0002) ACC_PRIVATE
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield com.sun.activation.registries.MimeTypeFile.fname:Ljava/lang/String;
2: aload 0
new java.util.Hashtable
dup
invokespecial java.util.Hashtable.<init>:()V
putfield com.sun.activation.registries.MimeTypeFile.type_hash:Ljava/util/Hashtable;
3: aconst_null
astore 2
start local 2 4: aconst_null
astore 3
start local 3 5: aload 0
aload 1
putfield com.sun.activation.registries.MimeTypeFile.fname:Ljava/lang/String;
6: new java.io.File
dup
aload 0
getfield com.sun.activation.registries.MimeTypeFile.fname:Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 2
7: new java.io.FileReader
dup
aload 2
invokespecial java.io.FileReader.<init>:(Ljava/io/File;)V
astore 3
8: aload 0
new java.io.BufferedReader
dup
aload 3
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
invokevirtual com.sun.activation.registries.MimeTypeFile.parse:(Ljava/io/BufferedReader;)V
9: goto 15
StackMap locals: com.sun.activation.registries.MimeTypeFile java.lang.String java.io.File java.io.FileReader
StackMap stack: java.lang.Throwable
10: astore 4
11: aload 3
invokevirtual java.io.FileReader.close:()V
12: goto 14
StackMap locals: com.sun.activation.registries.MimeTypeFile java.lang.String java.io.File java.io.FileReader java.lang.Throwable
StackMap stack: java.io.IOException
13: pop
14: StackMap locals:
StackMap stack:
aload 4
athrow
15: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.io.FileReader.close:()V
16: goto 18
StackMap locals:
StackMap stack: java.io.IOException
17: pop
18: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lcom/sun/activation/registries/MimeTypeFile;
0 19 1 new_fname Ljava/lang/String;
4 19 2 mime_file Ljava/io/File;
5 19 3 fr Ljava/io/FileReader;
Exception table:
from to target type
8 10 10 any
11 12 13 Class java.io.IOException
15 16 17 Class java.io.IOException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
new_fname
public void <init>(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield com.sun.activation.registries.MimeTypeFile.fname:Ljava/lang/String;
2: aload 0
new java.util.Hashtable
dup
invokespecial java.util.Hashtable.<init>:()V
putfield com.sun.activation.registries.MimeTypeFile.type_hash:Ljava/util/Hashtable;
3: aload 0
new java.io.BufferedReader
dup
new java.io.InputStreamReader
dup
aload 1
ldc "iso-8859-1"
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;Ljava/lang/String;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
invokevirtual com.sun.activation.registries.MimeTypeFile.parse:(Ljava/io/BufferedReader;)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/sun/activation/registries/MimeTypeFile;
0 5 1 is Ljava/io/InputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
is
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield com.sun.activation.registries.MimeTypeFile.fname:Ljava/lang/String;
2: aload 0
new java.util.Hashtable
dup
invokespecial java.util.Hashtable.<init>:()V
putfield com.sun.activation.registries.MimeTypeFile.type_hash:Ljava/util/Hashtable;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/activation/registries/MimeTypeFile;
public com.sun.activation.registries.MimeTypeEntry getMimeTypeEntry(java.lang.String);
descriptor: (Ljava/lang/String;)Lcom/sun/activation/registries/MimeTypeEntry;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.activation.registries.MimeTypeFile.type_hash:Ljava/util/Hashtable;
aload 1
invokevirtual java.util.Hashtable.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.sun.activation.registries.MimeTypeEntry
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/activation/registries/MimeTypeFile;
0 1 1 file_ext Ljava/lang/String;
MethodParameters:
Name Flags
file_ext
public java.lang.String getMIMETypeString(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual com.sun.activation.registries.MimeTypeFile.getMimeTypeEntry:(Ljava/lang/String;)Lcom/sun/activation/registries/MimeTypeEntry;
astore 2
start local 2 1: aload 2
ifnull 3
2: aload 2
invokevirtual com.sun.activation.registries.MimeTypeEntry.getMIMEType:()Ljava/lang/String;
areturn
3: StackMap locals: com.sun.activation.registries.MimeTypeEntry
StackMap stack:
aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/activation/registries/MimeTypeFile;
0 4 1 file_ext Ljava/lang/String;
1 4 2 entry Lcom/sun/activation/registries/MimeTypeEntry;
MethodParameters:
Name Flags
file_ext
public void appendToRegistry(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new java.io.BufferedReader
dup
new java.io.StringReader
dup
aload 1
invokespecial java.io.StringReader.<init>:(Ljava/lang/String;)V
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
invokevirtual com.sun.activation.registries.MimeTypeFile.parse:(Ljava/io/BufferedReader;)V
1: goto 3
StackMap locals:
StackMap stack: java.io.IOException
2: pop
3: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/activation/registries/MimeTypeFile;
0 4 1 mime_types Ljava/lang/String;
Exception table:
from to target type
0 1 2 Class java.io.IOException
MethodParameters:
Name Flags
mime_types
private void parse(java.io.BufferedReader);
descriptor: (Ljava/io/BufferedReader;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: aconst_null
astore 3
start local 3 2: goto 12
3: StackMap locals: java.lang.String java.lang.String
StackMap stack:
aload 3
ifnonnull 5
4: aload 2
astore 3
goto 6
5: StackMap locals:
StackMap stack:
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
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 3
6: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.lang.String.length:()I
istore 4
start local 4 7: aload 3
invokevirtual java.lang.String.length:()I
ifle 10
aload 3
iload 4
iconst_1
isub
invokevirtual java.lang.String.charAt:(I)C
bipush 92
if_icmpne 10
8: aload 3
iconst_0
iload 4
iconst_1
isub
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 3
9: goto 12
10: StackMap locals: int
StackMap stack:
aload 0
aload 3
invokevirtual com.sun.activation.registries.MimeTypeFile.parseEntry:(Ljava/lang/String;)V
11: aconst_null
astore 3
end local 4 12: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
dup
astore 2
ifnonnull 3
13: aload 3
ifnull 15
14: aload 0
aload 3
invokevirtual com.sun.activation.registries.MimeTypeFile.parseEntry:(Ljava/lang/String;)V
15: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lcom/sun/activation/registries/MimeTypeFile;
0 16 1 buf_reader Ljava/io/BufferedReader;
1 16 2 line Ljava/lang/String;
2 16 3 prev Ljava/lang/String;
7 12 4 end I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
buf_reader
private void parseEntry(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=9, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: aconst_null
astore 3
start local 3 2: aload 1
invokevirtual java.lang.String.trim:()Ljava/lang/String;
astore 1
3: aload 1
invokevirtual java.lang.String.length:()I
ifne 5
4: return
5: StackMap locals: java.lang.String java.lang.String
StackMap stack:
aload 1
iconst_0
invokevirtual java.lang.String.charAt:(I)C
bipush 35
if_icmpne 7
6: return
7: StackMap locals:
StackMap stack:
aload 1
bipush 61
invokevirtual java.lang.String.indexOf:(I)I
ifle 33
8: new com.sun.activation.registries.LineTokenizer
dup
aload 1
invokespecial com.sun.activation.registries.LineTokenizer.<init>:(Ljava/lang/String;)V
astore 4
start local 4 9: goto 31
10: StackMap locals: com.sun.activation.registries.LineTokenizer
StackMap stack:
aload 4
invokevirtual com.sun.activation.registries.LineTokenizer.nextToken:()Ljava/lang/String;
astore 5
start local 5 11: aconst_null
astore 6
start local 6 12: aload 4
invokevirtual com.sun.activation.registries.LineTokenizer.hasMoreTokens:()Z
ifeq 15
aload 4
invokevirtual com.sun.activation.registries.LineTokenizer.nextToken:()Ljava/lang/String;
ldc "="
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 15
13: aload 4
invokevirtual com.sun.activation.registries.LineTokenizer.hasMoreTokens:()Z
ifeq 15
14: aload 4
invokevirtual com.sun.activation.registries.LineTokenizer.nextToken:()Ljava/lang/String;
astore 6
15: StackMap locals: java.lang.String java.lang.String
StackMap stack:
aload 6
ifnonnull 19
16: invokestatic com.sun.activation.registries.LogSupport.isLoggable:()Z
ifeq 18
17: new java.lang.StringBuilder
dup
ldc "Bad .mime.types entry: "
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;
invokestatic com.sun.activation.registries.LogSupport.log:(Ljava/lang/String;)V
18: StackMap locals:
StackMap stack:
return
19: StackMap locals:
StackMap stack:
aload 5
ldc "type"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 21
20: aload 6
astore 2
goto 31
21: StackMap locals:
StackMap stack:
aload 5
ldc "exts"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 31
22: new java.util.StringTokenizer
dup
aload 6
ldc ","
invokespecial java.util.StringTokenizer.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 7
start local 7 23: goto 30
24: StackMap locals: java.util.StringTokenizer
StackMap stack:
aload 7
invokevirtual java.util.StringTokenizer.nextToken:()Ljava/lang/String;
astore 3
25: new com.sun.activation.registries.MimeTypeEntry
dup
aload 2
aload 3
invokespecial com.sun.activation.registries.MimeTypeEntry.<init>:(Ljava/lang/String;Ljava/lang/String;)V
26: astore 8
start local 8 27: aload 0
getfield com.sun.activation.registries.MimeTypeFile.type_hash:Ljava/util/Hashtable;
aload 3
aload 8
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
28: invokestatic com.sun.activation.registries.LogSupport.isLoggable:()Z
ifeq 30
29: new java.lang.StringBuilder
dup
ldc "Added: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 8
invokevirtual com.sun.activation.registries.MimeTypeEntry.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic com.sun.activation.registries.LogSupport.log:(Ljava/lang/String;)V
end local 8 30: StackMap locals:
StackMap stack:
aload 7
invokevirtual java.util.StringTokenizer.hasMoreTokens:()Z
ifne 24
end local 7 end local 6 end local 5 31: StackMap locals:
StackMap stack:
aload 4
invokevirtual com.sun.activation.registries.LineTokenizer.hasMoreTokens:()Z
ifne 10
end local 4 32: goto 46
33: StackMap locals:
StackMap stack:
new java.util.StringTokenizer
dup
aload 1
invokespecial java.util.StringTokenizer.<init>:(Ljava/lang/String;)V
astore 4
start local 4 34: aload 4
invokevirtual java.util.StringTokenizer.countTokens:()I
istore 5
start local 5 35: iload 5
ifne 37
36: return
37: StackMap locals: java.util.StringTokenizer int
StackMap stack:
aload 4
invokevirtual java.util.StringTokenizer.nextToken:()Ljava/lang/String;
astore 2
38: goto 45
39: StackMap locals:
StackMap stack:
aconst_null
astore 6
start local 6 40: aload 4
invokevirtual java.util.StringTokenizer.nextToken:()Ljava/lang/String;
astore 3
41: new com.sun.activation.registries.MimeTypeEntry
dup
aload 2
aload 3
invokespecial com.sun.activation.registries.MimeTypeEntry.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 6
42: aload 0
getfield com.sun.activation.registries.MimeTypeFile.type_hash:Ljava/util/Hashtable;
aload 3
aload 6
invokevirtual java.util.Hashtable.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
43: invokestatic com.sun.activation.registries.LogSupport.isLoggable:()Z
ifeq 45
44: new java.lang.StringBuilder
dup
ldc "Added: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 6
invokevirtual com.sun.activation.registries.MimeTypeEntry.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic com.sun.activation.registries.LogSupport.log:(Ljava/lang/String;)V
end local 6 45: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.util.StringTokenizer.hasMoreTokens:()Z
ifne 39
end local 5 end local 4 46: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 47 0 this Lcom/sun/activation/registries/MimeTypeFile;
0 47 1 line Ljava/lang/String;
1 47 2 mime_type Ljava/lang/String;
2 47 3 file_ext Ljava/lang/String;
9 32 4 lt Lcom/sun/activation/registries/LineTokenizer;
11 31 5 name Ljava/lang/String;
12 31 6 value Ljava/lang/String;
23 31 7 st Ljava/util/StringTokenizer;
27 30 8 entry Lcom/sun/activation/registries/MimeTypeEntry;
34 46 4 strtok Ljava/util/StringTokenizer;
35 46 5 num_tok I
40 45 6 entry Lcom/sun/activation/registries/MimeTypeEntry;
MethodParameters:
Name Flags
line
}
SourceFile: "MimeTypeFile.java"