public class org.apache.catalina.util.CharsetMapper
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.catalina.util.CharsetMapper
super_class: java.lang.Object
{
public static final java.lang.String DEFAULT_RESOURCE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "/org/apache/catalina/util/CharsetMapperDefault.properties"
private java.util.Properties map;
descriptor: Ljava/util/Properties;
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ldc "/org/apache/catalina/util/CharsetMapperDefault.properties"
invokespecial org.apache.catalina.util.CharsetMapper.<init>:(Ljava/lang/String;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/catalina/util/CharsetMapper;
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.Properties
dup
invokespecial java.util.Properties.<init>:()V
putfield org.apache.catalina.util.CharsetMapper.map:Ljava/util/Properties;
2: invokestatic org.apache.tomcat.util.compat.JreCompat.isGraalAvailable:()Z
ifeq 5
3: aload 0
getfield org.apache.catalina.util.CharsetMapper.map:Ljava/util/Properties;
ldc "en"
ldc "ISO-8859-1"
invokevirtual java.util.Properties.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
4: goto 17
5: StackMap locals: org.apache.catalina.util.CharsetMapper java.lang.String
StackMap stack:
aconst_null
astore 2
aconst_null
astore 3
6: aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aload 1
invokevirtual java.lang.Class.getResourceAsStream:(Ljava/lang/String;)Ljava/io/InputStream;
astore 4
start local 4 7: aload 0
getfield org.apache.catalina.util.CharsetMapper.map:Ljava/util/Properties;
aload 4
invokevirtual java.util.Properties.load:(Ljava/io/InputStream;)V
8: aload 4
ifnull 17
aload 4
invokevirtual java.io.InputStream.close:()V
goto 17
StackMap locals: org.apache.catalina.util.CharsetMapper java.lang.String java.lang.Throwable java.lang.Throwable java.io.InputStream
StackMap stack: java.lang.Throwable
9: astore 2
aload 4
ifnull 10
aload 4
invokevirtual java.io.InputStream.close:()V
end local 4 StackMap locals:
StackMap stack:
10: aload 2
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
11: astore 3
aload 2
ifnonnull 12
aload 3
astore 2
goto 13
StackMap locals:
StackMap stack:
12: aload 2
aload 3
if_acmpeq 13
aload 2
aload 3
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
13: aload 2
athrow
StackMap locals: org.apache.catalina.util.CharsetMapper java.lang.String
StackMap stack: java.lang.Throwable
14: astore 2
start local 2 15: aload 2
invokestatic org.apache.tomcat.util.ExceptionUtils.handleThrowable:(Ljava/lang/Throwable;)V
16: new java.lang.IllegalArgumentException
dup
aload 2
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 17: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/apache/catalina/util/CharsetMapper;
0 18 1 name Ljava/lang/String;
7 10 4 stream Ljava/io/InputStream;
15 17 2 t Ljava/lang/Throwable;
Exception table:
from to target type
7 8 9 any
6 11 11 any
5 14 14 Class java.lang.Throwable
MethodParameters:
Name Flags
name
public java.lang.String getCharset(java.util.Locale);
descriptor: (Ljava/util/Locale;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.catalina.util.CharsetMapper.map:Ljava/util/Properties;
aload 1
invokevirtual java.util.Locale.toString:()Ljava/lang/String;
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 1: aload 2
ifnonnull 7
2: aload 0
getfield org.apache.catalina.util.CharsetMapper.map:Ljava/util/Properties;
new java.lang.StringBuilder
dup
aload 1
invokevirtual java.util.Locale.getLanguage:()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;
3: aload 1
invokevirtual java.util.Locale.getCountry:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
4: invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 2
5: aload 2
ifnonnull 7
6: aload 0
getfield org.apache.catalina.util.CharsetMapper.map:Ljava/util/Properties;
aload 1
invokevirtual java.util.Locale.getLanguage:()Ljava/lang/String;
invokevirtual java.util.Properties.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 2
7: StackMap locals: java.lang.String
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/catalina/util/CharsetMapper;
0 8 1 locale Ljava/util/Locale;
1 8 2 charset Ljava/lang/String;
MethodParameters:
Name Flags
locale
public void addCharsetMappingFromDeploymentDescriptor(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 org.apache.catalina.util.CharsetMapper.map:Ljava/util/Properties;
aload 1
aload 2
invokevirtual java.util.Properties.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/catalina/util/CharsetMapper;
0 2 1 locale Ljava/lang/String;
0 2 2 charset Ljava/lang/String;
MethodParameters:
Name Flags
locale
charset
}
SourceFile: "CharsetMapper.java"