public abstract class sun.nio.cs.SingleByteEncoder 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.SingleByteEncoder
super_class: java.nio.charset.CharsetEncoder
{
private final short[] index1;
descriptor: [S
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.String index2;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int mask1;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int mask2;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final int shift;
descriptor: I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final sun.nio.cs.Surrogate$Parser sgp;
descriptor: Lsun/nio/cs/Surrogate$Parser;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lsun/nio/cs/SingleByteEncoder;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic sun.nio.cs.SingleByteEncoder.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>(java.nio.charset.Charset, short[], java.lang.String, int, int, int);
descriptor: (Ljava/nio/charset/Charset;[SLjava/lang/String;III)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=7, args_size=7
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 start local 6 0: aload 0
aload 1
fconst_1
fconst_1
invokespecial java.nio.charset.CharsetEncoder.<init>:(Ljava/nio/charset/Charset;FF)V
1: aload 0
new sun.nio.cs.Surrogate$Parser
dup
invokespecial sun.nio.cs.Surrogate$Parser.<init>:()V
putfield sun.nio.cs.SingleByteEncoder.sgp:Lsun/nio/cs/Surrogate$Parser;
2: aload 0
aload 2
putfield sun.nio.cs.SingleByteEncoder.index1:[S
3: aload 0
aload 3
putfield sun.nio.cs.SingleByteEncoder.index2:Ljava/lang/String;
4: aload 0
iload 4
putfield sun.nio.cs.SingleByteEncoder.mask1:I
5: aload 0
iload 5
putfield sun.nio.cs.SingleByteEncoder.mask2:I
6: aload 0
iload 6
putfield sun.nio.cs.SingleByteEncoder.shift:I
7: return
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 8 0 this Lsun/nio/cs/SingleByteEncoder;
0 8 1 cs Ljava/nio/charset/Charset;
0 8 2 index1 [S
0 8 3 index2 Ljava/lang/String;
0 8 4 mask1 I
0 8 5 mask2 I
0 8 6 shift I
MethodParameters:
Name Flags
cs
index1
index2
mask1
mask2
shift
public boolean canEncode(char);
descriptor: (C)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.cs.SingleByteEncoder.index2:Ljava/lang/String;
aload 0
getfield sun.nio.cs.SingleByteEncoder.index1:[S
iload 1
aload 0
getfield sun.nio.cs.SingleByteEncoder.mask1:I
iand
aload 0
getfield sun.nio.cs.SingleByteEncoder.shift:I
ishr
saload
1: iload 1
aload 0
getfield sun.nio.cs.SingleByteEncoder.mask2:I
iand
iadd
2: invokevirtual java.lang.String.charAt:(I)C
istore 2
start local 2 3: iload 2
ifne 4
iload 1
ifeq 4
iconst_0
ireturn
StackMap locals: int
StackMap stack:
4: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/cs/SingleByteEncoder;
0 5 1 c C
3 5 2 testEncode C
MethodParameters:
Name Flags
c
private java.nio.charset.CoderResult encodeArrayLoop(java.nio.CharBuffer, java.nio.ByteBuffer);
descriptor: (Ljava/nio/CharBuffer;Ljava/nio/ByteBuffer;)Ljava/nio/charset/CoderResult;
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=13, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual java.nio.CharBuffer.array:()[C
astore 3
start local 3 1: aload 1
invokevirtual java.nio.CharBuffer.arrayOffset:()I
aload 1
invokevirtual java.nio.CharBuffer.position:()I
iadd
istore 4
start local 4 2: aload 1
invokevirtual java.nio.CharBuffer.arrayOffset:()I
aload 1
invokevirtual java.nio.CharBuffer.limit:()I
iadd
istore 5
start local 5 3: getstatic sun.nio.cs.SingleByteEncoder.$assertionsDisabled:Z
ifne 4
iload 4
iload 5
if_icmple 4
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
4: StackMap locals: char[] int int
StackMap stack:
iload 4
iload 5
if_icmpgt 5
iload 4
goto 6
StackMap locals:
StackMap stack:
5: iload 5
StackMap locals:
StackMap stack: int
6: istore 4
7: aload 2
invokevirtual java.nio.ByteBuffer.array:()[B
astore 6
start local 6 8: aload 2
invokevirtual java.nio.ByteBuffer.arrayOffset:()I
aload 2
invokevirtual java.nio.ByteBuffer.position:()I
iadd
istore 7
start local 7 9: aload 2
invokevirtual java.nio.ByteBuffer.arrayOffset:()I
aload 2
invokevirtual java.nio.ByteBuffer.limit:()I
iadd
istore 8
start local 8 10: getstatic sun.nio.cs.SingleByteEncoder.$assertionsDisabled:Z
ifne 11
iload 7
iload 8
if_icmple 11
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
11: StackMap locals: byte[] int int
StackMap stack:
iload 7
iload 8
if_icmpgt 12
iload 7
goto 13
StackMap locals:
StackMap stack:
12: iload 8
StackMap locals:
StackMap stack: int
13: istore 7
14: goto 46
15: StackMap locals:
StackMap stack:
aload 3
iload 4
caload
istore 9
start local 9 16: iload 9
invokestatic sun.nio.cs.Surrogate.is:(I)Z
ifeq 26
17: aload 0
getfield sun.nio.cs.SingleByteEncoder.sgp:Lsun/nio/cs/Surrogate$Parser;
iload 9
aload 3
iload 4
iload 5
invokevirtual sun.nio.cs.Surrogate$Parser.parse:(C[CII)I
ifge 22
18: aload 0
getfield sun.nio.cs.SingleByteEncoder.sgp:Lsun/nio/cs/Surrogate$Parser;
invokevirtual sun.nio.cs.Surrogate$Parser.error:()Ljava/nio/charset/CoderResult;
astore 12
19: aload 1
iload 4
aload 1
invokevirtual java.nio.CharBuffer.arrayOffset:()I
isub
invokevirtual java.nio.CharBuffer.position:(I)Ljava/nio/Buffer;
pop
20: aload 2
iload 7
aload 2
invokevirtual java.nio.ByteBuffer.arrayOffset:()I
isub
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
21: aload 12
areturn
22: StackMap locals: int
StackMap stack:
aload 0
getfield sun.nio.cs.SingleByteEncoder.sgp:Lsun/nio/cs/Surrogate$Parser;
invokevirtual sun.nio.cs.Surrogate$Parser.unmappableResult:()Ljava/nio/charset/CoderResult;
astore 12
23: aload 1
iload 4
aload 1
invokevirtual java.nio.CharBuffer.arrayOffset:()I
isub
invokevirtual java.nio.CharBuffer.position:(I)Ljava/nio/Buffer;
pop
24: aload 2
iload 7
aload 2
invokevirtual java.nio.ByteBuffer.arrayOffset:()I
isub
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
25: aload 12
areturn
26: StackMap locals:
StackMap stack:
iload 9
ldc 65534
if_icmplt 31
27: iconst_1
invokestatic java.nio.charset.CoderResult.unmappableForLength:(I)Ljava/nio/charset/CoderResult;
astore 12
28: aload 1
iload 4
aload 1
invokevirtual java.nio.CharBuffer.arrayOffset:()I
isub
invokevirtual java.nio.CharBuffer.position:(I)Ljava/nio/Buffer;
pop
29: aload 2
iload 7
aload 2
invokevirtual java.nio.ByteBuffer.arrayOffset:()I
isub
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
30: aload 12
areturn
31: StackMap locals:
StackMap stack:
iload 8
iload 7
isub
iconst_1
if_icmpge 36
32: getstatic java.nio.charset.CoderResult.OVERFLOW:Ljava/nio/charset/CoderResult;
astore 12
33: aload 1
iload 4
aload 1
invokevirtual java.nio.CharBuffer.arrayOffset:()I
isub
invokevirtual java.nio.CharBuffer.position:(I)Ljava/nio/Buffer;
pop
34: aload 2
iload 7
aload 2
invokevirtual java.nio.ByteBuffer.arrayOffset:()I
isub
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
35: aload 12
areturn
36: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.cs.SingleByteEncoder.index2:Ljava/lang/String;
aload 0
getfield sun.nio.cs.SingleByteEncoder.index1:[S
iload 9
aload 0
getfield sun.nio.cs.SingleByteEncoder.mask1:I
iand
aload 0
getfield sun.nio.cs.SingleByteEncoder.shift:I
ishr
saload
37: iload 9
aload 0
getfield sun.nio.cs.SingleByteEncoder.mask2:I
iand
iadd
38: invokevirtual java.lang.String.charAt:(I)C
istore 10
start local 10 39: iload 10
ifne 44
iload 9
ifeq 44
40: iconst_1
invokestatic java.nio.charset.CoderResult.unmappableForLength:(I)Ljava/nio/charset/CoderResult;
astore 12
41: aload 1
iload 4
aload 1
invokevirtual java.nio.CharBuffer.arrayOffset:()I
isub
invokevirtual java.nio.CharBuffer.position:(I)Ljava/nio/Buffer;
pop
42: aload 2
iload 7
aload 2
invokevirtual java.nio.ByteBuffer.arrayOffset:()I
isub
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
43: aload 12
areturn
44: StackMap locals: int
StackMap stack:
iinc 4 1
45: aload 6
iload 7
iinc 7 1
iload 10
i2b
bastore
end local 10 end local 9 46: StackMap locals:
StackMap stack:
iload 4
iload 5
if_icmplt 15
47: getstatic java.nio.charset.CoderResult.UNDERFLOW:Ljava/nio/charset/CoderResult;
astore 12
48: aload 1
iload 4
aload 1
invokevirtual java.nio.CharBuffer.arrayOffset:()I
isub
invokevirtual java.nio.CharBuffer.position:(I)Ljava/nio/Buffer;
pop
49: aload 2
iload 7
aload 2
invokevirtual java.nio.ByteBuffer.arrayOffset:()I
isub
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
50: aload 12
areturn
51: StackMap locals:
StackMap stack: java.lang.Throwable
astore 11
52: aload 1
iload 4
aload 1
invokevirtual java.nio.CharBuffer.arrayOffset:()I
isub
invokevirtual java.nio.CharBuffer.position:(I)Ljava/nio/Buffer;
pop
53: aload 2
iload 7
aload 2
invokevirtual java.nio.ByteBuffer.arrayOffset:()I
isub
invokevirtual java.nio.ByteBuffer.position:(I)Ljava/nio/Buffer;
pop
54: aload 11
athrow
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 55 0 this Lsun/nio/cs/SingleByteEncoder;
0 55 1 src Ljava/nio/CharBuffer;
0 55 2 dst Ljava/nio/ByteBuffer;
1 55 3 sa [C
2 55 4 sp I
3 55 5 sl I
8 55 6 da [B
9 55 7 dp I
10 55 8 dl I
16 46 9 c C
39 46 10 e C
Exception table:
from to target type
14 19 51 any
22 23 51 any
26 28 51 any
31 33 51 any
36 41 51 any
44 48 51 any
MethodParameters:
Name Flags
src
dst
private java.nio.charset.CoderResult encodeBufferLoop(java.nio.CharBuffer, java.nio.ByteBuffer);
descriptor: (Ljava/nio/CharBuffer;Ljava/nio/ByteBuffer;)Ljava/nio/charset/CoderResult;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, 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: goto 28
2: StackMap locals: int
StackMap stack:
aload 1
invokevirtual java.nio.CharBuffer.get:()C
istore 4
start local 4 3: iload 4
invokestatic sun.nio.cs.Surrogate.is:(I)Z
ifeq 11
4: aload 0
getfield sun.nio.cs.SingleByteEncoder.sgp:Lsun/nio/cs/Surrogate$Parser;
iload 4
aload 1
invokevirtual sun.nio.cs.Surrogate$Parser.parse:(CLjava/nio/CharBuffer;)I
ifge 8
5: aload 0
getfield sun.nio.cs.SingleByteEncoder.sgp:Lsun/nio/cs/Surrogate$Parser;
invokevirtual sun.nio.cs.Surrogate$Parser.error:()Ljava/nio/charset/CoderResult;
astore 7
6: aload 1
iload 3
invokevirtual java.nio.CharBuffer.position:(I)Ljava/nio/Buffer;
pop
7: aload 7
areturn
8: StackMap locals: int
StackMap stack:
aload 0
getfield sun.nio.cs.SingleByteEncoder.sgp:Lsun/nio/cs/Surrogate$Parser;
invokevirtual sun.nio.cs.Surrogate$Parser.unmappableResult:()Ljava/nio/charset/CoderResult;
astore 7
9: aload 1
iload 3
invokevirtual java.nio.CharBuffer.position:(I)Ljava/nio/Buffer;
pop
10: aload 7
areturn
11: StackMap locals:
StackMap stack:
iload 4
ldc 65534
if_icmplt 15
12: iconst_1
invokestatic java.nio.charset.CoderResult.unmappableForLength:(I)Ljava/nio/charset/CoderResult;
astore 7
13: aload 1
iload 3
invokevirtual java.nio.CharBuffer.position:(I)Ljava/nio/Buffer;
pop
14: aload 7
areturn
15: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifne 19
16: getstatic java.nio.charset.CoderResult.OVERFLOW:Ljava/nio/charset/CoderResult;
astore 7
17: aload 1
iload 3
invokevirtual java.nio.CharBuffer.position:(I)Ljava/nio/Buffer;
pop
18: aload 7
areturn
19: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.cs.SingleByteEncoder.index2:Ljava/lang/String;
aload 0
getfield sun.nio.cs.SingleByteEncoder.index1:[S
iload 4
aload 0
getfield sun.nio.cs.SingleByteEncoder.mask1:I
iand
aload 0
getfield sun.nio.cs.SingleByteEncoder.shift:I
ishr
saload
20: iload 4
aload 0
getfield sun.nio.cs.SingleByteEncoder.mask2:I
iand
iadd
21: invokevirtual java.lang.String.charAt:(I)C
istore 5
start local 5 22: iload 5
ifne 26
iload 4
ifeq 26
23: iconst_1
invokestatic java.nio.charset.CoderResult.unmappableForLength:(I)Ljava/nio/charset/CoderResult;
astore 7
24: aload 1
iload 3
invokevirtual java.nio.CharBuffer.position:(I)Ljava/nio/Buffer;
pop
25: aload 7
areturn
26: StackMap locals: int
StackMap stack:
iinc 3 1
27: aload 2
iload 5
i2b
invokevirtual java.nio.ByteBuffer.put:(B)Ljava/nio/ByteBuffer;
pop
end local 5 end local 4 28: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.nio.CharBuffer.hasRemaining:()Z
ifne 2
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/SingleByteEncoder;
0 35 1 src Ljava/nio/CharBuffer;
0 35 2 dst Ljava/nio/ByteBuffer;
1 35 3 mark I
3 28 4 c C
22 28 5 e C
Exception table:
from to target type
1 6 32 any
8 9 32 any
11 13 32 any
15 17 32 any
19 24 32 any
26 30 32 any
MethodParameters:
Name Flags
src
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=3, args_size=3
start local 0 start local 1 start local 2 0: aload 1
invokevirtual java.nio.CharBuffer.hasArray:()Z
ifeq 2
aload 2
invokevirtual java.nio.ByteBuffer.hasArray:()Z
ifeq 2
1: aload 0
aload 1
aload 2
invokevirtual sun.nio.cs.SingleByteEncoder.encodeArrayLoop:(Ljava/nio/CharBuffer;Ljava/nio/ByteBuffer;)Ljava/nio/charset/CoderResult;
areturn
2: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual sun.nio.cs.SingleByteEncoder.encodeBufferLoop:(Ljava/nio/CharBuffer;Ljava/nio/ByteBuffer;)Ljava/nio/charset/CoderResult;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/cs/SingleByteEncoder;
0 3 1 src Ljava/nio/CharBuffer;
0 3 2 dst Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
src
dst
public byte encode(char);
descriptor: (C)B
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.cs.SingleByteEncoder.index2:Ljava/lang/String;
aload 0
getfield sun.nio.cs.SingleByteEncoder.index1:[S
iload 1
aload 0
getfield sun.nio.cs.SingleByteEncoder.mask1:I
iand
aload 0
getfield sun.nio.cs.SingleByteEncoder.shift:I
ishr
saload
1: iload 1
aload 0
getfield sun.nio.cs.SingleByteEncoder.mask2:I
iand
iadd
2: invokevirtual java.lang.String.charAt:(I)C
i2b
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/cs/SingleByteEncoder;
0 3 1 inputChar C
MethodParameters:
Name Flags
inputChar
}
SourceFile: "SingleByteEncoder.java"
InnerClasses:
public Parser = sun.nio.cs.Surrogate$Parser of sun.nio.cs.Surrogate