public final class com.ctc.wstx.io.CharsetNames
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.ctc.wstx.io.CharsetNames
super_class: java.lang.Object
{
public static final java.lang.String CS_US_ASCII;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "US-ASCII"
public static final java.lang.String CS_UTF8;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "UTF-8"
public static final java.lang.String CS_UTF16;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "UTF-16"
public static final java.lang.String CS_UTF16BE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "UTF-16BE"
public static final java.lang.String CS_UTF16LE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "UTF-16LE"
public static final java.lang.String CS_UTF32;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "UTF-32"
public static final java.lang.String CS_UTF32BE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "UTF-32BE"
public static final java.lang.String CS_UTF32LE;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "UTF-32LE"
public static final java.lang.String CS_ISO_LATIN1;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "ISO-8859-1"
public static final java.lang.String CS_SHIFT_JIS;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "Shift_JIS"
public static final java.lang.String CS_EBCDIC_SUBSET;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "IBM037"
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/ctc/wstx/io/CharsetNames;
public static java.lang.String normalize(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
ifnull 1
aload 0
invokevirtual java.lang.String.length:()I
iconst_3
if_icmpge 2
1: StackMap locals:
StackMap stack:
aload 0
areturn
2: StackMap locals:
StackMap stack:
iconst_0
istore 1
start local 1 3: aload 0
iconst_0
invokevirtual java.lang.String.charAt:(I)C
istore 2
start local 2 4: iload 2
bipush 99
if_icmpeq 5
iload 2
bipush 67
if_icmpne 10
5: StackMap locals: int int
StackMap stack:
aload 0
iconst_1
invokevirtual java.lang.String.charAt:(I)C
istore 3
start local 3 6: iload 3
bipush 115
if_icmpeq 7
iload 3
bipush 83
if_icmpne 10
7: StackMap locals: int
StackMap stack:
aload 0
iconst_2
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 0
8: aload 0
iconst_0
invokevirtual java.lang.String.charAt:(I)C
istore 2
9: iconst_1
istore 1
end local 3 10: StackMap locals:
StackMap stack:
iload 2
lookupswitch { // 14
65: 11
67: 13
69: 18
73: 40
74: 62
83: 64
85: 66
97: 11
99: 13
101: 18
105: 40
106: 62
115: 64
117: 66
default: 98
}
11: StackMap locals:
StackMap stack:
aload 0
ldc "ASCII"
invokestatic com.ctc.wstx.util.StringUtil.equalEncodings:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 98
12: ldc "US-ASCII"
areturn
13: StackMap locals:
StackMap stack:
aload 0
ldc "cp"
invokestatic com.ctc.wstx.util.StringUtil.encodingStartsWith:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 15
14: new java.lang.StringBuilder
dup
ldc "IBM"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
iconst_1
invokestatic com.ctc.wstx.util.StringUtil.trimEncoding:(Ljava/lang/String;Z)Ljava/lang/String;
iconst_2
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
15: StackMap locals:
StackMap stack:
aload 0
ldc "cs"
invokestatic com.ctc.wstx.util.StringUtil.encodingStartsWith:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 98
16: aload 0
ldc "csIBM"
invokestatic com.ctc.wstx.util.StringUtil.encodingStartsWith:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 98
17: aload 0
iconst_1
invokestatic com.ctc.wstx.util.StringUtil.trimEncoding:(Ljava/lang/String;Z)Ljava/lang/String;
iconst_2
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
areturn
18: StackMap locals:
StackMap stack:
aload 0
ldc "EBCDIC-CP-"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 20
19: aload 0
ldc "ebcdic-cp-"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifeq 98
20: StackMap locals:
StackMap stack:
aload 0
iconst_1
invokestatic com.ctc.wstx.util.StringUtil.trimEncoding:(Ljava/lang/String;Z)Ljava/lang/String;
bipush 8
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 3
start local 3 21: aload 3
ldc "US"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 23
aload 3
ldc "CA"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 23
22: aload 3
ldc "WT"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 23
aload 3
ldc "NL"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 24
23: StackMap locals: java.lang.String
StackMap stack:
ldc "IBM037"
areturn
24: StackMap locals:
StackMap stack:
aload 3
ldc "DK"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 25
aload 3
ldc "NO"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 26
25: StackMap locals:
StackMap stack:
ldc "IBM277"
areturn
26: StackMap locals:
StackMap stack:
aload 3
ldc "FI"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 27
aload 3
ldc "SE"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 28
27: StackMap locals:
StackMap stack:
ldc "IBM278"
areturn
28: StackMap locals:
StackMap stack:
aload 3
ldc "ROECE"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 29
aload 3
ldc "YU"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 30
29: StackMap locals:
StackMap stack:
ldc "IBM870"
areturn
30: StackMap locals:
StackMap stack:
aload 3
ldc "IT"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 31
ldc "IBM280"
areturn
31: StackMap locals:
StackMap stack:
aload 3
ldc "ES"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 32
ldc "IBM284"
areturn
32: StackMap locals:
StackMap stack:
aload 3
ldc "GB"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 33
ldc "IBM285"
areturn
33: StackMap locals:
StackMap stack:
aload 3
ldc "FR"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 34
ldc "IBM297"
areturn
34: StackMap locals:
StackMap stack:
aload 3
ldc "AR1"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 35
ldc "IBM420"
areturn
35: StackMap locals:
StackMap stack:
aload 3
ldc "AR2"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 36
ldc "IBM918"
areturn
36: StackMap locals:
StackMap stack:
aload 3
ldc "HE"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 37
ldc "IBM424"
areturn
37: StackMap locals:
StackMap stack:
aload 3
ldc "CH"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 38
ldc "IBM500"
areturn
38: StackMap locals:
StackMap stack:
aload 3
ldc "IS"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 39
ldc "IBM871"
areturn
39: StackMap locals:
StackMap stack:
ldc "IBM037"
areturn
end local 3 40: StackMap locals:
StackMap stack:
aload 0
ldc "ISO-8859-1"
invokestatic com.ctc.wstx.util.StringUtil.equalEncodings:(Ljava/lang/String;Ljava/lang/String;)Z
ifne 42
41: aload 0
ldc "ISO-Latin1"
invokestatic com.ctc.wstx.util.StringUtil.equalEncodings:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 43
42: StackMap locals:
StackMap stack:
ldc "ISO-8859-1"
areturn
43: StackMap locals:
StackMap stack:
aload 0
ldc "ISO-10646"
invokestatic com.ctc.wstx.util.StringUtil.encodingStartsWith:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 60
44: aload 0
ldc "10646"
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 3
start local 3 45: aload 0
iload 3
iconst_5
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 4
start local 4 46: aload 4
ldc "UCS-Basic"
invokestatic com.ctc.wstx.util.StringUtil.equalEncodings:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 48
47: ldc "US-ASCII"
areturn
48: StackMap locals: int java.lang.String
StackMap stack:
aload 4
ldc "Unicode-Latin1"
invokestatic com.ctc.wstx.util.StringUtil.equalEncodings:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 50
49: ldc "ISO-8859-1"
areturn
50: StackMap locals:
StackMap stack:
aload 4
ldc "UCS-2"
invokestatic com.ctc.wstx.util.StringUtil.equalEncodings:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 52
51: ldc "UTF-16"
areturn
52: StackMap locals:
StackMap stack:
aload 4
ldc "UCS-4"
invokestatic com.ctc.wstx.util.StringUtil.equalEncodings:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 54
53: ldc "UTF-32"
areturn
54: StackMap locals:
StackMap stack:
aload 4
ldc "UTF-1"
invokestatic com.ctc.wstx.util.StringUtil.equalEncodings:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 56
55: ldc "US-ASCII"
areturn
56: StackMap locals:
StackMap stack:
aload 4
ldc "J-1"
invokestatic com.ctc.wstx.util.StringUtil.equalEncodings:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 58
57: ldc "US-ASCII"
areturn
58: StackMap locals:
StackMap stack:
aload 4
ldc "US-ASCII"
invokestatic com.ctc.wstx.util.StringUtil.equalEncodings:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 98
59: ldc "US-ASCII"
areturn
end local 4 end local 3 60: StackMap locals:
StackMap stack:
aload 0
ldc "IBM"
invokestatic com.ctc.wstx.util.StringUtil.encodingStartsWith:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 98
61: aload 0
areturn
62: StackMap locals:
StackMap stack:
aload 0
ldc "JIS_Encoding"
invokestatic com.ctc.wstx.util.StringUtil.equalEncodings:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 98
63: ldc "Shift_JIS"
areturn
64: StackMap locals:
StackMap stack:
aload 0
ldc "Shift_JIS"
invokestatic com.ctc.wstx.util.StringUtil.equalEncodings:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 98
65: ldc "Shift_JIS"
areturn
66: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.lang.String.length:()I
iconst_2
if_icmpge 68
67: goto 98
68: StackMap locals:
StackMap stack:
aload 0
iconst_1
invokevirtual java.lang.String.charAt:(I)C
lookupswitch { // 8
67: 69
78: 73
83: 80
84: 82
99: 69
110: 73
115: 80
116: 82
default: 98
}
69: StackMap locals:
StackMap stack:
aload 0
ldc "UCS-2"
invokestatic com.ctc.wstx.util.StringUtil.equalEncodings:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 71
70: ldc "UTF-16"
areturn
71: StackMap locals:
StackMap stack:
aload 0
ldc "UCS-4"
invokestatic com.ctc.wstx.util.StringUtil.equalEncodings:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 98
72: ldc "UTF-32"
areturn
73: StackMap locals:
StackMap stack:
iload 1
ifeq 98
74: aload 0
ldc "Unicode"
invokestatic com.ctc.wstx.util.StringUtil.equalEncodings:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 76
75: ldc "UTF-16"
areturn
76: StackMap locals:
StackMap stack:
aload 0
ldc "UnicodeAscii"
invokestatic com.ctc.wstx.util.StringUtil.equalEncodings:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 78
77: ldc "ISO-8859-1"
areturn
78: StackMap locals:
StackMap stack:
aload 0
ldc "UnicodeAscii"
invokestatic com.ctc.wstx.util.StringUtil.equalEncodings:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 98
79: ldc "US-ASCII"
areturn
80: StackMap locals:
StackMap stack:
aload 0
ldc "US-ASCII"
invokestatic com.ctc.wstx.util.StringUtil.equalEncodings:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 98
81: ldc "US-ASCII"
areturn
82: StackMap locals:
StackMap stack:
aload 0
ldc "UTF-8"
invokestatic com.ctc.wstx.util.StringUtil.equalEncodings:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 84
83: ldc "UTF-8"
areturn
84: StackMap locals:
StackMap stack:
aload 0
ldc "UTF-16BE"
invokestatic com.ctc.wstx.util.StringUtil.equalEncodings:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 86
85: ldc "UTF-16BE"
areturn
86: StackMap locals:
StackMap stack:
aload 0
ldc "UTF-16LE"
invokestatic com.ctc.wstx.util.StringUtil.equalEncodings:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 88
87: ldc "UTF-16LE"
areturn
88: StackMap locals:
StackMap stack:
aload 0
ldc "UTF-16"
invokestatic com.ctc.wstx.util.StringUtil.equalEncodings:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 90
89: ldc "UTF-16"
areturn
90: StackMap locals:
StackMap stack:
aload 0
ldc "UTF-32BE"
invokestatic com.ctc.wstx.util.StringUtil.equalEncodings:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 92
91: ldc "UTF-32BE"
areturn
92: StackMap locals:
StackMap stack:
aload 0
ldc "UTF-32LE"
invokestatic com.ctc.wstx.util.StringUtil.equalEncodings:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 94
93: ldc "UTF-32LE"
areturn
94: StackMap locals:
StackMap stack:
aload 0
ldc "UTF-32"
invokestatic com.ctc.wstx.util.StringUtil.equalEncodings:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 96
95: ldc "UTF-32"
areturn
96: StackMap locals:
StackMap stack:
aload 0
ldc "UTF"
invokestatic com.ctc.wstx.util.StringUtil.equalEncodings:(Ljava/lang/String;Ljava/lang/String;)Z
ifeq 98
97: ldc "UTF-16"
areturn
98: StackMap locals:
StackMap stack:
aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 99 0 csName Ljava/lang/String;
3 99 1 gotCsPrefix Z
4 99 2 c C
6 10 3 d C
21 40 3 type Ljava/lang/String;
45 60 3 ix I
46 60 4 suffix Ljava/lang/String;
MethodParameters:
Name Flags
csName
public static java.lang.String findEncodingFor(java.io.Writer);
descriptor: (Ljava/io/Writer;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
instanceof java.io.OutputStreamWriter
ifeq 3
1: aload 0
checkcast java.io.OutputStreamWriter
invokevirtual java.io.OutputStreamWriter.getEncoding:()Ljava/lang/String;
astore 1
start local 1 2: aload 1
invokestatic com.ctc.wstx.io.CharsetNames.normalize:(Ljava/lang/String;)Ljava/lang/String;
areturn
end local 1 3: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 w Ljava/io/Writer;
2 3 1 enc Ljava/lang/String;
MethodParameters:
Name Flags
w
}
SourceFile: "CharsetNames.java"