public final class com.sun.org.apache.xml.internal.serializer.Encodings
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: com.sun.org.apache.xml.internal.serializer.Encodings
super_class: java.lang.Object
{
private static final int m_defaultLastPrintable;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 127
private static final java.lang.String ENCODINGS_FILE;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "com/sun/org/apache/xml/internal/serializer/Encodings.properties"
private static final java.lang.String ENCODINGS_PROP;
descriptor: Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: "com.sun.org.apache.xalan.internal.serialize.encodings"
static final java.lang.String DEFAULT_MIME_ENCODING;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
ConstantValue: "UTF-8"
private static final com.sun.org.apache.xml.internal.serializer.Encodings$EncodingInfos _encodingInfos;
descriptor: Lcom/sun/org/apache/xml/internal/serializer/Encodings$EncodingInfos;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new com.sun.org.apache.xml.internal.serializer.Encodings$EncodingInfos
dup
invokespecial com.sun.org.apache.xml.internal.serializer.Encodings$EncodingInfos.<init>:()V
putstatic com.sun.org.apache.xml.internal.serializer.Encodings._encodingInfos:Lcom/sun/org/apache/xml/internal/serializer/Encodings$EncodingInfos;
return
LocalVariableTable:
Start End Slot Name Signature
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/sun/org/apache/xml/internal/serializer/Encodings;
static java.io.Writer getWriter(java.io.OutputStream, java.lang.String);
descriptor: (Ljava/io/OutputStream;Ljava/lang/String;)Ljava/io/Writer;
flags: (0x0008) ACC_STATIC
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: getstatic com.sun.org.apache.xml.internal.serializer.Encodings._encodingInfos:Lcom/sun/org/apache/xml/internal/serializer/Encodings$EncodingInfos;
aload 1
invokestatic com.sun.org.apache.xml.internal.serializer.Encodings.toUpperCaseFast:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual com.sun.org.apache.xml.internal.serializer.Encodings$EncodingInfos.findEncoding:(Ljava/lang/String;)Lcom/sun/org/apache/xml/internal/serializer/EncodingInfo;
astore 2
start local 2 1: aload 2
ifnull 7
2: new java.io.BufferedWriter
dup
new java.io.OutputStreamWriter
dup
3: aload 0
aload 2
getfield com.sun.org.apache.xml.internal.serializer.EncodingInfo.javaName:Ljava/lang/String;
invokespecial java.io.OutputStreamWriter.<init>:(Ljava/io/OutputStream;Ljava/lang/String;)V
4: invokespecial java.io.BufferedWriter.<init>:(Ljava/io/Writer;)V
5: areturn
6: StackMap locals: java.io.OutputStream java.lang.String com.sun.org.apache.xml.internal.serializer.EncodingInfo
StackMap stack: java.io.UnsupportedEncodingException
pop
7: StackMap locals:
StackMap stack:
new java.io.BufferedWriter
dup
new java.io.OutputStreamWriter
dup
aload 0
aload 1
invokespecial java.io.OutputStreamWriter.<init>:(Ljava/io/OutputStream;Ljava/lang/String;)V
invokespecial java.io.BufferedWriter.<init>:(Ljava/io/Writer;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 output Ljava/io/OutputStream;
0 8 1 encoding Ljava/lang/String;
1 8 2 ei Lcom/sun/org/apache/xml/internal/serializer/EncodingInfo;
Exception table:
from to target type
2 5 6 Class java.io.UnsupportedEncodingException
Exceptions:
throws java.io.UnsupportedEncodingException
MethodParameters:
Name Flags
output
encoding
public static int getLastPrintable();
descriptor: ()I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: bipush 127
ireturn
LocalVariableTable:
Start End Slot Name Signature
static com.sun.org.apache.xml.internal.serializer.EncodingInfo getEncodingInfo(java.lang.String);
descriptor: (Ljava/lang/String;)Lcom/sun/org/apache/xml/internal/serializer/EncodingInfo;
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=5, args_size=1
start local 0 0: aload 0
invokestatic com.sun.org.apache.xml.internal.serializer.Encodings.toUpperCaseFast:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 1: getstatic com.sun.org.apache.xml.internal.serializer.Encodings._encodingInfos:Lcom/sun/org/apache/xml/internal/serializer/Encodings$EncodingInfos;
aload 2
invokevirtual com.sun.org.apache.xml.internal.serializer.Encodings$EncodingInfos.findEncoding:(Ljava/lang/String;)Lcom/sun/org/apache/xml/internal/serializer/EncodingInfo;
astore 1
start local 1 2: aload 1
ifnonnull 10
3: aload 0
invokestatic java.nio.charset.Charset.forName:(Ljava/lang/String;)Ljava/nio/charset/Charset;
astore 3
start local 3 4: aload 3
invokevirtual java.nio.charset.Charset.name:()Ljava/lang/String;
astore 4
start local 4 5: new com.sun.org.apache.xml.internal.serializer.EncodingInfo
dup
aload 4
aload 4
invokespecial com.sun.org.apache.xml.internal.serializer.EncodingInfo.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 1
6: getstatic com.sun.org.apache.xml.internal.serializer.Encodings._encodingInfos:Lcom/sun/org/apache/xml/internal/serializer/Encodings$EncodingInfos;
aload 2
aload 1
invokevirtual com.sun.org.apache.xml.internal.serializer.Encodings$EncodingInfos.putEncoding:(Ljava/lang/String;Lcom/sun/org/apache/xml/internal/serializer/EncodingInfo;)V
end local 4 end local 3 7: goto 10
StackMap locals: java.lang.String com.sun.org.apache.xml.internal.serializer.EncodingInfo java.lang.String
StackMap stack: java.lang.IllegalArgumentException
8: pop
9: new com.sun.org.apache.xml.internal.serializer.EncodingInfo
dup
aconst_null
aconst_null
invokespecial com.sun.org.apache.xml.internal.serializer.EncodingInfo.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 1
10: StackMap locals:
StackMap stack:
aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 encoding Ljava/lang/String;
2 11 1 ei Lcom/sun/org/apache/xml/internal/serializer/EncodingInfo;
1 11 2 normalizedEncoding Ljava/lang/String;
4 7 3 c Ljava/nio/charset/Charset;
5 7 4 name Ljava/lang/String;
Exception table:
from to target type
3 7 8 Class java.nio.charset.IllegalCharsetNameException
3 7 8 Class java.nio.charset.UnsupportedCharsetException
MethodParameters:
Name Flags
encoding
public static boolean isRecognizedEncoding(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
invokestatic com.sun.org.apache.xml.internal.serializer.Encodings.toUpperCaseFast:(Ljava/lang/String;)Ljava/lang/String;
astore 2
start local 2 1: getstatic com.sun.org.apache.xml.internal.serializer.Encodings._encodingInfos:Lcom/sun/org/apache/xml/internal/serializer/Encodings$EncodingInfos;
aload 2
invokevirtual com.sun.org.apache.xml.internal.serializer.Encodings$EncodingInfos.findEncoding:(Ljava/lang/String;)Lcom/sun/org/apache/xml/internal/serializer/EncodingInfo;
astore 1
start local 1 2: aload 1
ifnull 4
3: iconst_1
ireturn
4: StackMap locals: com.sun.org.apache.xml.internal.serializer.EncodingInfo java.lang.String
StackMap stack:
iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 encoding Ljava/lang/String;
2 5 1 ei Lcom/sun/org/apache/xml/internal/serializer/EncodingInfo;
1 5 2 normalizedEncoding Ljava/lang/String;
MethodParameters:
Name Flags
encoding
private static java.lang.String toUpperCaseFast(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=6, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: aload 0
invokevirtual java.lang.String.length:()I
istore 2
start local 2 2: iload 2
newarray 5
astore 3
start local 3 3: iconst_0
istore 4
start local 4 4: goto 11
5: StackMap locals: java.lang.String int int char[] int
StackMap stack:
aload 0
iload 4
invokevirtual java.lang.String.charAt:(I)C
istore 5
start local 5 6: bipush 97
iload 5
if_icmpgt 9
iload 5
bipush 122
if_icmpgt 9
7: iload 5
bipush -32
iadd
i2c
istore 5
8: iconst_1
istore 1
9: StackMap locals: int
StackMap stack:
aload 3
iload 4
iload 5
castore
end local 5 10: iinc 4 1
StackMap locals:
StackMap stack:
11: iload 4
iload 2
if_icmplt 5
end local 4 12: iload 1
ifeq 15
13: aload 3
invokestatic java.lang.String.valueOf:([C)Ljava/lang/String;
astore 4
start local 4 14: goto 16
end local 4 15: StackMap locals:
StackMap stack:
aload 0
astore 4
start local 4 16: StackMap locals: java.lang.String
StackMap stack:
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 17 0 s Ljava/lang/String;
1 17 1 different Z
2 17 2 mx I
3 17 3 chars [C
4 12 4 i I
6 10 5 ch C
14 15 4 upper Ljava/lang/String;
16 17 4 upper Ljava/lang/String;
MethodParameters:
Name Flags
s final
static java.lang.String getMimeEncoding(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
ifnonnull 19
1: ldc "file.encoding"
ldc "UTF8"
invokestatic com.sun.org.apache.xalan.internal.utils.SecuritySupport.getSystemProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
astore 0
2: aload 0
ifnull 14
3: aload 0
ldc "Cp1252"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 7
4: aload 0
ldc "ISO8859_1"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 7
5: aload 0
ldc "8859_1"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifne 7
6: aload 0
ldc "UTF8"
invokevirtual java.lang.String.equalsIgnoreCase:(Ljava/lang/String;)Z
ifeq 8
7: StackMap locals:
StackMap stack:
ldc "UTF-8"
goto 9
8: StackMap locals:
StackMap stack:
aload 0
invokestatic com.sun.org.apache.xml.internal.serializer.Encodings.convertJava2MimeEncoding:(Ljava/lang/String;)Ljava/lang/String;
9: StackMap locals:
StackMap stack: java.lang.String
astore 1
start local 1 10: aload 1
ifnull 11
aload 1
goto 12
StackMap locals: java.lang.String
StackMap stack:
11: ldc "UTF-8"
12: StackMap locals:
StackMap stack: java.lang.String
astore 0
end local 1 13: goto 20
14: StackMap locals:
StackMap stack:
ldc "UTF-8"
astore 0
15: goto 20
16: StackMap locals:
StackMap stack: java.lang.SecurityException
pop
17: ldc "UTF-8"
astore 0
18: goto 20
19: StackMap locals:
StackMap stack:
aload 0
invokestatic com.sun.org.apache.xml.internal.serializer.Encodings.convertJava2MimeEncoding:(Ljava/lang/String;)Ljava/lang/String;
astore 0
20: StackMap locals:
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 encoding Ljava/lang/String;
10 13 1 jencoding Ljava/lang/String;
Exception table:
from to target type
1 15 16 Class java.lang.SecurityException
MethodParameters:
Name Flags
encoding
private static java.lang.String convertJava2MimeEncoding(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: getstatic com.sun.org.apache.xml.internal.serializer.Encodings._encodingInfos:Lcom/sun/org/apache/xml/internal/serializer/Encodings$EncodingInfos;
aload 0
invokestatic com.sun.org.apache.xml.internal.serializer.Encodings.toUpperCaseFast:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual com.sun.org.apache.xml.internal.serializer.Encodings$EncodingInfos.getEncodingFromJavaKey:(Ljava/lang/String;)Lcom/sun/org/apache/xml/internal/serializer/EncodingInfo;
1: astore 1
start local 1 2: aload 1
ifnull 4
3: aload 1
getfield com.sun.org.apache.xml.internal.serializer.EncodingInfo.name:Ljava/lang/String;
areturn
4: StackMap locals: com.sun.org.apache.xml.internal.serializer.EncodingInfo
StackMap stack:
aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 encoding Ljava/lang/String;
2 5 1 enc Lcom/sun/org/apache/xml/internal/serializer/EncodingInfo;
MethodParameters:
Name Flags
encoding
public static java.lang.String convertMime2JavaEncoding(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: getstatic com.sun.org.apache.xml.internal.serializer.Encodings._encodingInfos:Lcom/sun/org/apache/xml/internal/serializer/Encodings$EncodingInfos;
aload 0
invokestatic com.sun.org.apache.xml.internal.serializer.Encodings.toUpperCaseFast:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual com.sun.org.apache.xml.internal.serializer.Encodings$EncodingInfos.findEncoding:(Ljava/lang/String;)Lcom/sun/org/apache/xml/internal/serializer/EncodingInfo;
astore 1
start local 1 1: aload 1
ifnull 2
aload 1
getfield com.sun.org.apache.xml.internal.serializer.EncodingInfo.javaName:Ljava/lang/String;
goto 3
StackMap locals: com.sun.org.apache.xml.internal.serializer.EncodingInfo
StackMap stack:
2: aload 0
StackMap locals:
StackMap stack: java.lang.String
3: areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 encoding Ljava/lang/String;
1 4 1 info Lcom/sun/org/apache/xml/internal/serializer/EncodingInfo;
MethodParameters:
Name Flags
encoding
static boolean isHighUTF16Surrogate(char);
descriptor: (C)Z
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: ldc 55296
iload 0
if_icmpgt 1
iload 0
ldc 56319
if_icmpgt 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 ch C
MethodParameters:
Name Flags
ch
static boolean isLowUTF16Surrogate(char);
descriptor: (C)Z
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: ldc 56320
iload 0
if_icmpgt 1
iload 0
ldc 57343
if_icmpgt 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 ch C
MethodParameters:
Name Flags
ch
static int toCodePoint(char, char);
descriptor: (CC)I
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: iload 0
ldc 55296
isub
bipush 10
ishl
1: iload 1
ldc 56320
isub
2: iadd
3: ldc 65536
4: iadd
5: istore 2
start local 2 6: iload 2
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 highSurrogate C
0 7 1 lowSurrogate C
6 7 2 codePoint I
MethodParameters:
Name Flags
highSurrogate
lowSurrogate
static int toCodePoint(char);
descriptor: (C)I
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: iload 0
istore 1
start local 1 1: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 ch C
1 2 1 codePoint I
MethodParameters:
Name Flags
ch
}
SourceFile: "Encodings.java"
NestMembers:
com.sun.org.apache.xml.internal.serializer.Encodings$EncodingInfos
InnerClasses:
private final EncodingInfos = com.sun.org.apache.xml.internal.serializer.Encodings$EncodingInfos of com.sun.org.apache.xml.internal.serializer.Encodings