final class com.sun.webkit.text.TextCodec
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: com.sun.webkit.text.TextCodec
super_class: java.lang.Object
{
private final java.nio.charset.Charset charset;
descriptor: Ljava/nio/charset/Charset;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final java.util.Map<java.lang.String, java.lang.String> reMap;
descriptor: Ljava/util/Map;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/String;Ljava/lang/String;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
1: putstatic com.sun.webkit.text.TextCodec.reMap:Ljava/util/Map;
2: getstatic com.sun.webkit.text.TextCodec.reMap:Ljava/util/Map;
ldc "ISO-10646-UCS-2"
ldc "UTF-16"
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
3: return
LocalVariableTable:
Start End Slot Name Signature
private void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0002) ACC_PRIVATE
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
invokestatic java.nio.charset.Charset.forName:(Ljava/lang/String;)Ljava/nio/charset/Charset;
putfield com.sun.webkit.text.TextCodec.charset:Ljava/nio/charset/Charset;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/webkit/text/TextCodec;
0 3 1 encoding Ljava/lang/String;
MethodParameters:
Name Flags
encoding
private byte[] encode(char[]);
descriptor: ([C)[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.webkit.text.TextCodec.charset:Ljava/nio/charset/Charset;
aload 1
invokestatic java.nio.CharBuffer.wrap:([C)Ljava/nio/CharBuffer;
invokevirtual java.nio.charset.Charset.encode:(Ljava/nio/CharBuffer;)Ljava/nio/ByteBuffer;
astore 2
start local 2 1: aload 2
invokevirtual java.nio.ByteBuffer.remaining:()I
newarray 8
astore 3
start local 3 2: aload 2
aload 3
invokevirtual java.nio.ByteBuffer.get:([B)Ljava/nio/ByteBuffer;
pop
3: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/webkit/text/TextCodec;
0 4 1 data [C
1 4 2 bb Ljava/nio/ByteBuffer;
2 4 3 encoded [B
MethodParameters:
Name Flags
data
private java.lang.String decode(byte[]);
descriptor: ([B)Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield com.sun.webkit.text.TextCodec.charset:Ljava/nio/charset/Charset;
aload 1
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
invokevirtual java.nio.charset.Charset.decode:(Ljava/nio/ByteBuffer;)Ljava/nio/CharBuffer;
astore 2
start local 2 1: aload 2
invokevirtual java.nio.CharBuffer.remaining:()I
newarray 5
astore 3
start local 3 2: aload 2
aload 3
invokevirtual java.nio.CharBuffer.get:([C)Ljava/nio/CharBuffer;
pop
3: new java.lang.String
dup
aload 3
invokespecial java.lang.String.<init>:([C)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/webkit/text/TextCodec;
0 4 1 data [B
1 4 2 cb Ljava/nio/CharBuffer;
2 4 3 decoded [C
MethodParameters:
Name Flags
data
private static java.lang.String[] getEncodings();
descriptor: ()[Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=9, args_size=0
0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 0
start local 0 1: invokestatic java.nio.charset.Charset.availableCharsets:()Ljava/util/SortedMap;
astore 1
start local 1 2: aload 1
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 17
StackMap locals: java.util.List java.util.Map top java.util.Iterator
StackMap stack:
3: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 2
start local 2 4: aload 2
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 5: aload 0
aload 4
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
6: aload 0
aload 4
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
7: aload 2
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.nio.charset.Charset
astore 5
start local 5 8: aload 5
invokevirtual java.nio.charset.Charset.aliases:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 7
goto 16
StackMap locals: java.util.List java.util.Map java.util.Map$Entry java.util.Iterator java.lang.String java.nio.charset.Charset top java.util.Iterator
StackMap stack:
9: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 6
start local 6 10: aload 6
ldc "8859_1"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 11
goto 16
11: StackMap locals: java.util.List java.util.Map java.util.Map$Entry java.util.Iterator java.lang.String java.nio.charset.Charset java.lang.String java.util.Iterator
StackMap stack:
aload 0
aload 6
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
12: getstatic com.sun.webkit.text.TextCodec.reMap:Ljava/util/Map;
aload 6
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String
astore 8
start local 8 13: aload 0
aload 8
ifnonnull 14
aload 4
goto 15
StackMap locals: java.util.List java.util.Map java.util.Map$Entry java.util.Iterator java.lang.String java.nio.charset.Charset java.lang.String java.util.Iterator java.lang.String
StackMap stack: java.util.List
14: aload 8
StackMap locals: java.util.List java.util.Map java.util.Map$Entry java.util.Iterator java.lang.String java.nio.charset.Charset java.lang.String java.util.Iterator java.lang.String
StackMap stack: java.util.List java.lang.String
15: invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 8 end local 6 16: StackMap locals: java.util.List java.util.Map java.util.Map$Entry java.util.Iterator java.lang.String java.nio.charset.Charset top java.util.Iterator
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 9
end local 5 end local 4 end local 2 17: StackMap locals: java.util.List java.util.Map top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
18: aload 0
iconst_0
anewarray java.lang.String
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.lang.String[]
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
1 19 0 encodings Ljava/util/List<Ljava/lang/String;>;
2 19 1 ac Ljava/util/Map<Ljava/lang/String;Ljava/nio/charset/Charset;>;
4 17 2 entry Ljava/util/Map$Entry<Ljava/lang/String;Ljava/nio/charset/Charset;>;
5 17 4 e Ljava/lang/String;
8 17 5 c Ljava/nio/charset/Charset;
10 16 6 a Ljava/lang/String;
13 16 8 r Ljava/lang/String;
}
SourceFile: "TextCodec.java"
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map