public final class sun.nio.cs.SingleByte$Encoder extends java.nio.charset.CharsetEncoder implements sun.nio.cs.ArrayEncoder
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: sun.nio.cs.SingleByte$Encoder
super_class: java.nio.charset.CharsetEncoder
{
private sun.nio.cs.Surrogate$Parser sgp;
descriptor: Lsun/nio/cs/Surrogate$Parser;
flags: (0x0002) ACC_PRIVATE
private final char[] c2b;
descriptor: [C
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final char[] c2bIndex;
descriptor: [C
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private byte repl;
descriptor: B
flags: (0x0002) ACC_PRIVATE
public void <init>(java.nio.charset.Charset, char[], char[]);
descriptor: (Ljava/nio/charset/Charset;[C[C)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
fconst_1
fconst_1
invokespecial java.nio.charset.CharsetEncoder.<init>:(Ljava/nio/charset/Charset;FF)V
1: aload 0
bipush 63
putfield sun.nio.cs.SingleByte$Encoder.repl:B
2: aload 0
aload 2
putfield sun.nio.cs.SingleByte$Encoder.c2b:[C
3: aload 0
aload 3
putfield sun.nio.cs.SingleByte$Encoder.c2bIndex:[C
4: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/nio/cs/SingleByte$Encoder;
0 5 1 cs Ljava/nio/charset/Charset;
0 5 2 c2b [C
0 5 3 c2bIndex [C
MethodParameters:
Name Flags
cs
c2b
c2bIndex
public boolean canEncode(char);
descriptor: (C)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokevirtual sun.nio.cs.SingleByte$Encoder.encode:(C)I
ldc 65533
if_icmpeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/cs/SingleByte$Encoder;
0 2 1 c C
MethodParameters:
Name Flags
c
public boolean isLegalReplacement(byte[]);
descriptor: ([B)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
arraylength
iconst_1
if_icmpne 1
aload 1
iconst_0
baload
bipush 63
if_icmpeq 3
1: StackMap locals:
StackMap stack:
aload 0
aload 1
invokespecial java.nio.charset.CharsetEncoder.isLegalReplacement:([B)Z
ifne 3
2: iconst_0
ireturn
StackMap locals:
StackMap stack:
3: iconst_1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/cs/SingleByte$Encoder;
0 4 1 repl [B
MethodParameters:
Name Flags
repl
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=12, 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: aload 2
invokevirtual java.nio.ByteBuffer.array:()[B
astore 6
start local 6 4: aload 2
invokevirtual java.nio.ByteBuffer.arrayOffset:()I
aload 2
invokevirtual java.nio.ByteBuffer.position:()I
iadd
istore 7
start local 7 5: aload 2
invokevirtual java.nio.ByteBuffer.arrayOffset:()I
aload 2
invokevirtual java.nio.ByteBuffer.limit:()I
iadd
istore 8
start local 8 6: getstatic java.nio.charset.CoderResult.UNDERFLOW:Ljava/nio/charset/CoderResult;
astore 9
start local 9 7: iload 8
iload 7
isub
iload 5
iload 4
isub
if_icmpge 25
8: iload 4
iload 8
iload 7
isub
iadd
istore 5
9: getstatic java.nio.charset.CoderResult.OVERFLOW:Ljava/nio/charset/CoderResult;
astore 9
10: goto 25
11: StackMap locals: sun.nio.cs.SingleByte$Encoder java.nio.CharBuffer java.nio.ByteBuffer char[] int int byte[] int int java.nio.charset.CoderResult
StackMap stack:
aload 3
iload 4
caload
istore 10
start local 10 12: aload 0
iload 10
invokevirtual sun.nio.cs.SingleByte$Encoder.encode:(C)I
istore 11
start local 11 13: iload 11
ldc 65533
if_icmpne 23
14: iload 10
invokestatic java.lang.Character.isSurrogate:(C)Z
ifeq 20
15: aload 0
getfield sun.nio.cs.SingleByte$Encoder.sgp:Lsun/nio/cs/Surrogate$Parser;
ifnonnull 17
16: aload 0
new sun.nio.cs.Surrogate$Parser
dup
invokespecial sun.nio.cs.Surrogate$Parser.<init>:()V
putfield sun.nio.cs.SingleByte$Encoder.sgp:Lsun/nio/cs/Surrogate$Parser;
17: StackMap locals: int int
StackMap stack:
aload 0
getfield sun.nio.cs.SingleByte$Encoder.sgp:Lsun/nio/cs/Surrogate$Parser;
iload 10
aload 3
iload 4
iload 5
invokevirtual sun.nio.cs.Surrogate$Parser.parse:(C[CII)I
ifge 19
18: aload 0
getfield sun.nio.cs.SingleByte$Encoder.sgp:Lsun/nio/cs/Surrogate$Parser;
invokevirtual sun.nio.cs.Surrogate$Parser.error:()Ljava/nio/charset/CoderResult;
aload 1
iload 4
aload 2
iload 7
invokestatic sun.nio.cs.SingleByte.withResult:(Ljava/nio/charset/CoderResult;Ljava/nio/Buffer;ILjava/nio/Buffer;I)Ljava/nio/charset/CoderResult;
areturn
19: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.cs.SingleByte$Encoder.sgp:Lsun/nio/cs/Surrogate$Parser;
invokevirtual sun.nio.cs.Surrogate$Parser.unmappableResult:()Ljava/nio/charset/CoderResult;
aload 1
iload 4
aload 2
iload 7
invokestatic sun.nio.cs.SingleByte.withResult:(Ljava/nio/charset/CoderResult;Ljava/nio/Buffer;ILjava/nio/Buffer;I)Ljava/nio/charset/CoderResult;
areturn
20: StackMap locals:
StackMap stack:
iconst_1
invokestatic java.nio.charset.CoderResult.unmappableForLength:(I)Ljava/nio/charset/CoderResult;
21: aload 1
iload 4
aload 2
iload 7
22: invokestatic sun.nio.cs.SingleByte.withResult:(Ljava/nio/charset/CoderResult;Ljava/nio/Buffer;ILjava/nio/Buffer;I)Ljava/nio/charset/CoderResult;
areturn
23: StackMap locals:
StackMap stack:
aload 6
iload 7
iinc 7 1
iload 11
i2b
bastore
24: iinc 4 1
end local 11 end local 10 25: StackMap locals:
StackMap stack:
iload 4
iload 5
if_icmplt 11
26: aload 9
aload 1
iload 4
aload 2
iload 7
invokestatic sun.nio.cs.SingleByte.withResult:(Ljava/nio/charset/CoderResult;Ljava/nio/Buffer;ILjava/nio/Buffer;I)Ljava/nio/charset/CoderResult;
areturn
end local 9 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 27 0 this Lsun/nio/cs/SingleByte$Encoder;
0 27 1 src Ljava/nio/CharBuffer;
0 27 2 dst Ljava/nio/ByteBuffer;
1 27 3 sa [C
2 27 4 sp I
3 27 5 sl I
4 27 6 da [B
5 27 7 dp I
6 27 8 dl I
7 27 9 cr Ljava/nio/charset/CoderResult;
12 25 10 c C
13 25 11 b I
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=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: goto 24
2: StackMap locals: int
StackMap stack:
aload 1
invokevirtual java.nio.CharBuffer.get:()C
istore 4
start local 4 3: aload 0
iload 4
invokevirtual sun.nio.cs.SingleByte$Encoder.encode:(C)I
istore 5
start local 5 4: iload 5
ldc 65533
if_icmpne 18
5: iload 4
invokestatic java.lang.Character.isSurrogate:(C)Z
ifeq 15
6: aload 0
getfield sun.nio.cs.SingleByte$Encoder.sgp:Lsun/nio/cs/Surrogate$Parser;
ifnonnull 8
7: aload 0
new sun.nio.cs.Surrogate$Parser
dup
invokespecial sun.nio.cs.Surrogate$Parser.<init>:()V
putfield sun.nio.cs.SingleByte$Encoder.sgp:Lsun/nio/cs/Surrogate$Parser;
8: StackMap locals: int int
StackMap stack:
aload 0
getfield sun.nio.cs.SingleByte$Encoder.sgp:Lsun/nio/cs/Surrogate$Parser;
iload 4
aload 1
invokevirtual sun.nio.cs.Surrogate$Parser.parse:(CLjava/nio/CharBuffer;)I
ifge 12
9: aload 0
getfield sun.nio.cs.SingleByte$Encoder.sgp:Lsun/nio/cs/Surrogate$Parser;
invokevirtual sun.nio.cs.Surrogate$Parser.error:()Ljava/nio/charset/CoderResult;
astore 7
10: aload 1
iload 3
invokevirtual java.nio.CharBuffer.position:(I)Ljava/nio/Buffer;
pop
11: aload 7
areturn
12: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.cs.SingleByte$Encoder.sgp:Lsun/nio/cs/Surrogate$Parser;
invokevirtual sun.nio.cs.Surrogate$Parser.unmappableResult:()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:
iconst_1
invokestatic java.nio.charset.CoderResult.unmappableForLength:(I)Ljava/nio/charset/CoderResult;
astore 7
16: aload 1
iload 3
invokevirtual java.nio.CharBuffer.position:(I)Ljava/nio/Buffer;
pop
17: aload 7
areturn
18: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifne 22
19: getstatic java.nio.charset.CoderResult.OVERFLOW:Ljava/nio/charset/CoderResult;
astore 7
20: aload 1
iload 3
invokevirtual java.nio.CharBuffer.position:(I)Ljava/nio/Buffer;
pop
21: aload 7
areturn
22: StackMap locals:
StackMap stack:
aload 2
iload 5
i2b
invokevirtual java.nio.ByteBuffer.put:(B)Ljava/nio/ByteBuffer;
pop
23: iinc 3 1
end local 5 end local 4 24: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.nio.CharBuffer.hasRemaining:()Z
ifne 2
25: getstatic java.nio.charset.CoderResult.UNDERFLOW:Ljava/nio/charset/CoderResult;
astore 7
26: aload 1
iload 3
invokevirtual java.nio.CharBuffer.position:(I)Ljava/nio/Buffer;
pop
27: aload 7
areturn
28: StackMap locals:
StackMap stack: java.lang.Throwable
astore 6
29: aload 1
iload 3
invokevirtual java.nio.CharBuffer.position:(I)Ljava/nio/Buffer;
pop
30: aload 6
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 this Lsun/nio/cs/SingleByte$Encoder;
0 31 1 src Ljava/nio/CharBuffer;
0 31 2 dst Ljava/nio/ByteBuffer;
1 31 3 mark I
3 24 4 c C
4 24 5 b I
Exception table:
from to target type
1 10 28 any
12 13 28 any
15 16 28 any
18 20 28 any
22 26 28 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.SingleByte$Encoder.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.SingleByte$Encoder.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/SingleByte$Encoder;
0 3 1 src Ljava/nio/CharBuffer;
0 3 2 dst Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
src
dst
private final int encode(char);
descriptor: (C)I
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.cs.SingleByte$Encoder.c2bIndex:[C
iload 1
bipush 8
ishr
caload
istore 2
start local 2 1: iload 2
ldc 65533
if_icmpne 3
2: ldc 65533
ireturn
3: StackMap locals: int
StackMap stack:
aload 0
getfield sun.nio.cs.SingleByte$Encoder.c2b:[C
iload 2
iload 1
sipush 255
iand
iadd
caload
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/cs/SingleByte$Encoder;
0 4 1 ch C
1 4 2 index C
MethodParameters:
Name Flags
ch
protected void implReplaceWith(byte[]);
descriptor: ([B)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
baload
putfield sun.nio.cs.SingleByte$Encoder.repl:B
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/nio/cs/SingleByte$Encoder;
0 2 1 newReplacement [B
MethodParameters:
Name Flags
newReplacement
public int encode(char[], int, int, byte[]);
descriptor: ([CII[B)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=9, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: iconst_0
istore 5
start local 5 1: iload 2
iload 3
aload 4
arraylength
invokestatic java.lang.Math.min:(II)I
iadd
istore 6
start local 6 2: goto 15
3: StackMap locals: int int
StackMap stack:
aload 1
iload 2
iinc 2 1
caload
istore 7
start local 7 4: aload 0
iload 7
invokevirtual sun.nio.cs.SingleByte$Encoder.encode:(C)I
istore 8
start local 8 5: iload 8
ldc 65533
if_icmpeq 8
6: aload 4
iload 5
iinc 5 1
iload 8
i2b
bastore
7: goto 15
8: StackMap locals: int int
StackMap stack:
iload 7
invokestatic java.lang.Character.isHighSurrogate:(C)Z
ifeq 14
iload 2
iload 6
if_icmpge 14
9: aload 1
iload 2
caload
invokestatic java.lang.Character.isLowSurrogate:(C)Z
ifeq 14
10: iload 3
aload 4
arraylength
if_icmple 13
11: iinc 6 1
12: iinc 3 -1
13: StackMap locals:
StackMap stack:
iinc 2 1
14: StackMap locals:
StackMap stack:
aload 4
iload 5
iinc 5 1
aload 0
getfield sun.nio.cs.SingleByte$Encoder.repl:B
bastore
end local 8 end local 7 15: StackMap locals:
StackMap stack:
iload 2
iload 6
if_icmplt 3
16: iload 5
ireturn
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 17 0 this Lsun/nio/cs/SingleByte$Encoder;
0 17 1 src [C
0 17 2 sp I
0 17 3 len I
0 17 4 dst [B
1 17 5 dp I
2 17 6 sl I
4 15 7 c C
5 15 8 b I
MethodParameters:
Name Flags
src
sp
len
dst
}
SourceFile: "SingleByte.java"
NestHost: sun.nio.cs.SingleByte
InnerClasses:
public final Encoder = sun.nio.cs.SingleByte$Encoder of sun.nio.cs.SingleByte
public Parser = sun.nio.cs.Surrogate$Parser of sun.nio.cs.Surrogate