class org.jruby.RubyEncoding$UTF8Coder
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.jruby.RubyEncoding$UTF8Coder
super_class: java.lang.Object
{
private final java.nio.charset.CharsetEncoder encoder;
descriptor: Ljava/nio/charset/CharsetEncoder;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.nio.charset.CharsetDecoder decoder;
descriptor: Ljava/nio/charset/CharsetDecoder;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private static final int BUF_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 4096
private final java.nio.ByteBuffer byteBuffer;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.nio.CharBuffer charBuffer;
descriptor: Ljava/nio/CharBuffer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
getstatic org.jruby.RubyEncoding.UTF8:Ljava/nio/charset/Charset;
invokevirtual java.nio.charset.Charset.newEncoder:()Ljava/nio/charset/CharsetEncoder;
putfield org.jruby.RubyEncoding$UTF8Coder.encoder:Ljava/nio/charset/CharsetEncoder;
2: aload 0
getstatic org.jruby.RubyEncoding.UTF8:Ljava/nio/charset/Charset;
invokevirtual java.nio.charset.Charset.newDecoder:()Ljava/nio/charset/CharsetDecoder;
putfield org.jruby.RubyEncoding$UTF8Coder.decoder:Ljava/nio/charset/CharsetDecoder;
3: aload 0
sipush 4096
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
putfield org.jruby.RubyEncoding$UTF8Coder.byteBuffer:Ljava/nio/ByteBuffer;
4: aload 0
sipush 4096
invokestatic java.nio.CharBuffer.allocate:(I)Ljava/nio/CharBuffer;
putfield org.jruby.RubyEncoding$UTF8Coder.charBuffer:Ljava/nio/CharBuffer;
5: aload 0
getfield org.jruby.RubyEncoding$UTF8Coder.decoder:Ljava/nio/charset/CharsetDecoder;
getstatic java.nio.charset.CodingErrorAction.REPLACE:Ljava/nio/charset/CodingErrorAction;
invokevirtual java.nio.charset.CharsetDecoder.onMalformedInput:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetDecoder;
pop
6: aload 0
getfield org.jruby.RubyEncoding$UTF8Coder.decoder:Ljava/nio/charset/CharsetDecoder;
getstatic java.nio.charset.CodingErrorAction.REPLACE:Ljava/nio/charset/CodingErrorAction;
invokevirtual java.nio.charset.CharsetDecoder.onUnmappableCharacter:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetDecoder;
pop
7: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/jruby/RubyEncoding$UTF8Coder;
public final java.nio.ByteBuffer encode(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/nio/ByteBuffer;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.RubyEncoding$UTF8Coder.byteBuffer:Ljava/nio/ByteBuffer;
astore 2
start local 2 1: aload 0
getfield org.jruby.RubyEncoding$UTF8Coder.charBuffer:Ljava/nio/CharBuffer;
astore 3
start local 3 2: aload 2
invokestatic com.headius.backport9.buffer.Buffers.clearBuffer:(Ljava/nio/Buffer;)Ljava/nio/Buffer;
pop
3: aload 3
invokestatic com.headius.backport9.buffer.Buffers.clearBuffer:(Ljava/nio/Buffer;)Ljava/nio/Buffer;
pop
4: aload 3
aload 1
invokevirtual java.nio.CharBuffer.put:(Ljava/lang/String;)Ljava/nio/CharBuffer;
pop
5: aload 3
invokestatic com.headius.backport9.buffer.Buffers.flipBuffer:(Ljava/nio/Buffer;)Ljava/nio/Buffer;
pop
6: aload 0
getfield org.jruby.RubyEncoding$UTF8Coder.encoder:Ljava/nio/charset/CharsetEncoder;
aload 3
aload 2
iconst_1
invokevirtual java.nio.charset.CharsetEncoder.encode:(Ljava/nio/CharBuffer;Ljava/nio/ByteBuffer;Z)Ljava/nio/charset/CoderResult;
pop
7: aload 2
invokestatic com.headius.backport9.buffer.Buffers.flipBuffer:(Ljava/nio/Buffer;)Ljava/nio/Buffer;
pop
8: aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/jruby/RubyEncoding$UTF8Coder;
0 9 1 str Ljava/lang/String;
1 9 2 buf Ljava/nio/ByteBuffer;
2 9 3 cbuf Ljava/nio/CharBuffer;
MethodParameters:
Name Flags
str
public final java.nio.ByteBuffer encode(java.lang.CharSequence);
descriptor: (Ljava/lang/CharSequence;)Ljava/nio/ByteBuffer;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield org.jruby.RubyEncoding$UTF8Coder.byteBuffer:Ljava/nio/ByteBuffer;
astore 2
start local 2 1: aload 0
getfield org.jruby.RubyEncoding$UTF8Coder.charBuffer:Ljava/nio/CharBuffer;
astore 3
start local 3 2: aload 2
invokestatic com.headius.backport9.buffer.Buffers.clearBuffer:(Ljava/nio/Buffer;)Ljava/nio/Buffer;
pop
3: aload 3
invokestatic com.headius.backport9.buffer.Buffers.clearBuffer:(Ljava/nio/Buffer;)Ljava/nio/Buffer;
pop
4: iconst_0
istore 4
start local 4 5: goto 7
StackMap locals: java.nio.ByteBuffer java.nio.CharBuffer int
StackMap stack:
6: aload 3
aload 1
iload 4
invokeinterface java.lang.CharSequence.charAt:(I)C
invokevirtual java.nio.CharBuffer.put:(C)Ljava/nio/CharBuffer;
pop
iinc 4 1
StackMap locals:
StackMap stack:
7: iload 4
aload 1
invokeinterface java.lang.CharSequence.length:()I
if_icmplt 6
end local 4 8: aload 3
invokestatic com.headius.backport9.buffer.Buffers.flipBuffer:(Ljava/nio/Buffer;)Ljava/nio/Buffer;
pop
9: aload 0
getfield org.jruby.RubyEncoding$UTF8Coder.encoder:Ljava/nio/charset/CharsetEncoder;
aload 3
aload 2
iconst_1
invokevirtual java.nio.charset.CharsetEncoder.encode:(Ljava/nio/CharBuffer;Ljava/nio/ByteBuffer;Z)Ljava/nio/charset/CoderResult;
pop
10: aload 2
invokestatic com.headius.backport9.buffer.Buffers.flipBuffer:(Ljava/nio/Buffer;)Ljava/nio/Buffer;
pop
11: aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/jruby/RubyEncoding$UTF8Coder;
0 12 1 str Ljava/lang/CharSequence;
1 12 2 buf Ljava/nio/ByteBuffer;
2 12 3 cbuf Ljava/nio/CharBuffer;
5 8 4 i I
MethodParameters:
Name Flags
str
public final java.nio.CharBuffer decode(byte[], int, int);
descriptor: ([BII)Ljava/nio/CharBuffer;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.jruby.RubyEncoding$UTF8Coder.charBuffer:Ljava/nio/CharBuffer;
astore 4
start local 4 1: aload 0
getfield org.jruby.RubyEncoding$UTF8Coder.byteBuffer:Ljava/nio/ByteBuffer;
astore 5
start local 5 2: aload 4
invokestatic com.headius.backport9.buffer.Buffers.clearBuffer:(Ljava/nio/Buffer;)Ljava/nio/Buffer;
pop
3: aload 5
invokestatic com.headius.backport9.buffer.Buffers.clearBuffer:(Ljava/nio/Buffer;)Ljava/nio/Buffer;
pop
4: aload 5
aload 1
iload 2
iload 3
invokevirtual java.nio.ByteBuffer.put:([BII)Ljava/nio/ByteBuffer;
pop
5: aload 5
invokestatic com.headius.backport9.buffer.Buffers.flipBuffer:(Ljava/nio/Buffer;)Ljava/nio/Buffer;
pop
6: aload 0
getfield org.jruby.RubyEncoding$UTF8Coder.decoder:Ljava/nio/charset/CharsetDecoder;
aload 5
aload 4
iconst_1
invokevirtual java.nio.charset.CharsetDecoder.decode:(Ljava/nio/ByteBuffer;Ljava/nio/CharBuffer;Z)Ljava/nio/charset/CoderResult;
pop
7: aload 4
invokestatic com.headius.backport9.buffer.Buffers.flipBuffer:(Ljava/nio/Buffer;)Ljava/nio/Buffer;
pop
8: aload 4
areturn
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 9 0 this Lorg/jruby/RubyEncoding$UTF8Coder;
0 9 1 bytes [B
0 9 2 start I
0 9 3 length I
1 9 4 cbuf Ljava/nio/CharBuffer;
2 9 5 buf Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
bytes
start
length
}
SourceFile: "RubyEncoding.java"
NestHost: org.jruby.RubyEncoding
InnerClasses:
private UTF8Coder = org.jruby.RubyEncoding$UTF8Coder of org.jruby.RubyEncoding