public abstract class sun.nio.cs.UnicodeEncoder extends java.nio.charset.CharsetEncoder
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: sun.nio.cs.UnicodeEncoder
super_class: java.nio.charset.CharsetEncoder
{
protected static final char BYTE_ORDER_MARK;
descriptor: C
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
ConstantValue: 65279
protected static final char REVERSED_MARK;
descriptor: C
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
ConstantValue: 65534
protected static final int BIG;
descriptor: I
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
ConstantValue: 0
protected static final int LITTLE;
descriptor: I
flags: (0x001c) ACC_PROTECTED, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private int byteOrder;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private boolean usesMark;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean needsMark;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private final sun.nio.cs.Surrogate$Parser sgp;
descriptor: Lsun/nio/cs/Surrogate$Parser;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
protected void <init>(java.nio.charset.Charset, int, boolean);
descriptor: (Ljava/nio/charset/Charset;IZ)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=8, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
fconst_2
1: iload 3
ifeq 2
ldc 4.0
goto 3
StackMap locals: uninitialized-this java.nio.charset.Charset int int
StackMap stack: uninitialized-this java.nio.charset.Charset float
2: fconst_2
3: StackMap locals: uninitialized-this java.nio.charset.Charset int int
StackMap stack: uninitialized-this java.nio.charset.Charset float float
iload 2
ifne 5
4: iconst_2
newarray 8
dup
iconst_0
iconst_m1
bastore
dup
iconst_1
bipush -3
bastore
goto 6
5: StackMap locals: uninitialized-this java.nio.charset.Charset int int
StackMap stack: uninitialized-this java.nio.charset.Charset float float
iconst_2
newarray 8
dup
iconst_0
bipush -3
bastore
dup
iconst_1
iconst_m1
bastore
StackMap locals: uninitialized-this java.nio.charset.Charset int int
StackMap stack: uninitialized-this java.nio.charset.Charset float float byte[]
6: invokespecial java.nio.charset.CharsetEncoder.<init>:(Ljava/nio/charset/Charset;FF[B)V
7: aload 0
new sun.nio.cs.Surrogate$Parser
dup
invokespecial sun.nio.cs.Surrogate$Parser.<init>:()V
putfield sun.nio.cs.UnicodeEncoder.sgp:Lsun/nio/cs/Surrogate$Parser;
8: aload 0
aload 0
iload 3
dup_x1
putfield sun.nio.cs.UnicodeEncoder.needsMark:Z
putfield sun.nio.cs.UnicodeEncoder.usesMark:Z
9: aload 0
iload 2
putfield sun.nio.cs.UnicodeEncoder.byteOrder:I
10: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/nio/cs/UnicodeEncoder;
0 11 1 cs Ljava/nio/charset/Charset;
0 11 2 bo I
0 11 3 m Z
MethodParameters:
Name Flags
cs
bo
m
private void put(char, java.nio.ByteBuffer);
descriptor: (CLjava/nio/ByteBuffer;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.nio.cs.UnicodeEncoder.byteOrder:I
ifne 4
1: aload 2
iload 1
bipush 8
ishr
i2b
invokevirtual java.nio.ByteBuffer.put:(B)Ljava/nio/ByteBuffer;
pop
2: aload 2
iload 1
sipush 255
iand
i2b
invokevirtual java.nio.ByteBuffer.put:(B)Ljava/nio/ByteBuffer;
pop
3: goto 6
4: StackMap locals:
StackMap stack:
aload 2
iload 1
sipush 255
iand
i2b
invokevirtual java.nio.ByteBuffer.put:(B)Ljava/nio/ByteBuffer;
pop
5: aload 2
iload 1
bipush 8
ishr
i2b
invokevirtual java.nio.ByteBuffer.put:(B)Ljava/nio/ByteBuffer;
pop
6: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/nio/cs/UnicodeEncoder;
0 7 1 c C
0 7 2 dst Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
c
dst
protected java.nio.charset.CoderResult encodeLoop(java.nio.CharBuffer, java.nio.ByteBuffer);
descriptor: (Ljava/nio/CharBuffer;Ljava/nio/ByteBuffer;)Ljava/nio/charset/CoderResult;
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual java.nio.CharBuffer.position:()I
istore 3
start local 3 1: aload 0
getfield sun.nio.cs.UnicodeEncoder.needsMark:Z
ifeq 28
2: aload 2
invokevirtual java.nio.ByteBuffer.remaining:()I
iconst_2
if_icmpge 4
3: getstatic java.nio.charset.CoderResult.OVERFLOW:Ljava/nio/charset/CoderResult;
areturn
4: StackMap locals: int
StackMap stack:
aload 0
ldc 65279
aload 2
invokevirtual sun.nio.cs.UnicodeEncoder.put:(CLjava/nio/ByteBuffer;)V
5: aload 0
iconst_0
putfield sun.nio.cs.UnicodeEncoder.needsMark:Z
6: goto 28
7: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.nio.CharBuffer.get:()C
istore 4
start local 4 8: iload 4
invokestatic sun.nio.cs.Surrogate.is:(I)Z
ifne 16
9: aload 2
invokevirtual java.nio.ByteBuffer.remaining:()I
iconst_2
if_icmpge 13
10: getstatic java.nio.charset.CoderResult.OVERFLOW:Ljava/nio/charset/CoderResult;
astore 7
11: aload 1
iload 3
invokevirtual java.nio.CharBuffer.position:(I)Ljava/nio/Buffer;
pop
12: aload 7
areturn
13: StackMap locals: int
StackMap stack:
iinc 3 1
14: aload 0
iload 4
aload 2
invokevirtual sun.nio.cs.UnicodeEncoder.put:(CLjava/nio/ByteBuffer;)V
15: goto 28
16: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.cs.UnicodeEncoder.sgp:Lsun/nio/cs/Surrogate$Parser;
iload 4
aload 1
invokevirtual sun.nio.cs.Surrogate$Parser.parse:(CLjava/nio/CharBuffer;)I
istore 5
start local 5 17: iload 5
ifge 21
18: aload 0
getfield sun.nio.cs.UnicodeEncoder.sgp:Lsun/nio/cs/Surrogate$Parser;
invokevirtual sun.nio.cs.Surrogate$Parser.error:()Ljava/nio/charset/CoderResult;
astore 7
19: aload 1
iload 3
invokevirtual java.nio.CharBuffer.position:(I)Ljava/nio/Buffer;
pop
20: aload 7
areturn
21: StackMap locals: int
StackMap stack:
aload 2
invokevirtual java.nio.ByteBuffer.remaining:()I
iconst_4
if_icmpge 25
22: getstatic java.nio.charset.CoderResult.OVERFLOW:Ljava/nio/charset/CoderResult;
astore 7
23: aload 1
iload 3
invokevirtual java.nio.CharBuffer.position:(I)Ljava/nio/Buffer;
pop
24: aload 7
areturn
25: StackMap locals:
StackMap stack:
iinc 3 2
26: aload 0
iload 5
invokestatic sun.nio.cs.Surrogate.high:(I)C
aload 2
invokevirtual sun.nio.cs.UnicodeEncoder.put:(CLjava/nio/ByteBuffer;)V
27: aload 0
iload 5
invokestatic sun.nio.cs.Surrogate.low:(I)C
aload 2
invokevirtual sun.nio.cs.UnicodeEncoder.put:(CLjava/nio/ByteBuffer;)V
end local 5 end local 4 28: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.nio.CharBuffer.hasRemaining:()Z
ifne 7
29: getstatic java.nio.charset.CoderResult.UNDERFLOW:Ljava/nio/charset/CoderResult;
astore 7
30: aload 1
iload 3
invokevirtual java.nio.CharBuffer.position:(I)Ljava/nio/Buffer;
pop
31: aload 7
areturn
32: StackMap locals:
StackMap stack: java.lang.Throwable
astore 6
33: aload 1
iload 3
invokevirtual java.nio.CharBuffer.position:(I)Ljava/nio/Buffer;
pop
34: aload 6
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 35 0 this Lsun/nio/cs/UnicodeEncoder;
0 35 1 src Ljava/nio/CharBuffer;
0 35 2 dst Ljava/nio/ByteBuffer;
1 35 3 mark I
8 28 4 c C
17 28 5 d I
Exception table:
from to target type
6 11 32 any
13 19 32 any
21 23 32 any
25 30 32 any
MethodParameters:
Name Flags
src
dst
protected void implReset();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
aload 0
getfield sun.nio.cs.UnicodeEncoder.usesMark:Z
putfield sun.nio.cs.UnicodeEncoder.needsMark:Z
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/cs/UnicodeEncoder;
public boolean canEncode(char);
descriptor: (C)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iload 1
invokestatic sun.nio.cs.Surrogate.is:(I)Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/cs/UnicodeEncoder;
0 3 1 c C
MethodParameters:
Name Flags
c
}
SourceFile: "UnicodeEncoder.java"
InnerClasses:
public Parser = sun.nio.cs.Surrogate$Parser of sun.nio.cs.Surrogate