public abstract class java.nio.charset.Charset implements java.lang.Comparable<java.nio.charset.Charset>
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: java.nio.charset.Charset
super_class: java.lang.Object
{
private static final java.nio.charset.spi.CharsetProvider standardProvider;
descriptor: Ljava/nio/charset/spi/CharsetProvider;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final java.lang.String[] zeroAliases;
descriptor: [Ljava/lang/String;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static volatile java.lang.Object[] cache1;
descriptor: [Ljava/lang/Object;
flags: (0x004a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE
private static volatile java.lang.Object[] cache2;
descriptor: [Ljava/lang/Object;
flags: (0x004a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE
private static java.lang.ThreadLocal<java.lang.ThreadLocal<?>> gate;
descriptor: Ljava/lang/ThreadLocal;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Signature: Ljava/lang/ThreadLocal<Ljava/lang/ThreadLocal<*>;>;
private static volatile java.nio.charset.Charset defaultCharset;
descriptor: Ljava/nio/charset/Charset;
flags: (0x004a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE
private final java.lang.String name;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String[] aliases;
descriptor: [Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.util.Set<java.lang.String> aliasSet;
descriptor: Ljava/util/Set;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/Set<Ljava/lang/String;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new sun.nio.cs.StandardCharsets
dup
invokespecial sun.nio.cs.StandardCharsets.<init>:()V
1: putstatic java.nio.charset.Charset.standardProvider:Ljava/nio/charset/spi/CharsetProvider;
2: iconst_0
anewarray java.lang.String
putstatic java.nio.charset.Charset.zeroAliases:[Ljava/lang/String;
3: new java.lang.ThreadLocal
dup
invokespecial java.lang.ThreadLocal.<init>:()V
4: putstatic java.nio.charset.Charset.gate:Ljava/lang/ThreadLocal;
5: return
LocalVariableTable:
Start End Slot Name Signature
private static void checkName(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.String.length:()I
istore 1
start local 1 1: iload 1
ifne 3
2: new java.nio.charset.IllegalCharsetNameException
dup
aload 0
invokespecial java.nio.charset.IllegalCharsetNameException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: int
StackMap stack:
iconst_0
istore 2
start local 2 4: goto 16
5: StackMap locals: int
StackMap stack:
aload 0
iload 2
invokevirtual java.lang.String.charAt:(I)C
istore 3
start local 3 6: iload 3
bipush 65
if_icmplt 7
iload 3
bipush 90
if_icmpgt 7
goto 15
7: StackMap locals: int
StackMap stack:
iload 3
bipush 97
if_icmplt 8
iload 3
bipush 122
if_icmpgt 8
goto 15
8: StackMap locals:
StackMap stack:
iload 3
bipush 48
if_icmplt 9
iload 3
bipush 57
if_icmpgt 9
goto 15
9: StackMap locals:
StackMap stack:
iload 3
bipush 45
if_icmpne 10
iload 2
ifeq 10
goto 15
10: StackMap locals:
StackMap stack:
iload 3
bipush 43
if_icmpne 11
iload 2
ifeq 11
goto 15
11: StackMap locals:
StackMap stack:
iload 3
bipush 58
if_icmpne 12
iload 2
ifeq 12
goto 15
12: StackMap locals:
StackMap stack:
iload 3
bipush 95
if_icmpne 13
iload 2
ifeq 13
goto 15
13: StackMap locals:
StackMap stack:
iload 3
bipush 46
if_icmpne 14
iload 2
ifeq 14
goto 15
14: StackMap locals:
StackMap stack:
new java.nio.charset.IllegalCharsetNameException
dup
aload 0
invokespecial java.nio.charset.IllegalCharsetNameException.<init>:(Ljava/lang/String;)V
athrow
end local 3 15: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
16: iload 2
iload 1
if_icmplt 5
end local 2 17: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 s Ljava/lang/String;
1 18 1 n I
4 17 2 i I
6 15 3 c C
MethodParameters:
Name Flags
s
private static void cache(java.lang.String, java.nio.charset.Charset);
descriptor: (Ljava/lang/String;Ljava/nio/charset/Charset;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: getstatic java.nio.charset.Charset.cache1:[Ljava/lang/Object;
putstatic java.nio.charset.Charset.cache2:[Ljava/lang/Object;
1: iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
aastore
dup
iconst_1
aload 1
aastore
putstatic java.nio.charset.Charset.cache1:[Ljava/lang/Object;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 charsetName Ljava/lang/String;
0 3 1 cs Ljava/nio/charset/Charset;
MethodParameters:
Name Flags
charsetName
cs
private static java.util.Iterator<java.nio.charset.spi.CharsetProvider> providers();
descriptor: ()Ljava/util/Iterator;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.nio.charset.Charset$1
dup
invokespecial java.nio.charset.Charset$1.<init>:()V
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: ()Ljava/util/Iterator<Ljava/nio/charset/spi/CharsetProvider;>;
private static java.nio.charset.Charset lookupViaProviders(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/nio/charset/Charset;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: invokestatic jdk.internal.misc.VM.isBooted:()Z
ifne 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
getstatic java.nio.charset.Charset.gate:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.get:()Ljava/lang/Object;
ifnull 4
3: aconst_null
areturn
4: StackMap locals:
StackMap stack:
getstatic java.nio.charset.Charset.gate:Ljava/lang/ThreadLocal;
getstatic java.nio.charset.Charset.gate:Ljava/lang/ThreadLocal;
invokevirtual java.lang.ThreadLocal.set:(Ljava/lang/Object;)V
5: new java.nio.charset.Charset$2
dup
aload 0
invokespecial java.nio.charset.Charset$2.<init>:(Ljava/lang/String;)V
6: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.nio.charset.Charset
astore 2
7: getstatic java.nio.charset.Charset.gate:Ljava/lang/ThreadLocal;
aconst_null
invokevirtual java.lang.ThreadLocal.set:(Ljava/lang/Object;)V
8: aload 2
areturn
9: StackMap locals:
StackMap stack: java.lang.Throwable
astore 1
10: getstatic java.nio.charset.Charset.gate:Ljava/lang/ThreadLocal;
aconst_null
invokevirtual java.lang.ThreadLocal.set:(Ljava/lang/Object;)V
11: aload 1
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 charsetName Ljava/lang/String;
Exception table:
from to target type
4 7 9 any
MethodParameters:
Name Flags
charsetName final
private static java.nio.charset.Charset lookupExtendedCharset(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/nio/charset/Charset;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=7, args_size=1
start local 0 0: invokestatic jdk.internal.misc.VM.isBooted:()Z
ifne 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
getstatic java.nio.charset.Charset$ExtendedProviderHolder.extendedProviders:[Ljava/nio/charset/spi/CharsetProvider;
astore 1
start local 1 3: aload 1
dup
astore 5
arraylength
istore 4
iconst_0
istore 3
goto 9
StackMap locals: java.lang.String java.nio.charset.spi.CharsetProvider[] top int int java.nio.charset.spi.CharsetProvider[]
StackMap stack:
4: aload 5
iload 3
aaload
astore 2
start local 2 5: aload 2
aload 0
invokevirtual java.nio.charset.spi.CharsetProvider.charsetForName:(Ljava/lang/String;)Ljava/nio/charset/Charset;
astore 6
start local 6 6: aload 6
ifnull 8
7: aload 6
areturn
end local 6 end local 2 8: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
9: iload 3
iload 4
if_icmplt 4
10: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 charsetName Ljava/lang/String;
3 11 1 ecps [Ljava/nio/charset/spi/CharsetProvider;
5 8 2 cp Ljava/nio/charset/spi/CharsetProvider;
6 8 6 cs Ljava/nio/charset/Charset;
MethodParameters:
Name Flags
charsetName
private static java.nio.charset.Charset lookup(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/nio/charset/Charset;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "Null charset name"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
getstatic java.nio.charset.Charset.cache1:[Ljava/lang/Object;
dup
astore 1
start local 1 3: ifnull 5
aload 0
aload 1
iconst_0
aaload
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 5
4: aload 1
iconst_1
aaload
checkcast java.nio.charset.Charset
areturn
5: StackMap locals: java.lang.Object[]
StackMap stack:
aload 0
invokestatic java.nio.charset.Charset.lookup2:(Ljava/lang/String;)Ljava/nio/charset/Charset;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 charsetName Ljava/lang/String;
3 6 1 a [Ljava/lang/Object;
MethodParameters:
Name Flags
charsetName
private static java.nio.charset.Charset lookup2(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/nio/charset/Charset;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: getstatic java.nio.charset.Charset.cache2:[Ljava/lang/Object;
dup
astore 1
start local 1 1: ifnull 5
aload 0
aload 1
iconst_0
aaload
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 5
2: getstatic java.nio.charset.Charset.cache1:[Ljava/lang/Object;
putstatic java.nio.charset.Charset.cache2:[Ljava/lang/Object;
3: aload 1
putstatic java.nio.charset.Charset.cache1:[Ljava/lang/Object;
4: aload 1
iconst_1
aaload
checkcast java.nio.charset.Charset
areturn
5: StackMap locals: java.lang.Object[]
StackMap stack:
getstatic java.nio.charset.Charset.standardProvider:Ljava/nio/charset/spi/CharsetProvider;
aload 0
invokevirtual java.nio.charset.spi.CharsetProvider.charsetForName:(Ljava/lang/String;)Ljava/nio/charset/Charset;
dup
astore 2
start local 2 6: ifnonnull 9
7: aload 0
invokestatic java.nio.charset.Charset.lookupExtendedCharset:(Ljava/lang/String;)Ljava/nio/charset/Charset;
dup
astore 2
ifnonnull 9
8: aload 0
invokestatic java.nio.charset.Charset.lookupViaProviders:(Ljava/lang/String;)Ljava/nio/charset/Charset;
dup
astore 2
ifnull 11
9: StackMap locals: java.nio.charset.Charset
StackMap stack:
aload 0
aload 2
invokestatic java.nio.charset.Charset.cache:(Ljava/lang/String;Ljava/nio/charset/Charset;)V
10: aload 2
areturn
11: StackMap locals:
StackMap stack:
aload 0
invokestatic java.nio.charset.Charset.checkName:(Ljava/lang/String;)V
12: aconst_null
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 charsetName Ljava/lang/String;
1 13 1 a [Ljava/lang/Object;
6 13 2 cs Ljava/nio/charset/Charset;
MethodParameters:
Name Flags
charsetName
public static boolean isSupported(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic java.nio.charset.Charset.lookup:(Ljava/lang/String;)Ljava/nio/charset/Charset;
ifnull 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 charsetName Ljava/lang/String;
MethodParameters:
Name Flags
charsetName
public static java.nio.charset.Charset forName(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/nio/charset/Charset;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokestatic java.nio.charset.Charset.lookup:(Ljava/lang/String;)Ljava/nio/charset/Charset;
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
areturn
3: StackMap locals: java.nio.charset.Charset
StackMap stack:
new java.nio.charset.UnsupportedCharsetException
dup
aload 0
invokespecial java.nio.charset.UnsupportedCharsetException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 charsetName Ljava/lang/String;
1 4 1 cs Ljava/nio/charset/Charset;
MethodParameters:
Name Flags
charsetName
private static void put(java.util.Iterator<java.nio.charset.Charset>, java.util.Map<java.lang.String, java.nio.charset.Charset>);
descriptor: (Ljava/util/Iterator;Ljava/util/Map;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: goto 4
1: StackMap locals:
StackMap stack:
aload 0
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.nio.charset.Charset
astore 2
start local 2 2: aload 1
aload 2
invokevirtual java.nio.charset.Charset.name:()Ljava/lang/String;
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifne 4
3: aload 1
aload 2
invokevirtual java.nio.charset.Charset.name:()Ljava/lang/String;
aload 2
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 2 4: StackMap locals:
StackMap stack:
aload 0
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 i Ljava/util/Iterator<Ljava/nio/charset/Charset;>;
0 6 1 m Ljava/util/Map<Ljava/lang/String;Ljava/nio/charset/Charset;>;
2 4 2 cs Ljava/nio/charset/Charset;
Signature: (Ljava/util/Iterator<Ljava/nio/charset/Charset;>;Ljava/util/Map<Ljava/lang/String;Ljava/nio/charset/Charset;>;)V
MethodParameters:
Name Flags
i
m
public static java.util.SortedMap<java.lang.String, java.nio.charset.Charset> availableCharsets();
descriptor: ()Ljava/util/SortedMap;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.nio.charset.Charset$3
dup
invokespecial java.nio.charset.Charset$3.<init>:()V
1: invokestatic java.security.AccessController.doPrivileged:(Ljava/security/PrivilegedAction;)Ljava/lang/Object;
checkcast java.util.SortedMap
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: ()Ljava/util/SortedMap<Ljava/lang/String;Ljava/nio/charset/Charset;>;
public static java.nio.charset.Charset defaultCharset();
descriptor: ()Ljava/nio/charset/Charset;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=0
0: getstatic java.nio.charset.Charset.defaultCharset:Ljava/nio/charset/Charset;
ifnonnull 12
1: ldc Ljava/nio/charset/Charset;
dup
astore 0
monitorenter
2: ldc "file.encoding"
invokestatic sun.security.action.GetPropertyAction.privilegedGetProperty:(Ljava/lang/String;)Ljava/lang/String;
3: astore 1
start local 1 4: aload 1
invokestatic java.nio.charset.Charset.lookup:(Ljava/lang/String;)Ljava/nio/charset/Charset;
astore 2
start local 2 5: aload 2
ifnull 7
6: aload 2
putstatic java.nio.charset.Charset.defaultCharset:Ljava/nio/charset/Charset;
goto 8
7: StackMap locals: java.lang.Class java.lang.String java.nio.charset.Charset
StackMap stack:
getstatic sun.nio.cs.UTF_8.INSTANCE:Lsun/nio/cs/UTF_8;
putstatic java.nio.charset.Charset.defaultCharset:Ljava/nio/charset/Charset;
end local 2 end local 1 8: StackMap locals:
StackMap stack:
aload 0
monitorexit
9: goto 12
StackMap locals:
StackMap stack: java.lang.Throwable
10: aload 0
monitorexit
11: athrow
12: StackMap locals:
StackMap stack:
getstatic java.nio.charset.Charset.defaultCharset:Ljava/nio/charset/Charset;
areturn
LocalVariableTable:
Start End Slot Name Signature
4 8 1 csn Ljava/lang/String;
5 8 2 cs Ljava/nio/charset/Charset;
Exception table:
from to target type
2 9 10 any
10 11 10 any
protected void <init>(java.lang.String, java.lang.String[]);
descriptor: (Ljava/lang/String;[Ljava/lang/String;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aconst_null
putfield java.nio.charset.Charset.aliasSet:Ljava/util/Set;
2: aload 2
getstatic java.nio.charset.Charset.zeroAliases:[Ljava/lang/String;
invokestatic java.util.Objects.requireNonNullElse:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.String[]
astore 3
start local 3 3: aload 1
ldc "ISO-8859-1"
if_acmpeq 12
4: aload 1
ldc "US-ASCII"
if_acmpeq 12
5: aload 1
ldc "UTF-8"
if_acmpeq 12
6: aload 1
invokestatic java.nio.charset.Charset.checkName:(Ljava/lang/String;)V
7: iconst_0
istore 4
start local 4 8: goto 11
9: StackMap locals: java.nio.charset.Charset java.lang.String java.lang.String[] java.lang.String[] int
StackMap stack:
aload 3
iload 4
aaload
invokestatic java.nio.charset.Charset.checkName:(Ljava/lang/String;)V
10: iinc 4 1
StackMap locals:
StackMap stack:
11: iload 4
aload 3
arraylength
if_icmplt 9
end local 4 12: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield java.nio.charset.Charset.name:Ljava/lang/String;
13: aload 0
aload 3
putfield java.nio.charset.Charset.aliases:[Ljava/lang/String;
14: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Ljava/nio/charset/Charset;
0 15 1 canonicalName Ljava/lang/String;
0 15 2 aliases [Ljava/lang/String;
3 15 3 as [Ljava/lang/String;
8 12 4 i I
MethodParameters:
Name Flags
canonicalName
aliases
public final java.lang.String name();
descriptor: ()Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.nio.charset.Charset.name:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/nio/charset/Charset;
public final java.util.Set<java.lang.String> aliases();
descriptor: ()Ljava/util/Set;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
getfield java.nio.charset.Charset.aliasSet:Ljava/util/Set;
ifnull 2
1: aload 0
getfield java.nio.charset.Charset.aliasSet:Ljava/util/Set;
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield java.nio.charset.Charset.aliases:[Ljava/lang/String;
arraylength
istore 1
start local 1 3: new java.util.HashSet
dup
iload 1
invokespecial java.util.HashSet.<init>:(I)V
astore 2
start local 2 4: iconst_0
istore 3
start local 3 5: goto 8
6: StackMap locals: int java.util.HashSet int
StackMap stack:
aload 2
aload 0
getfield java.nio.charset.Charset.aliases:[Ljava/lang/String;
iload 3
aaload
invokevirtual java.util.HashSet.add:(Ljava/lang/Object;)Z
pop
7: iinc 3 1
StackMap locals:
StackMap stack:
8: iload 3
iload 1
if_icmplt 6
end local 3 9: aload 0
aload 2
invokestatic java.util.Collections.unmodifiableSet:(Ljava/util/Set;)Ljava/util/Set;
putfield java.nio.charset.Charset.aliasSet:Ljava/util/Set;
10: aload 0
getfield java.nio.charset.Charset.aliasSet:Ljava/util/Set;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljava/nio/charset/Charset;
3 11 1 n I
4 11 2 hs Ljava/util/HashSet<Ljava/lang/String;>;
5 9 3 i I
Signature: ()Ljava/util/Set<Ljava/lang/String;>;
public java.lang.String displayName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.nio.charset.Charset.name:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/nio/charset/Charset;
public final boolean isRegistered();
descriptor: ()Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield java.nio.charset.Charset.name:Ljava/lang/String;
ldc "X-"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 1
aload 0
getfield java.nio.charset.Charset.name:Ljava/lang/String;
ldc "x-"
invokevirtual java.lang.String.startsWith:(Ljava/lang/String;)Z
ifne 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljava/nio/charset/Charset;
public java.lang.String displayName(java.util.Locale);
descriptor: (Ljava/util/Locale;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield java.nio.charset.Charset.name:Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/nio/charset/Charset;
0 1 1 locale Ljava/util/Locale;
MethodParameters:
Name Flags
locale
public abstract boolean contains(java.nio.charset.Charset);
descriptor: (Ljava/nio/charset/Charset;)Z
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
cs
public abstract java.nio.charset.CharsetDecoder newDecoder();
descriptor: ()Ljava/nio/charset/CharsetDecoder;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract java.nio.charset.CharsetEncoder newEncoder();
descriptor: ()Ljava/nio/charset/CharsetEncoder;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public boolean canEncode();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: iconst_1
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/nio/charset/Charset;
public final java.nio.CharBuffer decode(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)Ljava/nio/CharBuffer;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokestatic sun.nio.cs.ThreadLocalCoders.decoderFor:(Ljava/lang/Object;)Ljava/nio/charset/CharsetDecoder;
1: getstatic java.nio.charset.CodingErrorAction.REPLACE:Ljava/nio/charset/CodingErrorAction;
invokevirtual java.nio.charset.CharsetDecoder.onMalformedInput:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetDecoder;
2: getstatic java.nio.charset.CodingErrorAction.REPLACE:Ljava/nio/charset/CodingErrorAction;
invokevirtual java.nio.charset.CharsetDecoder.onUnmappableCharacter:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetDecoder;
3: aload 1
invokevirtual java.nio.charset.CharsetDecoder.decode:(Ljava/nio/ByteBuffer;)Ljava/nio/CharBuffer;
4: areturn
5: StackMap locals:
StackMap stack: java.nio.charset.CharacterCodingException
astore 2
start local 2 6: new java.lang.Error
dup
aload 2
invokespecial java.lang.Error.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/nio/charset/Charset;
0 7 1 bb Ljava/nio/ByteBuffer;
6 7 2 x Ljava/nio/charset/CharacterCodingException;
Exception table:
from to target type
0 4 5 Class java.nio.charset.CharacterCodingException
MethodParameters:
Name Flags
bb
public final java.nio.ByteBuffer encode(java.nio.CharBuffer);
descriptor: (Ljava/nio/CharBuffer;)Ljava/nio/ByteBuffer;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokestatic sun.nio.cs.ThreadLocalCoders.encoderFor:(Ljava/lang/Object;)Ljava/nio/charset/CharsetEncoder;
1: getstatic java.nio.charset.CodingErrorAction.REPLACE:Ljava/nio/charset/CodingErrorAction;
invokevirtual java.nio.charset.CharsetEncoder.onMalformedInput:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetEncoder;
2: getstatic java.nio.charset.CodingErrorAction.REPLACE:Ljava/nio/charset/CodingErrorAction;
invokevirtual java.nio.charset.CharsetEncoder.onUnmappableCharacter:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetEncoder;
3: aload 1
invokevirtual java.nio.charset.CharsetEncoder.encode:(Ljava/nio/CharBuffer;)Ljava/nio/ByteBuffer;
4: areturn
5: StackMap locals:
StackMap stack: java.nio.charset.CharacterCodingException
astore 2
start local 2 6: new java.lang.Error
dup
aload 2
invokespecial java.lang.Error.<init>:(Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljava/nio/charset/Charset;
0 7 1 cb Ljava/nio/CharBuffer;
6 7 2 x Ljava/nio/charset/CharacterCodingException;
Exception table:
from to target type
0 4 5 Class java.nio.charset.CharacterCodingException
MethodParameters:
Name Flags
cb
public final java.nio.ByteBuffer encode(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/nio/ByteBuffer;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic java.nio.CharBuffer.wrap:(Ljava/lang/CharSequence;)Ljava/nio/CharBuffer;
invokevirtual java.nio.charset.Charset.encode:(Ljava/nio/CharBuffer;)Ljava/nio/ByteBuffer;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/nio/charset/Charset;
0 1 1 str Ljava/lang/String;
MethodParameters:
Name Flags
str
public final int compareTo(java.nio.charset.Charset);
descriptor: (Ljava/nio/charset/Charset;)I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.nio.charset.Charset.name:()Ljava/lang/String;
aload 1
invokevirtual java.nio.charset.Charset.name:()Ljava/lang/String;
invokevirtual java.lang.String.compareToIgnoreCase:(Ljava/lang/String;)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/nio/charset/Charset;
0 1 1 that Ljava/nio/charset/Charset;
MethodParameters:
Name Flags
that
public final int hashCode();
descriptor: ()I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.nio.charset.Charset.name:()Ljava/lang/String;
invokevirtual java.lang.String.hashCode:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/nio/charset/Charset;
public final boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
instanceof java.nio.charset.Charset
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
aload 1
if_acmpne 4
3: iconst_1
ireturn
4: StackMap locals:
StackMap stack:
aload 0
getfield java.nio.charset.Charset.name:Ljava/lang/String;
aload 1
checkcast java.nio.charset.Charset
invokevirtual java.nio.charset.Charset.name:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/nio/charset/Charset;
0 5 1 ob Ljava/lang/Object;
MethodParameters:
Name Flags
ob
public final java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.nio.charset.Charset.name:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/nio/charset/Charset;
public int compareTo(java.lang.Object);
descriptor: (Ljava/lang/Object;)I
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast java.nio.charset.Charset
invokevirtual java.nio.charset.Charset.compareTo:(Ljava/nio/charset/Charset;)I
ireturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Ljava/lang/Comparable<Ljava/nio/charset/Charset;>;
SourceFile: "Charset.java"
NestMembers:
java.nio.charset.Charset$1 java.nio.charset.Charset$2 java.nio.charset.Charset$3 java.nio.charset.Charset$ExtendedProviderHolder java.nio.charset.Charset$ExtendedProviderHolder$1
InnerClasses:
java.nio.charset.Charset$1
java.nio.charset.Charset$2
java.nio.charset.Charset$3
private ExtendedProviderHolder = java.nio.charset.Charset$ExtendedProviderHolder of java.nio.charset.Charset