public class javax.activation.MimeType implements java.io.Externalizable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: javax.activation.MimeType
super_class: java.lang.Object
{
private java.lang.String primaryType;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private java.lang.String subType;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private javax.activation.MimeTypeParameterList parameters;
descriptor: Ljavax/activation/MimeTypeParameterList;
flags: (0x0002) ACC_PRIVATE
private static final java.lang.String TSPECIALS;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "()<>@,;:/[]?=\\\""
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
ldc "application"
putfield javax.activation.MimeType.primaryType:Ljava/lang/String;
2: aload 0
ldc "*"
putfield javax.activation.MimeType.subType:Ljava/lang/String;
3: aload 0
new javax.activation.MimeTypeParameterList
dup
invokespecial javax.activation.MimeTypeParameterList.<init>:()V
putfield javax.activation.MimeType.parameters:Ljavax/activation/MimeTypeParameterList;
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/activation/MimeType;
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
invokevirtual javax.activation.MimeType.parse:(Ljava/lang/String;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/activation/MimeType;
0 3 1 rawdata Ljava/lang/String;
Exceptions:
throws javax.activation.MimeTypeParseException
MethodParameters:
Name Flags
rawdata
public void <init>(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
invokevirtual javax.activation.MimeType.isValidToken:(Ljava/lang/String;)Z
ifeq 4
2: aload 0
aload 1
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
putfield javax.activation.MimeType.primaryType:Ljava/lang/String;
3: goto 5
4: StackMap locals: javax.activation.MimeType java.lang.String java.lang.String
StackMap stack:
new javax.activation.MimeTypeParseException
dup
ldc "Primary type is invalid."
invokespecial javax.activation.MimeTypeParseException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual javax.activation.MimeType.isValidToken:(Ljava/lang/String;)Z
ifeq 8
6: aload 0
aload 2
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
putfield javax.activation.MimeType.subType:Ljava/lang/String;
7: goto 9
8: StackMap locals:
StackMap stack:
new javax.activation.MimeTypeParseException
dup
ldc "Sub type is invalid."
invokespecial javax.activation.MimeTypeParseException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack:
aload 0
new javax.activation.MimeTypeParameterList
dup
invokespecial javax.activation.MimeTypeParameterList.<init>:()V
putfield javax.activation.MimeType.parameters:Ljavax/activation/MimeTypeParameterList;
10: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljavax/activation/MimeType;
0 11 1 primary Ljava/lang/String;
0 11 2 sub Ljava/lang/String;
Exceptions:
throws javax.activation.MimeTypeParseException
MethodParameters:
Name Flags
primary
sub
private void parse(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 1
bipush 47
invokevirtual java.lang.String.indexOf:(I)I
istore 2
start local 2 1: aload 1
bipush 59
invokevirtual java.lang.String.indexOf:(I)I
istore 3
start local 3 2: iload 2
ifge 4
iload 3
ifge 4
3: new javax.activation.MimeTypeParseException
dup
ldc "Unable to find a sub type."
invokespecial javax.activation.MimeTypeParseException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals: int int
StackMap stack:
iload 2
ifge 6
iload 3
iflt 6
5: new javax.activation.MimeTypeParseException
dup
ldc "Unable to find a sub type."
invokespecial javax.activation.MimeTypeParseException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
iload 2
iflt 15
iload 3
ifge 15
7: aload 0
aload 1
iconst_0
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
8: getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
9: putfield javax.activation.MimeType.primaryType:Ljava/lang/String;
10: aload 0
aload 1
iload 2
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
11: getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
12: putfield javax.activation.MimeType.subType:Ljava/lang/String;
13: aload 0
new javax.activation.MimeTypeParameterList
dup
invokespecial javax.activation.MimeTypeParameterList.<init>:()V
putfield javax.activation.MimeType.parameters:Ljavax/activation/MimeTypeParameterList;
14: goto 25
StackMap locals:
StackMap stack:
15: iload 2
iload 3
if_icmpge 24
16: aload 0
aload 1
iconst_0
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
17: getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
18: putfield javax.activation.MimeType.primaryType:Ljava/lang/String;
19: aload 0
aload 1
iload 2
iconst_1
iadd
iload 3
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
invokevirtual java.lang.String.trim:()Ljava/lang/String;
20: getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
21: putfield javax.activation.MimeType.subType:Ljava/lang/String;
22: aload 0
new javax.activation.MimeTypeParameterList
dup
aload 1
iload 3
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokespecial javax.activation.MimeTypeParameterList.<init>:(Ljava/lang/String;)V
putfield javax.activation.MimeType.parameters:Ljavax/activation/MimeTypeParameterList;
23: goto 25
24: StackMap locals:
StackMap stack:
new javax.activation.MimeTypeParseException
dup
ldc "Unable to find a sub type."
invokespecial javax.activation.MimeTypeParseException.<init>:(Ljava/lang/String;)V
athrow
25: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield javax.activation.MimeType.primaryType:Ljava/lang/String;
invokevirtual javax.activation.MimeType.isValidToken:(Ljava/lang/String;)Z
ifne 27
26: new javax.activation.MimeTypeParseException
dup
ldc "Primary type is invalid."
invokespecial javax.activation.MimeTypeParseException.<init>:(Ljava/lang/String;)V
athrow
27: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield javax.activation.MimeType.subType:Ljava/lang/String;
invokevirtual javax.activation.MimeType.isValidToken:(Ljava/lang/String;)Z
ifne 29
28: new javax.activation.MimeTypeParseException
dup
ldc "Sub type is invalid."
invokespecial javax.activation.MimeTypeParseException.<init>:(Ljava/lang/String;)V
athrow
29: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 this Ljavax/activation/MimeType;
0 30 1 rawdata Ljava/lang/String;
1 30 2 slashIndex I
2 30 3 semIndex I
Exceptions:
throws javax.activation.MimeTypeParseException
MethodParameters:
Name Flags
rawdata
public java.lang.String getPrimaryType();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.activation.MimeType.primaryType:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/activation/MimeType;
public void setPrimaryType(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 0
getfield javax.activation.MimeType.primaryType:Ljava/lang/String;
invokevirtual javax.activation.MimeType.isValidToken:(Ljava/lang/String;)Z
ifne 2
1: new javax.activation.MimeTypeParseException
dup
ldc "Primary type is invalid."
invokespecial javax.activation.MimeTypeParseException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
putfield javax.activation.MimeType.primaryType:Ljava/lang/String;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/activation/MimeType;
0 4 1 primary Ljava/lang/String;
Exceptions:
throws javax.activation.MimeTypeParseException
MethodParameters:
Name Flags
primary
public java.lang.String getSubType();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.activation.MimeType.subType:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/activation/MimeType;
public void setSubType(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 0
getfield javax.activation.MimeType.subType:Ljava/lang/String;
invokevirtual javax.activation.MimeType.isValidToken:(Ljava/lang/String;)Z
ifne 2
1: new javax.activation.MimeTypeParseException
dup
ldc "Sub type is invalid."
invokespecial javax.activation.MimeTypeParseException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
putfield javax.activation.MimeType.subType:Ljava/lang/String;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljavax/activation/MimeType;
0 4 1 sub Ljava/lang/String;
Exceptions:
throws javax.activation.MimeTypeParseException
MethodParameters:
Name Flags
sub
public javax.activation.MimeTypeParameterList getParameters();
descriptor: ()Ljavax/activation/MimeTypeParameterList;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield javax.activation.MimeType.parameters:Ljavax/activation/MimeTypeParameterList;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/activation/MimeType;
public java.lang.String getParameter(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield javax.activation.MimeType.parameters:Ljavax/activation/MimeTypeParameterList;
aload 1
invokevirtual javax.activation.MimeTypeParameterList.get:(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/MimeType;
0 1 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public void setParameter(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield javax.activation.MimeType.parameters:Ljavax/activation/MimeTypeParameterList;
aload 1
aload 2
invokevirtual javax.activation.MimeTypeParameterList.set:(Ljava/lang/String;Ljava/lang/String;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/activation/MimeType;
0 2 1 name Ljava/lang/String;
0 2 2 value Ljava/lang/String;
MethodParameters:
Name Flags
name
value
public void removeParameter(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield javax.activation.MimeType.parameters:Ljavax/activation/MimeTypeParameterList;
aload 1
invokevirtual javax.activation.MimeTypeParameterList.remove:(Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljavax/activation/MimeType;
0 2 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
aload 0
invokevirtual javax.activation.MimeType.getBaseType:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield javax.activation.MimeType.parameters:Ljavax/activation/MimeTypeParameterList;
invokevirtual javax.activation.MimeTypeParameterList.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/activation/MimeType;
public java.lang.String getBaseType();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
aload 0
getfield javax.activation.MimeType.primaryType:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc "/"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield javax.activation.MimeType.subType:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/activation/MimeType;
public boolean match(javax.activation.MimeType);
descriptor: (Ljavax/activation/MimeType;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield javax.activation.MimeType.primaryType:Ljava/lang/String;
aload 1
invokevirtual javax.activation.MimeType.getPrimaryType:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 5
1: aload 0
getfield javax.activation.MimeType.subType:Ljava/lang/String;
ldc "*"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 4
2: aload 1
invokevirtual javax.activation.MimeType.getSubType:()Ljava/lang/String;
ldc "*"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 4
3: aload 0
getfield javax.activation.MimeType.subType:Ljava/lang/String;
aload 1
invokevirtual javax.activation.MimeType.getSubType:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 5
4: StackMap locals:
StackMap stack:
iconst_1
ireturn
StackMap locals:
StackMap stack:
5: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljavax/activation/MimeType;
0 6 1 type Ljavax/activation/MimeType;
MethodParameters:
Name Flags
type
public boolean match(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new javax.activation.MimeType
dup
aload 1
invokespecial javax.activation.MimeType.<init>:(Ljava/lang/String;)V
invokevirtual javax.activation.MimeType.match:(Ljavax/activation/MimeType;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljavax/activation/MimeType;
0 1 1 rawdata Ljava/lang/String;
Exceptions:
throws javax.activation.MimeTypeParseException
MethodParameters:
Name Flags
rawdata
public void writeExternal(java.io.ObjectOutput);
descriptor: (Ljava/io/ObjectOutput;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokevirtual javax.activation.MimeType.toString:()Ljava/lang/String;
invokeinterface java.io.ObjectOutput.writeUTF:(Ljava/lang/String;)V
1: aload 1
invokeinterface java.io.ObjectOutput.flush:()V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljavax/activation/MimeType;
0 3 1 out Ljava/io/ObjectOutput;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
out
public void readExternal(java.io.ObjectInput);
descriptor: (Ljava/io/ObjectInput;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokeinterface java.io.ObjectInput.readUTF:()Ljava/lang/String;
invokevirtual javax.activation.MimeType.parse:(Ljava/lang/String;)V
1: goto 4
StackMap locals:
StackMap stack: javax.activation.MimeTypeParseException
2: astore 2
start local 2 3: new java.io.IOException
dup
aload 2
invokevirtual javax.activation.MimeTypeParseException.toString:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
end local 2 4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljavax/activation/MimeType;
0 5 1 in Ljava/io/ObjectInput;
3 4 2 e Ljavax/activation/MimeTypeParseException;
Exception table:
from to target type
0 1 2 Class javax.activation.MimeTypeParseException
Exceptions:
throws java.io.IOException, java.lang.ClassNotFoundException
MethodParameters:
Name Flags
in
private static boolean isTokenChar(char);
descriptor: (C)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iload 0
bipush 32
if_icmple 1
iload 0
bipush 127
if_icmpge 1
ldc "()<>@,;:/[]?=\\\""
iload 0
invokevirtual java.lang.String.indexOf:(I)I
ifge 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 c C
MethodParameters:
Name Flags
c
private boolean isValidToken(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.lang.String.length:()I
istore 2
start local 2 1: iload 2
ifle 10
2: iconst_0
istore 3
start local 3 3: goto 8
4: StackMap locals: int int
StackMap stack:
aload 1
iload 3
invokevirtual java.lang.String.charAt:(I)C
istore 4
start local 4 5: iload 4
invokestatic javax.activation.MimeType.isTokenChar:(C)Z
ifne 7
6: iconst_0
ireturn
end local 4 7: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
8: iload 3
iload 2
if_icmplt 4
end local 3 9: iconst_1
ireturn
10: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljavax/activation/MimeType;
0 11 1 s Ljava/lang/String;
1 11 2 len I
3 9 3 i I
5 7 4 c C
MethodParameters:
Name Flags
s
}
SourceFile: "MimeType.java"