public class org.apache.tomcat.util.buf.B2CConverter
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.tomcat.util.buf.B2CConverter
super_class: java.lang.Object
{
private static final org.apache.tomcat.util.res.StringManager sm;
descriptor: Lorg/apache/tomcat/util/res/StringManager;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.apache.tomcat.util.buf.CharsetCache charsetCache;
descriptor: Lorg/apache/tomcat/util/buf/CharsetCache;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
protected static final int LEFTOVER_SIZE;
descriptor: I
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
ConstantValue: 9
private final java.nio.charset.CharsetDecoder decoder;
descriptor: Ljava/nio/charset/CharsetDecoder;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.nio.ByteBuffer bb;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0002) ACC_PRIVATE
private java.nio.CharBuffer cb;
descriptor: Ljava/nio/CharBuffer;
flags: (0x0002) ACC_PRIVATE
private final java.nio.ByteBuffer leftovers;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Lorg/apache/tomcat/util/buf/B2CConverter;
invokestatic org.apache.tomcat.util.res.StringManager.getManager:(Ljava/lang/Class;)Lorg/apache/tomcat/util/res/StringManager;
putstatic org.apache.tomcat.util.buf.B2CConverter.sm:Lorg/apache/tomcat/util/res/StringManager;
1: new org.apache.tomcat.util.buf.CharsetCache
dup
invokespecial org.apache.tomcat.util.buf.CharsetCache.<init>:()V
putstatic org.apache.tomcat.util.buf.B2CConverter.charsetCache:Lorg/apache/tomcat/util/buf/CharsetCache;
2: return
LocalVariableTable:
Start End Slot Name Signature
public static java.nio.charset.Charset getCharset(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/nio/charset/Charset;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=8, locals=3, args_size=1
start local 0 0: aload 0
getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
invokevirtual java.lang.String.toLowerCase:(Ljava/util/Locale;)Ljava/lang/String;
astore 1
start local 1 1: getstatic org.apache.tomcat.util.buf.B2CConverter.charsetCache:Lorg/apache/tomcat/util/buf/CharsetCache;
aload 1
invokevirtual org.apache.tomcat.util.buf.CharsetCache.getCharset:(Ljava/lang/String;)Ljava/nio/charset/Charset;
astore 2
start local 2 2: aload 2
ifnonnull 6
3: new java.io.UnsupportedEncodingException
dup
4: getstatic org.apache.tomcat.util.buf.B2CConverter.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "b2cConverter.unknownEncoding"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 1
aastore
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
5: invokespecial java.io.UnsupportedEncodingException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: java.lang.String java.nio.charset.Charset
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 enc Ljava/lang/String;
1 7 1 lowerCaseEnc Ljava/lang/String;
2 7 2 charset Ljava/nio/charset/Charset;
Exceptions:
throws java.io.UnsupportedEncodingException
MethodParameters:
Name Flags
enc
public void <init>(java.nio.charset.Charset);
descriptor: (Ljava/nio/charset/Charset;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
invokespecial org.apache.tomcat.util.buf.B2CConverter.<init>:(Ljava/nio/charset/Charset;Z)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/tomcat/util/buf/B2CConverter;
0 2 1 charset Ljava/nio/charset/Charset;
MethodParameters:
Name Flags
charset
public void <init>(java.nio.charset.Charset, boolean);
descriptor: (Ljava/nio/charset/Charset;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, 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 org.apache.tomcat.util.buf.B2CConverter.bb:Ljava/nio/ByteBuffer;
2: aload 0
aconst_null
putfield org.apache.tomcat.util.buf.B2CConverter.cb:Ljava/nio/CharBuffer;
3: bipush 9
newarray 8
astore 3
start local 3 4: aload 0
aload 3
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
putfield org.apache.tomcat.util.buf.B2CConverter.leftovers:Ljava/nio/ByteBuffer;
5: iload 2
ifeq 8
6: getstatic java.nio.charset.CodingErrorAction.REPLACE:Ljava/nio/charset/CodingErrorAction;
astore 4
start local 4 7: goto 9
end local 4 8: StackMap locals: org.apache.tomcat.util.buf.B2CConverter java.nio.charset.Charset int byte[]
StackMap stack:
getstatic java.nio.charset.CodingErrorAction.REPORT:Ljava/nio/charset/CodingErrorAction;
astore 4
start local 4 9: StackMap locals: java.nio.charset.CodingErrorAction
StackMap stack:
aload 1
getstatic java.nio.charset.StandardCharsets.UTF_8:Ljava/nio/charset/Charset;
invokevirtual java.nio.charset.Charset.equals:(Ljava/lang/Object;)Z
ifeq 12
10: aload 0
new org.apache.tomcat.util.buf.Utf8Decoder
dup
invokespecial org.apache.tomcat.util.buf.Utf8Decoder.<init>:()V
putfield org.apache.tomcat.util.buf.B2CConverter.decoder:Ljava/nio/charset/CharsetDecoder;
11: goto 13
12: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual java.nio.charset.Charset.newDecoder:()Ljava/nio/charset/CharsetDecoder;
putfield org.apache.tomcat.util.buf.B2CConverter.decoder:Ljava/nio/charset/CharsetDecoder;
13: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.decoder:Ljava/nio/charset/CharsetDecoder;
aload 4
invokevirtual java.nio.charset.CharsetDecoder.onMalformedInput:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetDecoder;
pop
14: aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.decoder:Ljava/nio/charset/CharsetDecoder;
aload 4
invokevirtual java.nio.charset.CharsetDecoder.onUnmappableCharacter:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetDecoder;
pop
15: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/apache/tomcat/util/buf/B2CConverter;
0 16 1 charset Ljava/nio/charset/Charset;
0 16 2 replaceOnError Z
4 16 3 left [B
7 8 4 action Ljava/nio/charset/CodingErrorAction;
9 16 4 action Ljava/nio/charset/CodingErrorAction;
MethodParameters:
Name Flags
charset
replaceOnError
public void recycle();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.decoder:Ljava/nio/charset/CharsetDecoder;
invokevirtual java.nio.charset.CharsetDecoder.reset:()Ljava/nio/charset/CharsetDecoder;
pop
1: aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.leftovers:Ljava/nio/ByteBuffer;
iconst_0
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/tomcat/util/buf/B2CConverter;
public void convert(org.apache.tomcat.util.buf.ByteChunk, org.apache.tomcat.util.buf.CharChunk, boolean);
descriptor: (Lorg/apache/tomcat/util/buf/ByteChunk;Lorg/apache/tomcat/util/buf/CharChunk;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.bb:Ljava/nio/ByteBuffer;
ifnull 1
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.bb:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.array:()[B
aload 1
invokevirtual org.apache.tomcat.util.buf.ByteChunk.getBuffer:()[B
if_acmpeq 3
1: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual org.apache.tomcat.util.buf.ByteChunk.getBuffer:()[B
aload 1
invokevirtual org.apache.tomcat.util.buf.ByteChunk.getStart:()I
aload 1
invokevirtual org.apache.tomcat.util.buf.ByteChunk.getLength:()I
invokestatic java.nio.ByteBuffer.wrap:([BII)Ljava/nio/ByteBuffer;
putfield org.apache.tomcat.util.buf.B2CConverter.bb:Ljava/nio/ByteBuffer;
2: goto 5
3: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.bb:Ljava/nio/ByteBuffer;
aload 1
invokevirtual org.apache.tomcat.util.buf.ByteChunk.getEnd:()I
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/Buffer;
pop
4: aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.bb:Ljava/nio/ByteBuffer;
aload 1
invokevirtual org.apache.tomcat.util.buf.ByteChunk.getStart:()I
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
5: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.cb:Ljava/nio/CharBuffer;
ifnull 6
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.cb:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.array:()[C
aload 2
invokevirtual org.apache.tomcat.util.buf.CharChunk.getBuffer:()[C
if_acmpeq 10
6: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual org.apache.tomcat.util.buf.CharChunk.getBuffer:()[C
aload 2
invokevirtual org.apache.tomcat.util.buf.CharChunk.getEnd:()I
7: aload 2
invokevirtual org.apache.tomcat.util.buf.CharChunk.getBuffer:()[C
arraylength
aload 2
invokevirtual org.apache.tomcat.util.buf.CharChunk.getEnd:()I
isub
8: invokestatic java.nio.CharBuffer.wrap:([CII)Ljava/nio/CharBuffer;
putfield org.apache.tomcat.util.buf.B2CConverter.cb:Ljava/nio/CharBuffer;
9: goto 12
10: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.cb:Ljava/nio/CharBuffer;
aload 2
invokevirtual org.apache.tomcat.util.buf.CharChunk.getBuffer:()[C
arraylength
invokevirtual java.nio.CharBuffer.limit:(I)Ljava/nio/Buffer;
pop
11: aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.cb:Ljava/nio/CharBuffer;
aload 2
invokevirtual org.apache.tomcat.util.buf.CharChunk.getEnd:()I
invokevirtual java.nio.CharBuffer.position:(I)Ljava/nio/Buffer;
pop
12: StackMap locals:
StackMap stack:
aconst_null
astore 4
start local 4 13: aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.leftovers:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.position:()I
ifle 25
14: aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.cb:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.position:()I
istore 5
start local 5 15: StackMap locals: java.nio.charset.CoderResult int
StackMap stack:
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.leftovers:Ljava/nio/ByteBuffer;
aload 1
invokevirtual org.apache.tomcat.util.buf.ByteChunk.subtractB:()B
invokevirtual java.nio.ByteBuffer.put:(B)Ljava/nio/ByteBuffer;
pop
16: aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.leftovers:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/Buffer;
pop
17: aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.decoder:Ljava/nio/charset/CharsetDecoder;
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.leftovers:Ljava/nio/ByteBuffer;
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.cb:Ljava/nio/CharBuffer;
iload 3
invokevirtual java.nio.charset.CharsetDecoder.decode:(Ljava/nio/ByteBuffer;Ljava/nio/CharBuffer;Z)Ljava/nio/charset/CoderResult;
astore 4
18: aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.leftovers:Ljava/nio/ByteBuffer;
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.leftovers:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.limit:()I
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
19: aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.leftovers:Ljava/nio/ByteBuffer;
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.leftovers:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.array:()[B
arraylength
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/Buffer;
pop
20: aload 4
invokevirtual java.nio.charset.CoderResult.isUnderflow:()Z
ifeq 21
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.cb:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.position:()I
iload 5
if_icmpeq 15
21: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.nio.charset.CoderResult.isError:()Z
ifne 22
aload 4
invokevirtual java.nio.charset.CoderResult.isMalformed:()Z
ifeq 23
22: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.nio.charset.CoderResult.throwException:()V
23: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.bb:Ljava/nio/ByteBuffer;
aload 1
invokevirtual org.apache.tomcat.util.buf.ByteChunk.getStart:()I
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
24: aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.leftovers:Ljava/nio/ByteBuffer;
iconst_0
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
end local 5 25: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.decoder:Ljava/nio/charset/CharsetDecoder;
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.bb:Ljava/nio/ByteBuffer;
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.cb:Ljava/nio/CharBuffer;
iload 3
invokevirtual java.nio.charset.CharsetDecoder.decode:(Ljava/nio/ByteBuffer;Ljava/nio/CharBuffer;Z)Ljava/nio/charset/CoderResult;
astore 4
26: aload 4
invokevirtual java.nio.charset.CoderResult.isError:()Z
ifne 27
aload 4
invokevirtual java.nio.charset.CoderResult.isMalformed:()Z
ifeq 29
27: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.nio.charset.CoderResult.throwException:()V
28: goto 40
StackMap locals:
StackMap stack:
29: aload 4
invokevirtual java.nio.charset.CoderResult.isOverflow:()Z
ifeq 33
30: aload 1
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.bb:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.position:()I
invokevirtual org.apache.tomcat.util.buf.ByteChunk.setOffset:(I)V
31: aload 2
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.cb:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.position:()I
invokevirtual org.apache.tomcat.util.buf.CharChunk.setEnd:(I)V
32: goto 40
StackMap locals:
StackMap stack:
33: aload 4
invokevirtual java.nio.charset.CoderResult.isUnderflow:()Z
ifeq 40
34: aload 1
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.bb:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.position:()I
invokevirtual org.apache.tomcat.util.buf.ByteChunk.setOffset:(I)V
35: aload 2
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.cb:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.position:()I
invokevirtual org.apache.tomcat.util.buf.CharChunk.setEnd:(I)V
36: aload 1
invokevirtual org.apache.tomcat.util.buf.ByteChunk.getLength:()I
ifle 40
37: aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.leftovers:Ljava/nio/ByteBuffer;
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.leftovers:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.array:()[B
arraylength
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/Buffer;
pop
38: aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.leftovers:Ljava/nio/ByteBuffer;
aload 1
invokevirtual org.apache.tomcat.util.buf.ByteChunk.getLength:()I
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
39: aload 1
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.leftovers:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.array:()[B
iconst_0
aload 1
invokevirtual org.apache.tomcat.util.buf.ByteChunk.getLength:()I
invokevirtual org.apache.tomcat.util.buf.ByteChunk.subtract:([BII)I
pop
40: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 41 0 this Lorg/apache/tomcat/util/buf/B2CConverter;
0 41 1 bc Lorg/apache/tomcat/util/buf/ByteChunk;
0 41 2 cc Lorg/apache/tomcat/util/buf/CharChunk;
0 41 3 endOfInput Z
13 41 4 result Ljava/nio/charset/CoderResult;
15 25 5 pos I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
bc
cc
endOfInput
public void convert(java.nio.ByteBuffer, java.nio.CharBuffer, org.apache.tomcat.util.buf.ByteChunk$ByteInputChannel, boolean);
descriptor: (Ljava/nio/ByteBuffer;Ljava/nio/CharBuffer;Lorg/apache/tomcat/util/buf/ByteChunk$ByteInputChannel;Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=9, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.bb:Ljava/nio/ByteBuffer;
ifnull 1
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.bb:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.array:()[B
aload 1
invokevirtual java.nio.ByteBuffer.array:()[B
if_acmpeq 3
1: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual java.nio.ByteBuffer.array:()[B
aload 1
invokevirtual java.nio.ByteBuffer.arrayOffset:()I
aload 1
invokevirtual java.nio.ByteBuffer.position:()I
iadd
aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
invokestatic java.nio.ByteBuffer.wrap:([BII)Ljava/nio/ByteBuffer;
putfield org.apache.tomcat.util.buf.B2CConverter.bb:Ljava/nio/ByteBuffer;
2: goto 5
3: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.bb:Ljava/nio/ByteBuffer;
aload 1
invokevirtual java.nio.ByteBuffer.limit:()I
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/Buffer;
pop
4: aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.bb:Ljava/nio/ByteBuffer;
aload 1
invokevirtual java.nio.ByteBuffer.position:()I
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
5: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.cb:Ljava/nio/CharBuffer;
ifnull 6
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.cb:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.array:()[C
aload 2
invokevirtual java.nio.CharBuffer.array:()[C
if_acmpeq 8
6: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual java.nio.CharBuffer.array:()[C
aload 2
invokevirtual java.nio.CharBuffer.limit:()I
aload 2
invokevirtual java.nio.CharBuffer.capacity:()I
aload 2
invokevirtual java.nio.CharBuffer.limit:()I
isub
invokestatic java.nio.CharBuffer.wrap:([CII)Ljava/nio/CharBuffer;
putfield org.apache.tomcat.util.buf.B2CConverter.cb:Ljava/nio/CharBuffer;
7: goto 10
8: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.cb:Ljava/nio/CharBuffer;
aload 2
invokevirtual java.nio.CharBuffer.capacity:()I
invokevirtual java.nio.CharBuffer.limit:(I)Ljava/nio/Buffer;
pop
9: aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.cb:Ljava/nio/CharBuffer;
aload 2
invokevirtual java.nio.CharBuffer.limit:()I
invokevirtual java.nio.CharBuffer.position:(I)Ljava/nio/Buffer;
pop
10: StackMap locals:
StackMap stack:
aconst_null
astore 5
start local 5 11: aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.leftovers:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.position:()I
ifle 30
12: aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.cb:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.position:()I
istore 6
start local 6 13: StackMap locals: java.nio.charset.CoderResult int
StackMap stack:
aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
ifne 19
14: aload 3
invokeinterface org.apache.tomcat.util.buf.ByteChunk$ByteInputChannel.realReadBytes:()I
istore 8
start local 8 15: iload 8
ifge 16
iconst_m1
goto 17
StackMap locals: org.apache.tomcat.util.buf.B2CConverter java.nio.ByteBuffer java.nio.CharBuffer org.apache.tomcat.util.buf.ByteChunk$ByteInputChannel int java.nio.charset.CoderResult int top int
StackMap stack:
16: aload 1
invokevirtual java.nio.ByteBuffer.get:()B
StackMap locals:
StackMap stack: int
17: istore 7
end local 8 start local 7 18: goto 20
end local 7 19: StackMap locals: org.apache.tomcat.util.buf.B2CConverter java.nio.ByteBuffer java.nio.CharBuffer org.apache.tomcat.util.buf.ByteChunk$ByteInputChannel int java.nio.charset.CoderResult int
StackMap stack:
aload 1
invokevirtual java.nio.ByteBuffer.get:()B
istore 7
start local 7 20: StackMap locals: int
StackMap stack:
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.leftovers:Ljava/nio/ByteBuffer;
iload 7
invokevirtual java.nio.ByteBuffer.put:(B)Ljava/nio/ByteBuffer;
pop
21: aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.leftovers:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/Buffer;
pop
22: aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.decoder:Ljava/nio/charset/CharsetDecoder;
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.leftovers:Ljava/nio/ByteBuffer;
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.cb:Ljava/nio/CharBuffer;
iload 4
invokevirtual java.nio.charset.CharsetDecoder.decode:(Ljava/nio/ByteBuffer;Ljava/nio/CharBuffer;Z)Ljava/nio/charset/CoderResult;
astore 5
23: aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.leftovers:Ljava/nio/ByteBuffer;
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.leftovers:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.limit:()I
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
24: aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.leftovers:Ljava/nio/ByteBuffer;
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.leftovers:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.array:()[B
arraylength
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/Buffer;
pop
end local 7 25: aload 5
invokevirtual java.nio.charset.CoderResult.isUnderflow:()Z
ifeq 26
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.cb:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.position:()I
iload 6
if_icmpeq 13
26: StackMap locals:
StackMap stack:
aload 5
invokevirtual java.nio.charset.CoderResult.isError:()Z
ifne 27
aload 5
invokevirtual java.nio.charset.CoderResult.isMalformed:()Z
ifeq 28
27: StackMap locals:
StackMap stack:
aload 5
invokevirtual java.nio.charset.CoderResult.throwException:()V
28: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.bb:Ljava/nio/ByteBuffer;
aload 1
invokevirtual java.nio.ByteBuffer.position:()I
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
29: aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.leftovers:Ljava/nio/ByteBuffer;
iconst_0
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
end local 6 30: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.decoder:Ljava/nio/charset/CharsetDecoder;
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.bb:Ljava/nio/ByteBuffer;
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.cb:Ljava/nio/CharBuffer;
iload 4
invokevirtual java.nio.charset.CharsetDecoder.decode:(Ljava/nio/ByteBuffer;Ljava/nio/CharBuffer;Z)Ljava/nio/charset/CoderResult;
astore 5
31: aload 5
invokevirtual java.nio.charset.CoderResult.isError:()Z
ifne 32
aload 5
invokevirtual java.nio.charset.CoderResult.isMalformed:()Z
ifeq 34
32: StackMap locals:
StackMap stack:
aload 5
invokevirtual java.nio.charset.CoderResult.throwException:()V
33: goto 45
StackMap locals:
StackMap stack:
34: aload 5
invokevirtual java.nio.charset.CoderResult.isOverflow:()Z
ifeq 38
35: aload 1
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.bb:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.position:()I
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
36: aload 2
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.cb:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.position:()I
invokevirtual java.nio.CharBuffer.limit:(I)Ljava/nio/Buffer;
pop
37: goto 45
StackMap locals:
StackMap stack:
38: aload 5
invokevirtual java.nio.charset.CoderResult.isUnderflow:()Z
ifeq 45
39: aload 1
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.bb:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.position:()I
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
40: aload 2
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.cb:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.position:()I
invokevirtual java.nio.CharBuffer.limit:(I)Ljava/nio/Buffer;
pop
41: aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
ifle 45
42: aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.leftovers:Ljava/nio/ByteBuffer;
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.leftovers:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.array:()[B
arraylength
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/Buffer;
pop
43: aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.leftovers:Ljava/nio/ByteBuffer;
aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
44: aload 1
aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.leftovers:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.array:()[B
iconst_0
aload 1
invokevirtual java.nio.ByteBuffer.remaining:()I
invokevirtual java.nio.ByteBuffer.get:([BII)Ljava/nio/ByteBuffer;
pop
45: StackMap locals:
StackMap stack:
return
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 46 0 this Lorg/apache/tomcat/util/buf/B2CConverter;
0 46 1 bc Ljava/nio/ByteBuffer;
0 46 2 cc Ljava/nio/CharBuffer;
0 46 3 ic Lorg/apache/tomcat/util/buf/ByteChunk$ByteInputChannel;
0 46 4 endOfInput Z
11 46 5 result Ljava/nio/charset/CoderResult;
13 30 6 pos I
18 19 7 chr B
20 25 7 chr B
15 18 8 n I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
bc
cc
ic
endOfInput
public java.nio.charset.Charset getCharset();
descriptor: ()Ljava/nio/charset/Charset;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.buf.B2CConverter.decoder:Ljava/nio/charset/CharsetDecoder;
invokevirtual java.nio.charset.CharsetDecoder.charset:()Ljava/nio/charset/Charset;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/buf/B2CConverter;
}
SourceFile: "B2CConverter.java"
InnerClasses:
public abstract ByteInputChannel = org.apache.tomcat.util.buf.ByteChunk$ByteInputChannel of org.apache.tomcat.util.buf.ByteChunk