public class org.glassfish.grizzly.http.util.C2BConverter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.glassfish.grizzly.http.util.C2BConverter
super_class: java.lang.Object
{
private static final java.util.logging.Logger logger;
descriptor: Ljava/util/logging/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
protected org.glassfish.grizzly.http.util.ByteChunk bb;
descriptor: Lorg/glassfish/grizzly/http/util/ByteChunk;
flags: (0x0004) ACC_PROTECTED
protected final java.lang.String enc;
descriptor: Ljava/lang/String;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
protected final java.nio.charset.CharsetEncoder encoder;
descriptor: Ljava/nio/charset/CharsetEncoder;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/glassfish/grizzly/http/util/C2BConverter;
invokestatic org.glassfish.grizzly.Grizzly.logger:(Ljava/lang/Class;)Ljava/util/logging/Logger;
putstatic org.glassfish.grizzly.http.util.C2BConverter.logger:Ljava/util/logging/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.glassfish.grizzly.http.util.ByteChunk, java.lang.String);
descriptor: (Lorg/glassfish/grizzly/http/util/ByteChunk;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.glassfish.grizzly.http.util.C2BConverter.bb:Lorg/glassfish/grizzly/http/util/ByteChunk;
2: aload 0
aload 2
putfield org.glassfish.grizzly.http.util.C2BConverter.enc:Ljava/lang/String;
3: aload 0
aload 0
getfield org.glassfish.grizzly.http.util.C2BConverter.enc:Ljava/lang/String;
invokestatic org.glassfish.grizzly.utils.Charsets.lookupCharset:(Ljava/lang/String;)Ljava/nio/charset/Charset;
invokevirtual java.nio.charset.Charset.newEncoder:()Ljava/nio/charset/CharsetEncoder;
getstatic java.nio.charset.CodingErrorAction.REPLACE:Ljava/nio/charset/CodingErrorAction;
invokevirtual java.nio.charset.CharsetEncoder.onMalformedInput:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetEncoder;
getstatic java.nio.charset.CodingErrorAction.REPLACE:Ljava/nio/charset/CodingErrorAction;
invokevirtual java.nio.charset.CharsetEncoder.onUnmappableCharacter:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetEncoder;
putfield org.glassfish.grizzly.http.util.C2BConverter.encoder:Ljava/nio/charset/CharsetEncoder;
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/glassfish/grizzly/http/util/C2BConverter;
0 5 1 output Lorg/glassfish/grizzly/http/util/ByteChunk;
0 5 2 encoding Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
output
encoding
public void <init>(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new org.glassfish.grizzly.http.util.ByteChunk
dup
sipush 1024
invokespecial org.glassfish.grizzly.http.util.ByteChunk.<init>:(I)V
aload 1
invokespecial org.glassfish.grizzly.http.util.C2BConverter.<init>:(Lorg/glassfish/grizzly/http/util/ByteChunk;Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/http/util/C2BConverter;
0 2 1 encoding Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
encoding
public static org.glassfish.grizzly.http.util.C2BConverter getInstance(org.glassfish.grizzly.http.util.ByteChunk, java.lang.String);
descriptor: (Lorg/glassfish/grizzly/http/util/ByteChunk;Ljava/lang/String;)Lorg/glassfish/grizzly/http/util/C2BConverter;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new org.glassfish.grizzly.http.util.C2BConverter
dup
aload 0
aload 1
invokespecial org.glassfish.grizzly.http.util.C2BConverter.<init>:(Lorg/glassfish/grizzly/http/util/ByteChunk;Ljava/lang/String;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 output Lorg/glassfish/grizzly/http/util/ByteChunk;
0 1 1 encoding Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
output
encoding
public org.glassfish.grizzly.http.util.ByteChunk getByteChunk();
descriptor: ()Lorg/glassfish/grizzly/http/util/ByteChunk;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.http.util.C2BConverter.bb:Lorg/glassfish/grizzly/http/util/ByteChunk;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/http/util/C2BConverter;
public java.lang.String getEncoding();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.http.util.C2BConverter.enc:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/glassfish/grizzly/http/util/C2BConverter;
public void setByteChunk(org.glassfish.grizzly.http.util.ByteChunk);
descriptor: (Lorg/glassfish/grizzly/http/util/ByteChunk;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.glassfish.grizzly.http.util.C2BConverter.bb:Lorg/glassfish/grizzly/http/util/ByteChunk;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/http/util/C2BConverter;
0 2 1 bb Lorg/glassfish/grizzly/http/util/ByteChunk;
MethodParameters:
Name Flags
bb
public void recycle();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.http.util.C2BConverter.bb:Lorg/glassfish/grizzly/http/util/ByteChunk;
invokevirtual org.glassfish.grizzly.http.util.ByteChunk.recycle:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/http/util/C2BConverter;
public void convert(char[], int, int);
descriptor: ([CII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=9, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
iload 2
iload 3
invokestatic java.nio.CharBuffer.wrap:([CII)Ljava/nio/CharBuffer;
astore 4
start local 4 1: aload 0
getfield org.glassfish.grizzly.http.util.C2BConverter.bb:Lorg/glassfish/grizzly/http/util/ByteChunk;
invokevirtual org.glassfish.grizzly.http.util.ByteChunk.getBuffer:()[B
astore 5
start local 5 2: aload 0
getfield org.glassfish.grizzly.http.util.C2BConverter.bb:Lorg/glassfish/grizzly/http/util/ByteChunk;
invokevirtual org.glassfish.grizzly.http.util.ByteChunk.getEnd:()I
istore 6
start local 6 3: aload 5
iload 6
aload 5
arraylength
iload 6
isub
invokestatic java.nio.ByteBuffer.wrap:([BII)Ljava/nio/ByteBuffer;
astore 7
start local 7 4: aload 0
getfield org.glassfish.grizzly.http.util.C2BConverter.encoder:Ljava/nio/charset/CharsetEncoder;
aload 4
aload 7
iconst_1
invokevirtual java.nio.charset.CharsetEncoder.encode:(Ljava/nio/CharBuffer;Ljava/nio/ByteBuffer;Z)Ljava/nio/charset/CoderResult;
astore 8
start local 8 5: aload 0
getfield org.glassfish.grizzly.http.util.C2BConverter.bb:Lorg/glassfish/grizzly/http/util/ByteChunk;
aload 7
invokevirtual java.nio.ByteBuffer.position:()I
invokevirtual org.glassfish.grizzly.http.util.ByteChunk.setEnd:(I)V
6: goto 14
7: StackMap locals: org.glassfish.grizzly.http.util.C2BConverter char[] int int java.nio.CharBuffer byte[] int java.nio.ByteBuffer java.nio.charset.CoderResult
StackMap stack:
aload 0
getfield org.glassfish.grizzly.http.util.C2BConverter.bb:Lorg/glassfish/grizzly/http/util/ByteChunk;
invokevirtual org.glassfish.grizzly.http.util.ByteChunk.canGrow:()Z
ifne 9
8: aload 0
getfield org.glassfish.grizzly.http.util.C2BConverter.bb:Lorg/glassfish/grizzly/http/util/ByteChunk;
invokevirtual org.glassfish.grizzly.http.util.ByteChunk.flushBuffer:()V
9: StackMap locals:
StackMap stack:
aload 0
getfield org.glassfish.grizzly.http.util.C2BConverter.bb:Lorg/glassfish/grizzly/http/util/ByteChunk;
invokevirtual org.glassfish.grizzly.http.util.ByteChunk.getEnd:()I
istore 6
10: aload 0
getfield org.glassfish.grizzly.http.util.C2BConverter.bb:Lorg/glassfish/grizzly/http/util/ByteChunk;
invokevirtual org.glassfish.grizzly.http.util.ByteChunk.getBuffer:()[B
astore 5
11: aload 5
iload 6
aload 5
arraylength
iload 6
isub
invokestatic java.nio.ByteBuffer.wrap:([BII)Ljava/nio/ByteBuffer;
astore 7
12: aload 0
getfield org.glassfish.grizzly.http.util.C2BConverter.encoder:Ljava/nio/charset/CharsetEncoder;
aload 4
aload 7
iconst_1
invokevirtual java.nio.charset.CharsetEncoder.encode:(Ljava/nio/CharBuffer;Ljava/nio/ByteBuffer;Z)Ljava/nio/charset/CoderResult;
astore 8
13: aload 0
getfield org.glassfish.grizzly.http.util.C2BConverter.bb:Lorg/glassfish/grizzly/http/util/ByteChunk;
aload 7
invokevirtual java.nio.ByteBuffer.position:()I
invokevirtual org.glassfish.grizzly.http.util.ByteChunk.setEnd:(I)V
14: StackMap locals:
StackMap stack:
aload 8
getstatic java.nio.charset.CoderResult.OVERFLOW:Ljava/nio/charset/CoderResult;
if_acmpeq 7
15: aload 8
getstatic java.nio.charset.CoderResult.UNDERFLOW:Ljava/nio/charset/CoderResult;
if_acmpeq 17
16: new java.io.IOException
dup
ldc "Encoding error"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
17: StackMap locals:
StackMap stack:
return
end local 8 end local 7 end local 6 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/glassfish/grizzly/http/util/C2BConverter;
0 18 1 c [C
0 18 2 off I
0 18 3 len I
1 18 4 cb Ljava/nio/CharBuffer;
2 18 5 barr [B
3 18 6 boff I
4 18 7 tmp Ljava/nio/ByteBuffer;
5 18 8 cr Ljava/nio/charset/CoderResult;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
c
off
len
public void convert(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
aload 1
invokevirtual java.lang.String.length:()I
invokevirtual org.glassfish.grizzly.http.util.C2BConverter.convert:(Ljava/lang/String;II)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/http/util/C2BConverter;
0 2 1 s Ljava/lang/String;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
s
public void convert(java.lang.String, int, int);
descriptor: (Ljava/lang/String;II)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
invokevirtual java.lang.String.toCharArray:()[C
iload 2
iload 3
invokevirtual org.glassfish.grizzly.http.util.C2BConverter.convert:([CII)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/http/util/C2BConverter;
0 2 1 s Ljava/lang/String;
0 2 2 off I
0 2 3 len I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
s
off
len
public void convert(char);
descriptor: (C)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: iconst_1
newarray 5
astore 2
start local 2 1: aload 2
iconst_0
iload 1
castore
2: aload 0
aload 2
iconst_0
iconst_1
invokevirtual org.glassfish.grizzly.http.util.C2BConverter.convert:([CII)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/glassfish/grizzly/http/util/C2BConverter;
0 4 1 c C
1 4 2 tmp [C
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
c
public void convert(org.glassfish.grizzly.http.util.MessageBytes);
descriptor: (Lorg/glassfish/grizzly/http/util/MessageBytes;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.glassfish.grizzly.http.util.MessageBytes.getType:()I
istore 2
start local 2 1: iload 2
iconst_2
if_icmpne 3
2: return
3: StackMap locals: int
StackMap stack:
aload 0
getfield org.glassfish.grizzly.http.util.C2BConverter.bb:Lorg/glassfish/grizzly/http/util/ByteChunk;
astore 3
start local 3 4: aload 0
aload 1
invokevirtual org.glassfish.grizzly.http.util.MessageBytes.getByteChunk:()Lorg/glassfish/grizzly/http/util/ByteChunk;
invokevirtual org.glassfish.grizzly.http.util.C2BConverter.setByteChunk:(Lorg/glassfish/grizzly/http/util/ByteChunk;)V
5: aload 0
getfield org.glassfish.grizzly.http.util.C2BConverter.bb:Lorg/glassfish/grizzly/http/util/ByteChunk;
invokevirtual org.glassfish.grizzly.http.util.ByteChunk.recycle:()V
6: aload 0
getfield org.glassfish.grizzly.http.util.C2BConverter.bb:Lorg/glassfish/grizzly/http/util/ByteChunk;
bipush 32
iconst_m1
invokevirtual org.glassfish.grizzly.http.util.ByteChunk.allocate:(II)V
7: iload 2
iconst_1
if_icmpne 10
8: aload 0
aload 1
invokevirtual org.glassfish.grizzly.http.util.MessageBytes.getString:()Ljava/lang/String;
invokevirtual org.glassfish.grizzly.http.util.C2BConverter.convert:(Ljava/lang/String;)V
9: goto 16
StackMap locals: org.glassfish.grizzly.http.util.ByteChunk
StackMap stack:
10: iload 2
iconst_3
if_icmpne 14
11: aload 1
invokevirtual org.glassfish.grizzly.http.util.MessageBytes.getCharChunk:()Lorg/glassfish/grizzly/http/util/CharChunk;
astore 4
start local 4 12: aload 0
aload 4
invokevirtual org.glassfish.grizzly.http.util.CharChunk.getBuffer:()[C
aload 4
invokevirtual org.glassfish.grizzly.http.util.CharChunk.getStart:()I
aload 4
invokevirtual org.glassfish.grizzly.http.util.CharChunk.getLength:()I
invokevirtual org.glassfish.grizzly.http.util.C2BConverter.convert:([CII)V
end local 4 13: goto 16
14: StackMap locals:
StackMap stack:
getstatic org.glassfish.grizzly.http.util.C2BConverter.logger:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
invokevirtual java.util.logging.Logger.isLoggable:(Ljava/util/logging/Level;)Z
ifeq 16
15: getstatic org.glassfish.grizzly.http.util.C2BConverter.logger:Ljava/util/logging/Logger;
getstatic java.util.logging.Level.FINE:Ljava/util/logging/Level;
ldc "XXX unknowon type {0}"
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual java.util.logging.Logger.log:(Ljava/util/logging/Level;Ljava/lang/String;Ljava/lang/Object;)V
16: StackMap locals:
StackMap stack:
aload 0
aload 3
invokevirtual org.glassfish.grizzly.http.util.C2BConverter.setByteChunk:(Lorg/glassfish/grizzly/http/util/ByteChunk;)V
17: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/glassfish/grizzly/http/util/C2BConverter;
0 18 1 mb Lorg/glassfish/grizzly/http/util/MessageBytes;
1 18 2 type I
4 18 3 orig Lorg/glassfish/grizzly/http/util/ByteChunk;
12 13 4 charC Lorg/glassfish/grizzly/http/util/CharChunk;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
mb
public void flushBuffer();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.glassfish.grizzly.http.util.C2BConverter.bb:Lorg/glassfish/grizzly/http/util/ByteChunk;
invokevirtual org.glassfish.grizzly.http.util.ByteChunk.flushBuffer:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/glassfish/grizzly/http/util/C2BConverter;
Exceptions:
throws java.io.IOException
}
SourceFile: "C2BConverter.java"