public class com.sun.org.apache.xml.internal.serialize.EncodingInfo
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.org.apache.xml.internal.serialize.EncodingInfo
super_class: java.lang.Object
{
java.lang.String ianaName;
descriptor: Ljava/lang/String;
flags: (0x0000)
java.lang.String javaName;
descriptor: Ljava/lang/String;
flags: (0x0000)
int lastPrintable;
descriptor: I
flags: (0x0000)
java.nio.charset.CharsetEncoder fCharsetEncoder;
descriptor: Ljava/nio/charset/CharsetEncoder;
flags: (0x0000)
boolean fHaveTriedCharsetEncoder;
descriptor: Z
flags: (0x0000)
public void <init>(java.lang.String, java.lang.String, int);
descriptor: (Ljava/lang/String;Ljava/lang/String;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield com.sun.org.apache.xml.internal.serialize.EncodingInfo.fCharsetEncoder:Ljava/nio/charset/CharsetEncoder;
2: aload 0
iconst_0
putfield com.sun.org.apache.xml.internal.serialize.EncodingInfo.fHaveTriedCharsetEncoder:Z
3: aload 0
aload 1
putfield com.sun.org.apache.xml.internal.serialize.EncodingInfo.ianaName:Ljava/lang/String;
4: aload 0
aload 1
invokestatic com.sun.org.apache.xerces.internal.util.EncodingMap.getIANA2JavaMapping:(Ljava/lang/String;)Ljava/lang/String;
putfield com.sun.org.apache.xml.internal.serialize.EncodingInfo.javaName:Ljava/lang/String;
5: aload 0
iload 3
putfield com.sun.org.apache.xml.internal.serialize.EncodingInfo.lastPrintable:I
6: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/sun/org/apache/xml/internal/serialize/EncodingInfo;
0 7 1 ianaName Ljava/lang/String;
0 7 2 javaName Ljava/lang/String;
0 7 3 lastPrintable I
MethodParameters:
Name Flags
ianaName
javaName
lastPrintable
public java.lang.String getIANAName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.sun.org.apache.xml.internal.serialize.EncodingInfo.ianaName:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/sun/org/apache/xml/internal/serialize/EncodingInfo;
public java.io.Writer getWriter(java.io.OutputStream);
descriptor: (Ljava/io/OutputStream;)Ljava/io/Writer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.org.apache.xml.internal.serialize.EncodingInfo.javaName:Ljava/lang/String;
ifnull 2
1: new java.io.OutputStreamWriter
dup
aload 1
aload 0
getfield com.sun.org.apache.xml.internal.serialize.EncodingInfo.javaName:Ljava/lang/String;
invokespecial java.io.OutputStreamWriter.<init>:(Ljava/io/OutputStream;Ljava/lang/String;)V
areturn
2: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield com.sun.org.apache.xml.internal.serialize.EncodingInfo.ianaName:Ljava/lang/String;
invokestatic com.sun.org.apache.xerces.internal.util.EncodingMap.getIANA2JavaMapping:(Ljava/lang/String;)Ljava/lang/String;
putfield com.sun.org.apache.xml.internal.serialize.EncodingInfo.javaName:Ljava/lang/String;
3: aload 0
getfield com.sun.org.apache.xml.internal.serialize.EncodingInfo.javaName:Ljava/lang/String;
ifnonnull 5
4: new java.io.OutputStreamWriter
dup
aload 1
ldc "UTF8"
invokespecial java.io.OutputStreamWriter.<init>:(Ljava/io/OutputStream;Ljava/lang/String;)V
areturn
5: StackMap locals:
StackMap stack:
new java.io.OutputStreamWriter
dup
aload 1
aload 0
getfield com.sun.org.apache.xml.internal.serialize.EncodingInfo.javaName:Ljava/lang/String;
invokespecial java.io.OutputStreamWriter.<init>:(Ljava/io/OutputStream;Ljava/lang/String;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/sun/org/apache/xml/internal/serialize/EncodingInfo;
0 6 1 output Ljava/io/OutputStream;
Exceptions:
throws java.io.UnsupportedEncodingException
MethodParameters:
Name Flags
output
public boolean isPrintable(char);
descriptor: (C)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 1
aload 0
getfield com.sun.org.apache.xml.internal.serialize.EncodingInfo.lastPrintable:I
if_icmpgt 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 0
iload 1
invokevirtual com.sun.org.apache.xml.internal.serialize.EncodingInfo.isPrintable0:(C)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/org/apache/xml/internal/serialize/EncodingInfo;
0 3 1 ch C
MethodParameters:
Name Flags
ch
private boolean isPrintable0(char);
descriptor: (C)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.org.apache.xml.internal.serialize.EncodingInfo.fCharsetEncoder:Ljava/nio/charset/CharsetEncoder;
ifnonnull 9
aload 0
getfield com.sun.org.apache.xml.internal.serialize.EncodingInfo.fHaveTriedCharsetEncoder:Z
ifne 9
1: aload 0
getfield com.sun.org.apache.xml.internal.serialize.EncodingInfo.javaName:Ljava/lang/String;
invokestatic java.nio.charset.Charset.forName:(Ljava/lang/String;)Ljava/nio/charset/Charset;
astore 2
start local 2 2: aload 2
invokevirtual java.nio.charset.Charset.canEncode:()Z
ifeq 5
3: aload 0
aload 2
invokevirtual java.nio.charset.Charset.newEncoder:()Ljava/nio/charset/CharsetEncoder;
putfield com.sun.org.apache.xml.internal.serialize.EncodingInfo.fCharsetEncoder:Ljava/nio/charset/CharsetEncoder;
4: goto 9
5: StackMap locals: java.nio.charset.Charset
StackMap stack:
aload 0
iconst_1
putfield com.sun.org.apache.xml.internal.serialize.EncodingInfo.fHaveTriedCharsetEncoder:Z
end local 2 6: goto 9
7: StackMap locals: com.sun.org.apache.xml.internal.serialize.EncodingInfo int
StackMap stack: java.lang.Exception
pop
8: aload 0
iconst_1
putfield com.sun.org.apache.xml.internal.serialize.EncodingInfo.fHaveTriedCharsetEncoder:Z
9: StackMap locals:
StackMap stack:
aload 0
getfield com.sun.org.apache.xml.internal.serialize.EncodingInfo.fCharsetEncoder:Ljava/nio/charset/CharsetEncoder;
ifnull 15
10: aload 0
getfield com.sun.org.apache.xml.internal.serialize.EncodingInfo.fCharsetEncoder:Ljava/nio/charset/CharsetEncoder;
iload 1
invokevirtual java.nio.charset.CharsetEncoder.canEncode:(C)Z
11: ireturn
12: StackMap locals:
StackMap stack: java.lang.Exception
pop
13: aload 0
aconst_null
putfield com.sun.org.apache.xml.internal.serialize.EncodingInfo.fCharsetEncoder:Ljava/nio/charset/CharsetEncoder;
14: aload 0
iconst_0
putfield com.sun.org.apache.xml.internal.serialize.EncodingInfo.fHaveTriedCharsetEncoder:Z
15: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lcom/sun/org/apache/xml/internal/serialize/EncodingInfo;
0 16 1 ch C
2 6 2 charset Ljava/nio/charset/Charset;
Exception table:
from to target type
1 6 7 Class java.lang.Exception
10 11 12 Class java.lang.Exception
MethodParameters:
Name Flags
ch
public static void testJavaEncodingName(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=1
start local 0 0: iconst_5
newarray 8
dup
iconst_0
bipush 118
bastore
dup
iconst_1
bipush 97
bastore
dup
iconst_2
bipush 108
bastore
dup
iconst_3
bipush 105
bastore
dup
iconst_4
bipush 100
bastore
astore 1
start local 1 1: new java.lang.String
aload 1
aload 0
invokespecial java.lang.String.<init>:([BLjava/lang/String;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 name Ljava/lang/String;
1 3 1 bTest [B
Exceptions:
throws java.io.UnsupportedEncodingException
MethodParameters:
Name Flags
name
}
SourceFile: "EncodingInfo.java"
RuntimeVisibleAnnotations:
java.lang.Deprecated()