final class org.glassfish.grizzly.utils.Charsets$CodecsCache
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.glassfish.grizzly.utils.Charsets$CodecsCache
super_class: java.lang.Object
{
private final java.lang.Object[] decoders;
descriptor: [Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.Object[] encoders;
descriptor: [Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
iconst_4
anewarray java.lang.Object
putfield org.glassfish.grizzly.utils.Charsets$CodecsCache.decoders:[Ljava/lang/Object;
2: aload 0
iconst_4
anewarray java.lang.Object
putfield org.glassfish.grizzly.utils.Charsets$CodecsCache.encoders:[Ljava/lang/Object;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/glassfish/grizzly/utils/Charsets$CodecsCache;
public java.nio.charset.CharsetDecoder getDecoder(java.nio.charset.Charset);
descriptor: (Ljava/nio/charset/Charset;)Ljava/nio/charset/CharsetDecoder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.utils.Charsets$CodecsCache.decoders:[Ljava/lang/Object;
aload 1
getstatic org.glassfish.grizzly.utils.Charsets.DECODER_RESOLVER:Lorg/glassfish/grizzly/utils/Charsets$CharsetCodecResolver;
invokestatic org.glassfish.grizzly.utils.Charsets$CodecsCache.obtainElementByCharset:([Ljava/lang/Object;Ljava/nio/charset/Charset;Lorg/glassfish/grizzly/utils/Charsets$CharsetCodecResolver;)Ljava/lang/Object;
checkcast java.nio.charset.CharsetDecoder
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/utils/Charsets$CodecsCache;
0 1 1 charset Ljava/nio/charset/Charset;
MethodParameters:
Name Flags
charset final
public java.nio.charset.CharsetEncoder getEncoder(java.nio.charset.Charset);
descriptor: (Ljava/nio/charset/Charset;)Ljava/nio/charset/CharsetEncoder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.glassfish.grizzly.utils.Charsets$CodecsCache.encoders:[Ljava/lang/Object;
aload 1
getstatic org.glassfish.grizzly.utils.Charsets.ENCODER_RESOLVER:Lorg/glassfish/grizzly/utils/Charsets$CharsetCodecResolver;
invokestatic org.glassfish.grizzly.utils.Charsets$CodecsCache.obtainElementByCharset:([Ljava/lang/Object;Ljava/nio/charset/Charset;Lorg/glassfish/grizzly/utils/Charsets$CharsetCodecResolver;)Ljava/lang/Object;
checkcast java.nio.charset.CharsetEncoder
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/utils/Charsets$CodecsCache;
0 1 1 charset Ljava/nio/charset/Charset;
MethodParameters:
Name Flags
charset final
private static java.lang.Object obtainElementByCharset(java.lang.Object[], java.nio.charset.Charset, org.glassfish.grizzly.utils.Charsets$CharsetCodecResolver);
descriptor: ([Ljava/lang/Object;Ljava/nio/charset/Charset;Lorg/glassfish/grizzly/utils/Charsets$CharsetCodecResolver;)Ljava/lang/Object;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: iconst_0
istore 3
start local 3 1: goto 10
2: StackMap locals: int
StackMap stack:
aload 0
iload 3
aaload
astore 4
start local 4 3: aload 4
ifnonnull 6
4: iinc 3 1
5: goto 11
6: StackMap locals: java.lang.Object
StackMap stack:
aload 1
aload 2
aload 4
invokeinterface org.glassfish.grizzly.utils.Charsets$CharsetCodecResolver.charset:(Ljava/lang/Object;)Ljava/nio/charset/Charset;
invokevirtual java.nio.charset.Charset.equals:(Ljava/lang/Object;)Z
ifeq 9
7: aload 0
iload 3
aload 4
invokestatic org.glassfish.grizzly.utils.Charsets$CodecsCache.makeFirst:([Ljava/lang/Object;ILjava/lang/Object;)V
8: aload 4
areturn
end local 4 9: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
10: iload 3
aload 0
arraylength
if_icmplt 2
11: StackMap locals:
StackMap stack:
aload 2
aload 1
invokeinterface org.glassfish.grizzly.utils.Charsets$CharsetCodecResolver.newElement:(Ljava/nio/charset/Charset;)Ljava/lang/Object;
astore 4
start local 4 12: aload 0
iload 3
iconst_1
isub
aload 4
invokestatic org.glassfish.grizzly.utils.Charsets$CodecsCache.makeFirst:([Ljava/lang/Object;ILjava/lang/Object;)V
13: 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 14 0 array [Ljava/lang/Object;
0 14 1 charset Ljava/nio/charset/Charset;
0 14 2 resolver Lorg/glassfish/grizzly/utils/Charsets$CharsetCodecResolver;
1 14 3 i I
3 9 4 currentElement Ljava/lang/Object;
12 14 4 newElement Ljava/lang/Object;
MethodParameters:
Name Flags
array final
charset final
resolver final
private static void makeFirst(java.lang.Object[], int, java.lang.Object);
descriptor: ([Ljava/lang/Object;ILjava/lang/Object;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
iconst_0
aload 0
iconst_1
iload 1
iconst_1
isub
iconst_1
iadd
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
1: aload 0
iconst_0
aload 2
aastore
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 array [Ljava/lang/Object;
0 3 1 offs I
0 3 2 element Ljava/lang/Object;
MethodParameters:
Name Flags
array final
offs final
element final
}
SourceFile: "Charsets.java"
NestHost: org.glassfish.grizzly.utils.Charsets
InnerClasses:
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