public final class org.glassfish.grizzly.utils.Charsets
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: org.glassfish.grizzly.utils.Charsets
super_class: java.lang.Object
{
public static final java.lang.String DEFAULT_CHARACTER_ENCODING;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private static final java.util.concurrent.ConcurrentMap<java.lang.String, java.nio.charset.Charset> charsetAliasMap;
descriptor: Ljava/util/concurrent/ConcurrentMap;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentMap<Ljava/lang/String;Ljava/nio/charset/Charset;>;
public static final java.nio.charset.Charset ASCII_CHARSET;
descriptor: Ljava/nio/charset/Charset;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final java.nio.charset.Charset UTF8_CHARSET;
descriptor: Ljava/nio/charset/Charset;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final java.nio.charset.Charset DEFAULT_CHARSET;
descriptor: Ljava/nio/charset/Charset;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public static final int CODECS_CACHE_SIZE;
descriptor: I
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: 4
private static final org.glassfish.grizzly.utils.Charsets$CharsetCodecResolver DECODER_RESOLVER;
descriptor: Lorg/glassfish/grizzly/utils/Charsets$CharsetCodecResolver;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.glassfish.grizzly.utils.Charsets$CharsetCodecResolver ENCODER_RESOLVER;
descriptor: Lorg/glassfish/grizzly/utils/Charsets$CharsetCodecResolver;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.glassfish.grizzly.ThreadCache$CachedTypeIndex<org.glassfish.grizzly.utils.Charsets$CodecsCache> CODECS_CACHE;
descriptor: Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex<Lorg/glassfish/grizzly/utils/Charsets$CodecsCache;>;
private static volatile boolean areCharsetsPreloaded;
descriptor: Z
flags: (0x004a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new java.lang.StringBuilder
dup
ldc Lorg/glassfish/grizzly/utils/Charsets;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".preloadAllCharsets"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic java.lang.Boolean.getBoolean:(Ljava/lang/String;)Z
ifeq 2
1: invokestatic org.glassfish.grizzly.utils.Charsets.preloadAllCharsets:()V
2: StackMap locals:
StackMap stack:
invokestatic java.nio.charset.Charset.defaultCharset:()Ljava/nio/charset/Charset;
invokevirtual java.nio.charset.Charset.name:()Ljava/lang/String;
3: putstatic org.glassfish.grizzly.utils.Charsets.DEFAULT_CHARACTER_ENCODING:Ljava/lang/String;
4: new java.util.concurrent.ConcurrentHashMap
dup
bipush 8
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:(I)V
5: putstatic org.glassfish.grizzly.utils.Charsets.charsetAliasMap:Ljava/util/concurrent/ConcurrentMap;
6: ldc "ASCII"
invokestatic org.glassfish.grizzly.utils.Charsets.lookupCharset:(Ljava/lang/String;)Ljava/nio/charset/Charset;
putstatic org.glassfish.grizzly.utils.Charsets.ASCII_CHARSET:Ljava/nio/charset/Charset;
7: ldc "UTF-8"
invokestatic org.glassfish.grizzly.utils.Charsets.lookupCharset:(Ljava/lang/String;)Ljava/nio/charset/Charset;
putstatic org.glassfish.grizzly.utils.Charsets.UTF8_CHARSET:Ljava/nio/charset/Charset;
8: invokestatic java.nio.charset.Charset.defaultCharset:()Ljava/nio/charset/Charset;
putstatic org.glassfish.grizzly.utils.Charsets.DEFAULT_CHARSET:Ljava/nio/charset/Charset;
9: new org.glassfish.grizzly.utils.Charsets$DecoderResolver
dup
invokespecial org.glassfish.grizzly.utils.Charsets$DecoderResolver.<init>:()V
10: putstatic org.glassfish.grizzly.utils.Charsets.DECODER_RESOLVER:Lorg/glassfish/grizzly/utils/Charsets$CharsetCodecResolver;
11: new org.glassfish.grizzly.utils.Charsets$EncoderResolver
dup
invokespecial org.glassfish.grizzly.utils.Charsets$EncoderResolver.<init>:()V
12: putstatic org.glassfish.grizzly.utils.Charsets.ENCODER_RESOLVER:Lorg/glassfish/grizzly/utils/Charsets$CharsetCodecResolver;
13: ldc Lorg/glassfish/grizzly/utils/Charsets$CodecsCache;
iconst_1
invokestatic org.glassfish.grizzly.ThreadCache.obtainIndex:(Ljava/lang/Class;I)Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;
14: putstatic org.glassfish.grizzly.utils.Charsets.CODECS_CACHE:Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;
15: 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 Lorg/glassfish/grizzly/utils/Charsets;
public static java.nio.charset.Charset lookupCharset(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/nio/charset/Charset;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=5, args_size=1
start local 0 0: aload 0
getstatic java.util.Locale.US:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
astore 1
start local 1 1: getstatic org.glassfish.grizzly.utils.Charsets.charsetAliasMap:Ljava/util/concurrent/ConcurrentMap;
aload 1
invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.nio.charset.Charset
astore 2
start local 2 2: aload 2
ifnonnull 11
3: getstatic org.glassfish.grizzly.utils.Charsets.areCharsetsPreloaded:Z
ifeq 5
4: new java.nio.charset.UnsupportedCharsetException
dup
aload 0
invokespecial java.nio.charset.UnsupportedCharsetException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: java.lang.String java.nio.charset.Charset
StackMap stack:
aload 1
invokestatic java.nio.charset.Charset.forName:(Ljava/lang/String;)Ljava/nio/charset/Charset;
astore 3
start local 3 6: getstatic org.glassfish.grizzly.utils.Charsets.charsetAliasMap:Ljava/util/concurrent/ConcurrentMap;
aload 1
aload 3
invokeinterface java.util.concurrent.ConcurrentMap.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.nio.charset.Charset
7: astore 4
start local 4 8: aload 4
ifnonnull 9
aload 3
goto 10
StackMap locals: java.nio.charset.Charset java.nio.charset.Charset
StackMap stack:
9: aload 4
StackMap locals:
StackMap stack: java.nio.charset.Charset
10: astore 2
end local 4 end local 3 11: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 charsetName Ljava/lang/String;
1 12 1 charsetLowerCase Ljava/lang/String;
2 12 2 charset Ljava/nio/charset/Charset;
6 11 3 newCharset Ljava/nio/charset/Charset;
8 11 4 prevCharset Ljava/nio/charset/Charset;
MethodParameters:
Name Flags
charsetName final
public static void preloadAllCharsets();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=6, args_size=0
0: getstatic org.glassfish.grizzly.utils.Charsets.charsetAliasMap:Ljava/util/concurrent/ConcurrentMap;
dup
astore 0
monitorenter
1: invokestatic java.nio.charset.Charset.availableCharsets:()Ljava/util/SortedMap;
astore 1
start local 1 2: aload 1
invokeinterface java.util.Map.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 3
goto 11
StackMap locals: java.util.concurrent.ConcurrentMap java.util.Map top java.util.Iterator
StackMap stack:
3: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.nio.charset.Charset
astore 2
start local 2 4: getstatic org.glassfish.grizzly.utils.Charsets.charsetAliasMap:Ljava/util/concurrent/ConcurrentMap;
5: aload 2
invokevirtual java.nio.charset.Charset.name:()Ljava/lang/String;
getstatic java.util.Locale.US:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
aload 2
6: invokeinterface java.util.concurrent.ConcurrentMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
7: aload 2
invokevirtual java.nio.charset.Charset.aliases:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
goto 10
StackMap locals: java.util.concurrent.ConcurrentMap java.util.Map java.nio.charset.Charset java.util.Iterator top java.util.Iterator
StackMap stack:
8: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.String
astore 4
start local 4 9: getstatic org.glassfish.grizzly.utils.Charsets.charsetAliasMap:Ljava/util/concurrent/ConcurrentMap;
aload 4
getstatic java.util.Locale.US:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
aload 2
invokeinterface java.util.concurrent.ConcurrentMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 4 10: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
end local 2 11: StackMap locals: java.util.concurrent.ConcurrentMap java.util.Map top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
12: iconst_1
putstatic org.glassfish.grizzly.utils.Charsets.areCharsetsPreloaded:Z
end local 1 13: aload 0
monitorexit
14: goto 17
StackMap locals: java.util.concurrent.ConcurrentMap
StackMap stack: java.lang.Throwable
15: aload 0
monitorexit
16: athrow
17: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
2 13 1 charsetsMap Ljava/util/Map<Ljava/lang/String;Ljava/nio/charset/Charset;>;
4 11 2 charset Ljava/nio/charset/Charset;
9 10 4 alias Ljava/lang/String;
Exception table:
from to target type
1 14 15 any
15 16 15 any
public static void drainAllCharsets();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: getstatic org.glassfish.grizzly.utils.Charsets.charsetAliasMap:Ljava/util/concurrent/ConcurrentMap;
dup
astore 0
monitorenter
1: iconst_0
putstatic org.glassfish.grizzly.utils.Charsets.areCharsetsPreloaded:Z
2: getstatic org.glassfish.grizzly.utils.Charsets.charsetAliasMap:Ljava/util/concurrent/ConcurrentMap;
invokeinterface java.util.concurrent.ConcurrentMap.clear:()V
3: aload 0
monitorexit
4: goto 7
StackMap locals: java.util.concurrent.ConcurrentMap
StackMap stack: java.lang.Throwable
5: aload 0
monitorexit
6: athrow
7: StackMap locals:
StackMap stack:
return
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
1 4 5 any
5 6 5 any
public static java.nio.charset.CharsetDecoder getCharsetDecoder(java.nio.charset.Charset);
descriptor: (Ljava/nio/charset/Charset;)Ljava/nio/charset/CharsetDecoder;
flags: (0x0009) ACC_PUBLIC, 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 "Charset can not be null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
invokestatic org.glassfish.grizzly.utils.Charsets.obtainCodecsCache:()Lorg/glassfish/grizzly/utils/Charsets$CodecsCache;
aload 0
invokevirtual org.glassfish.grizzly.utils.Charsets$CodecsCache.getDecoder:(Ljava/nio/charset/Charset;)Ljava/nio/charset/CharsetDecoder;
astore 1
start local 1 3: aload 1
invokevirtual java.nio.charset.CharsetDecoder.reset:()Ljava/nio/charset/CharsetDecoder;
pop
4: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 charset Ljava/nio/charset/Charset;
3 5 1 decoder Ljava/nio/charset/CharsetDecoder;
MethodParameters:
Name Flags
charset final
public static java.nio.charset.CharsetEncoder getCharsetEncoder(java.nio.charset.Charset);
descriptor: (Ljava/nio/charset/Charset;)Ljava/nio/charset/CharsetEncoder;
flags: (0x0009) ACC_PUBLIC, 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 "Charset can not be null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
invokestatic org.glassfish.grizzly.utils.Charsets.obtainCodecsCache:()Lorg/glassfish/grizzly/utils/Charsets$CodecsCache;
aload 0
invokevirtual org.glassfish.grizzly.utils.Charsets$CodecsCache.getEncoder:(Ljava/nio/charset/Charset;)Ljava/nio/charset/CharsetEncoder;
astore 1
start local 1 3: aload 1
invokevirtual java.nio.charset.CharsetEncoder.reset:()Ljava/nio/charset/CharsetEncoder;
pop
4: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 charset Ljava/nio/charset/Charset;
3 5 1 encoder Ljava/nio/charset/CharsetEncoder;
MethodParameters:
Name Flags
charset final
private static org.glassfish.grizzly.utils.Charsets$CodecsCache obtainCodecsCache();
descriptor: ()Lorg/glassfish/grizzly/utils/Charsets$CodecsCache;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=1, args_size=0
0: getstatic org.glassfish.grizzly.utils.Charsets.CODECS_CACHE:Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;
invokestatic org.glassfish.grizzly.ThreadCache.getFromCache:(Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;)Ljava/lang/Object;
checkcast org.glassfish.grizzly.utils.Charsets$CodecsCache
astore 0
start local 0 1: aload 0
ifnonnull 4
2: new org.glassfish.grizzly.utils.Charsets$CodecsCache
dup
invokespecial org.glassfish.grizzly.utils.Charsets$CodecsCache.<init>:()V
astore 0
3: getstatic org.glassfish.grizzly.utils.Charsets.CODECS_CACHE:Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;
aload 0
invokestatic org.glassfish.grizzly.ThreadCache.putToCache:(Lorg/glassfish/grizzly/ThreadCache$CachedTypeIndex;Ljava/lang/Object;)Z
pop
4: StackMap locals: org.glassfish.grizzly.utils.Charsets$CodecsCache
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 5 0 cache Lorg/glassfish/grizzly/utils/Charsets$CodecsCache;
}
SourceFile: "Charsets.java"
NestMembers:
org.glassfish.grizzly.utils.Charsets$CharsetCodecResolver org.glassfish.grizzly.utils.Charsets$CodecsCache org.glassfish.grizzly.utils.Charsets$DecoderResolver org.glassfish.grizzly.utils.Charsets$EncoderResolver
InnerClasses:
public final CachedTypeIndex = org.glassfish.grizzly.ThreadCache$CachedTypeIndex of org.glassfish.grizzly.ThreadCache
private abstract CharsetCodecResolver = org.glassfish.grizzly.utils.Charsets$CharsetCodecResolver of org.glassfish.grizzly.utils.Charsets
private final CodecsCache = org.glassfish.grizzly.utils.Charsets$CodecsCache of org.glassfish.grizzly.utils.Charsets
private final DecoderResolver = org.glassfish.grizzly.utils.Charsets$DecoderResolver of org.glassfish.grizzly.utils.Charsets
private final EncoderResolver = org.glassfish.grizzly.utils.Charsets$EncoderResolver of org.glassfish.grizzly.utils.Charsets