public abstract class java.nio.charset.CharsetEncoder
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: java.nio.charset.CharsetEncoder
super_class: java.lang.Object
{
private final java.nio.charset.Charset charset;
descriptor: Ljava/nio/charset/Charset;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final float averageBytesPerChar;
descriptor: F
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final float maxBytesPerChar;
descriptor: F
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private byte[] replacement;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
private java.nio.charset.CodingErrorAction malformedInputAction;
descriptor: Ljava/nio/charset/CodingErrorAction;
flags: (0x0002) ACC_PRIVATE
private java.nio.charset.CodingErrorAction unmappableCharacterAction;
descriptor: Ljava/nio/charset/CodingErrorAction;
flags: (0x0002) ACC_PRIVATE
private static final int ST_RESET;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0
private static final int ST_CODING;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private static final int ST_END;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private static final int ST_FLUSHED;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 3
private int state;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private static java.lang.String[] stateNames;
descriptor: [Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
private java.lang.ref.WeakReference<java.nio.charset.CharsetDecoder> cachedDecoder;
descriptor: Ljava/lang/ref/WeakReference;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/lang/ref/WeakReference<Ljava/nio/charset/CharsetDecoder;>;
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=4, locals=0, args_size=0
0: ldc Ljava/nio/charset/CharsetEncoder;
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 java.nio.charset.CharsetEncoder.$assertionsDisabled:Z
3: iconst_4
anewarray java.lang.String
dup
iconst_0
ldc "RESET"
aastore
dup
iconst_1
ldc "CODING"
aastore
dup
iconst_2
ldc "CODING_END"
aastore
dup
iconst_3
ldc "FLUSHED"
aastore
4: putstatic java.nio.charset.CharsetEncoder.stateNames:[Ljava/lang/String;
5: return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>(java.nio.charset.Charset, float, float, byte[]);
descriptor: (Ljava/nio/charset/Charset;FF[B)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
2: getstatic java.nio.charset.CodingErrorAction.REPORT:Ljava/nio/charset/CodingErrorAction;
putfield java.nio.charset.CharsetEncoder.malformedInputAction:Ljava/nio/charset/CodingErrorAction;
3: aload 0
4: getstatic java.nio.charset.CodingErrorAction.REPORT:Ljava/nio/charset/CodingErrorAction;
putfield java.nio.charset.CharsetEncoder.unmappableCharacterAction:Ljava/nio/charset/CodingErrorAction;
5: aload 0
iconst_0
putfield java.nio.charset.CharsetEncoder.state:I
6: aload 0
aconst_null
putfield java.nio.charset.CharsetEncoder.cachedDecoder:Ljava/lang/ref/WeakReference;
7: aload 0
aload 1
putfield java.nio.charset.CharsetEncoder.charset:Ljava/nio/charset/Charset;
8: fload 2
fconst_0
fcmpl
ifgt 10
9: new java.lang.IllegalArgumentException
dup
ldc "Non-positive averageBytesPerChar"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals: java.nio.charset.CharsetEncoder java.nio.charset.Charset float float byte[]
StackMap stack:
fload 3
fconst_0
fcmpl
ifgt 12
11: new java.lang.IllegalArgumentException
dup
ldc "Non-positive maxBytesPerChar"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
fload 2
fload 3
fcmpl
ifle 14
13: new java.lang.IllegalArgumentException
dup
ldc "averageBytesPerChar exceeds maxBytesPerChar"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
aload 0
aload 4
putfield java.nio.charset.CharsetEncoder.replacement:[B
15: aload 0
fload 2
putfield java.nio.charset.CharsetEncoder.averageBytesPerChar:F
16: aload 0
fload 3
putfield java.nio.charset.CharsetEncoder.maxBytesPerChar:F
17: aload 0
aload 4
invokevirtual java.nio.charset.CharsetEncoder.replaceWith:([B)Ljava/nio/charset/CharsetEncoder;
pop
18: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Ljava/nio/charset/CharsetEncoder;
0 19 1 cs Ljava/nio/charset/Charset;
0 19 2 averageBytesPerChar F
0 19 3 maxBytesPerChar F
0 19 4 replacement [B
MethodParameters:
Name Flags
cs
averageBytesPerChar
maxBytesPerChar
replacement
protected void <init>(java.nio.charset.Charset, float, float);
descriptor: (Ljava/nio/charset/Charset;FF)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
1: fload 2
fload 3
2: iconst_1
newarray 8
dup
iconst_0
bipush 63
bastore
invokespecial java.nio.charset.CharsetEncoder.<init>:(Ljava/nio/charset/Charset;FF[B)V
3: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/nio/charset/CharsetEncoder;
0 4 1 cs Ljava/nio/charset/Charset;
0 4 2 averageBytesPerChar F
0 4 3 maxBytesPerChar F
MethodParameters:
Name Flags
cs
averageBytesPerChar
maxBytesPerChar
public final java.nio.charset.Charset charset();
descriptor: ()Ljava/nio/charset/Charset;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.nio.charset.CharsetEncoder.charset:Ljava/nio/charset/Charset;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/nio/charset/CharsetEncoder;
public final byte[] replacement();
descriptor: ()[B
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield java.nio.charset.CharsetEncoder.replacement:[B
aload 0
getfield java.nio.charset.CharsetEncoder.replacement:[B
arraylength
invokestatic java.util.Arrays.copyOf:([BI)[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/nio/charset/CharsetEncoder;
public final java.nio.charset.CharsetEncoder replaceWith(byte[]);
descriptor: ([B)Ljava/nio/charset/CharsetEncoder;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "Null replacement"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
arraylength
istore 2
start local 2 3: iload 2
ifne 5
4: new java.lang.IllegalArgumentException
dup
ldc "Empty replacement"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals: int
StackMap stack:
iload 2
i2f
aload 0
getfield java.nio.charset.CharsetEncoder.maxBytesPerChar:F
fcmpl
ifle 7
6: new java.lang.IllegalArgumentException
dup
ldc "Replacement too long"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
7: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual java.nio.charset.CharsetEncoder.isLegalReplacement:([B)Z
ifne 9
8: new java.lang.IllegalArgumentException
dup
ldc "Illegal replacement"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 1
arraylength
invokestatic java.util.Arrays.copyOf:([BI)[B
putfield java.nio.charset.CharsetEncoder.replacement:[B
10: aload 0
aload 0
getfield java.nio.charset.CharsetEncoder.replacement:[B
invokevirtual java.nio.charset.CharsetEncoder.implReplaceWith:([B)V
11: aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Ljava/nio/charset/CharsetEncoder;
0 12 1 newReplacement [B
3 12 2 len I
MethodParameters:
Name Flags
newReplacement
protected void implReplaceWith(byte[]);
descriptor: ([B)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/nio/charset/CharsetEncoder;
0 1 1 newReplacement [B
MethodParameters:
Name Flags
newReplacement
public boolean isLegalReplacement(byte[]);
descriptor: ([B)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: aload 0
getfield java.nio.charset.CharsetEncoder.cachedDecoder:Ljava/lang/ref/WeakReference;
astore 2
start local 2 1: aconst_null
astore 3
start local 3 2: aload 2
ifnull 3
aload 2
invokevirtual java.lang.ref.WeakReference.get:()Ljava/lang/Object;
checkcast java.nio.charset.CharsetDecoder
dup
astore 3
ifnonnull 8
3: StackMap locals: java.lang.ref.WeakReference java.nio.charset.CharsetDecoder
StackMap stack:
aload 0
invokevirtual java.nio.charset.CharsetEncoder.charset:()Ljava/nio/charset/Charset;
invokevirtual java.nio.charset.Charset.newDecoder:()Ljava/nio/charset/CharsetDecoder;
astore 3
4: aload 3
getstatic java.nio.charset.CodingErrorAction.REPORT:Ljava/nio/charset/CodingErrorAction;
invokevirtual java.nio.charset.CharsetDecoder.onMalformedInput:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetDecoder;
pop
5: aload 3
getstatic java.nio.charset.CodingErrorAction.REPORT:Ljava/nio/charset/CodingErrorAction;
invokevirtual java.nio.charset.CharsetDecoder.onUnmappableCharacter:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetDecoder;
pop
6: aload 0
new java.lang.ref.WeakReference
dup
aload 3
invokespecial java.lang.ref.WeakReference.<init>:(Ljava/lang/Object;)V
putfield java.nio.charset.CharsetEncoder.cachedDecoder:Ljava/lang/ref/WeakReference;
7: goto 9
8: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.nio.charset.CharsetDecoder.reset:()Ljava/nio/charset/CharsetDecoder;
pop
9: StackMap locals:
StackMap stack:
aload 1
invokestatic java.nio.ByteBuffer.wrap:([B)Ljava/nio/ByteBuffer;
astore 4
start local 4 10: aload 4
invokevirtual java.nio.ByteBuffer.remaining:()I
i2f
11: aload 3
invokevirtual java.nio.charset.CharsetDecoder.maxCharsPerByte:()F
12: fmul
f2i
invokestatic java.nio.CharBuffer.allocate:(I)Ljava/nio/CharBuffer;
astore 5
start local 5 13: aload 3
aload 4
aload 5
iconst_1
invokevirtual java.nio.charset.CharsetDecoder.decode:(Ljava/nio/ByteBuffer;Ljava/nio/CharBuffer;Z)Ljava/nio/charset/CoderResult;
astore 6
start local 6 14: aload 6
invokevirtual java.nio.charset.CoderResult.isError:()Z
ifeq 15
iconst_0
goto 16
StackMap locals: java.nio.ByteBuffer java.nio.CharBuffer java.nio.charset.CoderResult
StackMap stack:
15: iconst_1
StackMap locals:
StackMap stack: int
16: 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 Ljava/nio/charset/CharsetEncoder;
0 17 1 repl [B
1 17 2 wr Ljava/lang/ref/WeakReference<Ljava/nio/charset/CharsetDecoder;>;
2 17 3 dec Ljava/nio/charset/CharsetDecoder;
10 17 4 bb Ljava/nio/ByteBuffer;
13 17 5 cb Ljava/nio/CharBuffer;
14 17 6 cr Ljava/nio/charset/CoderResult;
MethodParameters:
Name Flags
repl
public java.nio.charset.CodingErrorAction malformedInputAction();
descriptor: ()Ljava/nio/charset/CodingErrorAction;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.nio.charset.CharsetEncoder.malformedInputAction:Ljava/nio/charset/CodingErrorAction;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/nio/charset/CharsetEncoder;
public final java.nio.charset.CharsetEncoder onMalformedInput(java.nio.charset.CodingErrorAction);
descriptor: (Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetEncoder;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "Null action"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield java.nio.charset.CharsetEncoder.malformedInputAction:Ljava/nio/charset/CodingErrorAction;
3: aload 0
aload 1
invokevirtual java.nio.charset.CharsetEncoder.implOnMalformedInput:(Ljava/nio/charset/CodingErrorAction;)V
4: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/nio/charset/CharsetEncoder;
0 5 1 newAction Ljava/nio/charset/CodingErrorAction;
MethodParameters:
Name Flags
newAction
protected void implOnMalformedInput(java.nio.charset.CodingErrorAction);
descriptor: (Ljava/nio/charset/CodingErrorAction;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/nio/charset/CharsetEncoder;
0 1 1 newAction Ljava/nio/charset/CodingErrorAction;
MethodParameters:
Name Flags
newAction
public java.nio.charset.CodingErrorAction unmappableCharacterAction();
descriptor: ()Ljava/nio/charset/CodingErrorAction;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.nio.charset.CharsetEncoder.unmappableCharacterAction:Ljava/nio/charset/CodingErrorAction;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/nio/charset/CharsetEncoder;
public final java.nio.charset.CharsetEncoder onUnmappableCharacter(java.nio.charset.CodingErrorAction);
descriptor: (Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetEncoder;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "Null action"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
putfield java.nio.charset.CharsetEncoder.unmappableCharacterAction:Ljava/nio/charset/CodingErrorAction;
3: aload 0
aload 1
invokevirtual java.nio.charset.CharsetEncoder.implOnUnmappableCharacter:(Ljava/nio/charset/CodingErrorAction;)V
4: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/nio/charset/CharsetEncoder;
0 5 1 newAction Ljava/nio/charset/CodingErrorAction;
MethodParameters:
Name Flags
newAction
protected void implOnUnmappableCharacter(java.nio.charset.CodingErrorAction);
descriptor: (Ljava/nio/charset/CodingErrorAction;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=0, locals=2, args_size=2
start local 0 start local 1 0: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/nio/charset/CharsetEncoder;
0 1 1 newAction Ljava/nio/charset/CodingErrorAction;
MethodParameters:
Name Flags
newAction
public final float averageBytesPerChar();
descriptor: ()F
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.nio.charset.CharsetEncoder.averageBytesPerChar:F
freturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/nio/charset/CharsetEncoder;
public final float maxBytesPerChar();
descriptor: ()F
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield java.nio.charset.CharsetEncoder.maxBytesPerChar:F
freturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/nio/charset/CharsetEncoder;
public final java.nio.charset.CoderResult encode(java.nio.CharBuffer, java.nio.ByteBuffer, boolean);
descriptor: (Ljava/nio/CharBuffer;Ljava/nio/ByteBuffer;Z)Ljava/nio/charset/CoderResult;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 3
ifeq 1
iconst_2
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: istore 4
start local 4 3: aload 0
getfield java.nio.charset.CharsetEncoder.state:I
ifeq 6
aload 0
getfield java.nio.charset.CharsetEncoder.state:I
iconst_1
if_icmpeq 6
4: iload 3
ifeq 5
aload 0
getfield java.nio.charset.CharsetEncoder.state:I
iconst_2
if_icmpeq 6
5: StackMap locals: int
StackMap stack:
aload 0
aload 0
getfield java.nio.charset.CharsetEncoder.state:I
iload 4
invokevirtual java.nio.charset.CharsetEncoder.throwIllegalStateException:(II)V
6: StackMap locals:
StackMap stack:
aload 0
iload 4
putfield java.nio.charset.CharsetEncoder.state:I
7: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual java.nio.charset.CharsetEncoder.encodeLoop:(Ljava/nio/CharBuffer;Ljava/nio/ByteBuffer;)Ljava/nio/charset/CoderResult;
astore 5
start local 5 8: goto 13
end local 5 StackMap locals:
StackMap stack: java.nio.BufferUnderflowException
9: astore 6
start local 6 10: new java.nio.charset.CoderMalfunctionError
dup
aload 6
invokespecial java.nio.charset.CoderMalfunctionError.<init>:(Ljava/lang/Exception;)V
athrow
end local 6 11: StackMap locals:
StackMap stack: java.nio.BufferOverflowException
astore 6
start local 6 12: new java.nio.charset.CoderMalfunctionError
dup
aload 6
invokespecial java.nio.charset.CoderMalfunctionError.<init>:(Ljava/lang/Exception;)V
athrow
end local 6 start local 5 13: StackMap locals: java.nio.charset.CoderResult
StackMap stack:
aload 5
invokevirtual java.nio.charset.CoderResult.isOverflow:()Z
ifeq 15
14: aload 5
areturn
15: StackMap locals:
StackMap stack:
aload 5
invokevirtual java.nio.charset.CoderResult.isUnderflow:()Z
ifeq 20
16: iload 3
ifeq 19
aload 1
invokevirtual java.nio.CharBuffer.hasRemaining:()Z
ifeq 19
17: aload 1
invokevirtual java.nio.CharBuffer.remaining:()I
invokestatic java.nio.charset.CoderResult.malformedForLength:(I)Ljava/nio/charset/CoderResult;
astore 5
18: goto 20
19: StackMap locals:
StackMap stack:
aload 5
areturn
20: StackMap locals:
StackMap stack:
aconst_null
astore 6
start local 6 21: aload 5
invokevirtual java.nio.charset.CoderResult.isMalformed:()Z
ifeq 23
22: aload 0
getfield java.nio.charset.CharsetEncoder.malformedInputAction:Ljava/nio/charset/CodingErrorAction;
astore 6
goto 26
23: StackMap locals: java.nio.charset.CodingErrorAction
StackMap stack:
aload 5
invokevirtual java.nio.charset.CoderResult.isUnmappable:()Z
ifeq 25
24: aload 0
getfield java.nio.charset.CharsetEncoder.unmappableCharacterAction:Ljava/nio/charset/CodingErrorAction;
astore 6
goto 26
25: StackMap locals:
StackMap stack:
getstatic java.nio.charset.CharsetEncoder.$assertionsDisabled:Z
ifne 26
new java.lang.AssertionError
dup
aload 5
invokevirtual java.nio.charset.CoderResult.toString:()Ljava/lang/String;
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
26: StackMap locals:
StackMap stack:
aload 6
getstatic java.nio.charset.CodingErrorAction.REPORT:Ljava/nio/charset/CodingErrorAction;
if_acmpne 28
27: aload 5
areturn
28: StackMap locals:
StackMap stack:
aload 6
getstatic java.nio.charset.CodingErrorAction.REPLACE:Ljava/nio/charset/CodingErrorAction;
if_acmpne 32
29: aload 2
invokevirtual java.nio.ByteBuffer.remaining:()I
aload 0
getfield java.nio.charset.CharsetEncoder.replacement:[B
arraylength
if_icmpge 31
30: getstatic java.nio.charset.CoderResult.OVERFLOW:Ljava/nio/charset/CoderResult;
areturn
31: StackMap locals:
StackMap stack:
aload 2
aload 0
getfield java.nio.charset.CharsetEncoder.replacement:[B
invokevirtual java.nio.ByteBuffer.put:([B)Ljava/nio/ByteBuffer;
pop
32: StackMap locals:
StackMap stack:
aload 6
getstatic java.nio.charset.CodingErrorAction.IGNORE:Ljava/nio/charset/CodingErrorAction;
if_acmpeq 34
33: aload 6
getstatic java.nio.charset.CodingErrorAction.REPLACE:Ljava/nio/charset/CodingErrorAction;
if_acmpne 36
34: StackMap locals:
StackMap stack:
aload 1
aload 1
invokevirtual java.nio.CharBuffer.position:()I
aload 5
invokevirtual java.nio.charset.CoderResult.length:()I
iadd
invokevirtual java.nio.CharBuffer.position:(I)Ljava/nio/CharBuffer;
pop
35: goto 7
36: StackMap locals:
StackMap stack:
getstatic java.nio.charset.CharsetEncoder.$assertionsDisabled:Z
ifne 7
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
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 37 0 this Ljava/nio/charset/CharsetEncoder;
0 37 1 in Ljava/nio/CharBuffer;
0 37 2 out Ljava/nio/ByteBuffer;
0 37 3 endOfInput Z
3 37 4 newState I
8 9 5 cr Ljava/nio/charset/CoderResult;
13 37 5 cr Ljava/nio/charset/CoderResult;
10 11 6 x Ljava/nio/BufferUnderflowException;
12 13 6 x Ljava/nio/BufferOverflowException;
21 37 6 action Ljava/nio/charset/CodingErrorAction;
Exception table:
from to target type
7 8 9 Class java.nio.BufferUnderflowException
7 8 11 Class java.nio.BufferOverflowException
MethodParameters:
Name Flags
in
out
endOfInput
public final java.nio.charset.CoderResult flush(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)Ljava/nio/charset/CoderResult;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield java.nio.charset.CharsetEncoder.state:I
iconst_2
if_icmpne 5
1: aload 0
aload 1
invokevirtual java.nio.charset.CharsetEncoder.implFlush:(Ljava/nio/ByteBuffer;)Ljava/nio/charset/CoderResult;
astore 2
start local 2 2: aload 2
invokevirtual java.nio.charset.CoderResult.isUnderflow:()Z
ifeq 4
3: aload 0
iconst_3
putfield java.nio.charset.CharsetEncoder.state:I
4: StackMap locals: java.nio.charset.CoderResult
StackMap stack:
aload 2
areturn
end local 2 5: StackMap locals:
StackMap stack:
aload 0
getfield java.nio.charset.CharsetEncoder.state:I
iconst_3
if_icmpeq 7
6: aload 0
aload 0
getfield java.nio.charset.CharsetEncoder.state:I
iconst_3
invokevirtual java.nio.charset.CharsetEncoder.throwIllegalStateException:(II)V
7: StackMap locals:
StackMap stack:
getstatic java.nio.charset.CoderResult.UNDERFLOW:Ljava/nio/charset/CoderResult;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljava/nio/charset/CharsetEncoder;
0 8 1 out Ljava/nio/ByteBuffer;
2 5 2 cr Ljava/nio/charset/CoderResult;
MethodParameters:
Name Flags
out
protected java.nio.charset.CoderResult implFlush(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)Ljava/nio/charset/CoderResult;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: getstatic java.nio.charset.CoderResult.UNDERFLOW:Ljava/nio/charset/CoderResult;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/nio/charset/CharsetEncoder;
0 1 1 out Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
out
public final java.nio.charset.CharsetEncoder reset();
descriptor: ()Ljava/nio/charset/CharsetEncoder;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual java.nio.charset.CharsetEncoder.implReset:()V
1: aload 0
iconst_0
putfield java.nio.charset.CharsetEncoder.state:I
2: aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/nio/charset/CharsetEncoder;
protected void implReset();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljava/nio/charset/CharsetEncoder;
protected abstract java.nio.charset.CoderResult encodeLoop(java.nio.CharBuffer, java.nio.ByteBuffer);
descriptor: (Ljava/nio/CharBuffer;Ljava/nio/ByteBuffer;)Ljava/nio/charset/CoderResult;
flags: (0x0404) ACC_PROTECTED, ACC_ABSTRACT
MethodParameters:
Name Flags
in
out
public final java.nio.ByteBuffer encode(java.nio.CharBuffer);
descriptor: (Ljava/nio/CharBuffer;)Ljava/nio/ByteBuffer;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.nio.CharBuffer.remaining:()I
i2f
aload 0
invokevirtual java.nio.charset.CharsetEncoder.averageBytesPerChar:()F
fmul
f2i
istore 2
start local 2 1: iload 2
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
astore 3
start local 3 2: iload 2
ifne 4
aload 1
invokevirtual java.nio.CharBuffer.remaining:()I
ifne 4
3: aload 3
areturn
4: StackMap locals: int java.nio.ByteBuffer
StackMap stack:
aload 0
invokevirtual java.nio.charset.CharsetEncoder.reset:()Ljava/nio/charset/CharsetEncoder;
pop
5: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.nio.CharBuffer.hasRemaining:()Z
ifeq 7
6: aload 0
aload 1
aload 3
iconst_1
invokevirtual java.nio.charset.CharsetEncoder.encode:(Ljava/nio/CharBuffer;Ljava/nio/ByteBuffer;Z)Ljava/nio/charset/CoderResult;
goto 8
StackMap locals:
StackMap stack:
7: getstatic java.nio.charset.CoderResult.UNDERFLOW:Ljava/nio/charset/CoderResult;
8: StackMap locals:
StackMap stack: java.nio.charset.CoderResult
astore 4
start local 4 9: aload 4
invokevirtual java.nio.charset.CoderResult.isUnderflow:()Z
ifeq 11
10: aload 0
aload 3
invokevirtual java.nio.charset.CharsetEncoder.flush:(Ljava/nio/ByteBuffer;)Ljava/nio/charset/CoderResult;
astore 4
11: StackMap locals: java.nio.charset.CoderResult
StackMap stack:
aload 4
invokevirtual java.nio.charset.CoderResult.isUnderflow:()Z
ifeq 13
12: goto 22
13: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.nio.charset.CoderResult.isOverflow:()Z
ifeq 20
14: iconst_2
iload 2
imul
iconst_1
iadd
istore 2
15: iload 2
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
astore 5
start local 5 16: aload 3
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/ByteBuffer;
pop
17: aload 5
aload 3
invokevirtual java.nio.ByteBuffer.put:(Ljava/nio/ByteBuffer;)Ljava/nio/ByteBuffer;
pop
18: aload 5
astore 3
19: goto 5
end local 5 20: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.nio.charset.CoderResult.throwException:()V
end local 4 21: goto 5
22: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/ByteBuffer;
pop
23: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Ljava/nio/charset/CharsetEncoder;
0 24 1 in Ljava/nio/CharBuffer;
1 24 2 n I
2 24 3 out Ljava/nio/ByteBuffer;
9 21 4 cr Ljava/nio/charset/CoderResult;
16 20 5 o Ljava/nio/ByteBuffer;
Exceptions:
throws java.nio.charset.CharacterCodingException
MethodParameters:
Name Flags
in
private boolean canEncode(java.nio.CharBuffer);
descriptor: (Ljava/nio/CharBuffer;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: aload 0
getfield java.nio.charset.CharsetEncoder.state:I
iconst_3
if_icmpne 2
1: aload 0
invokevirtual java.nio.charset.CharsetEncoder.reset:()Ljava/nio/charset/CharsetEncoder;
pop
goto 4
2: StackMap locals:
StackMap stack:
aload 0
getfield java.nio.charset.CharsetEncoder.state:I
ifeq 4
3: aload 0
aload 0
getfield java.nio.charset.CharsetEncoder.state:I
iconst_1
invokevirtual java.nio.charset.CharsetEncoder.throwIllegalStateException:(II)V
4: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.nio.charset.CharsetEncoder.malformedInputAction:()Ljava/nio/charset/CodingErrorAction;
astore 2
start local 2 5: aload 0
invokevirtual java.nio.charset.CharsetEncoder.unmappableCharacterAction:()Ljava/nio/charset/CodingErrorAction;
astore 3
start local 3 6: aload 0
getstatic java.nio.charset.CodingErrorAction.REPORT:Ljava/nio/charset/CodingErrorAction;
invokevirtual java.nio.charset.CharsetEncoder.onMalformedInput:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetEncoder;
pop
7: aload 0
getstatic java.nio.charset.CodingErrorAction.REPORT:Ljava/nio/charset/CodingErrorAction;
invokevirtual java.nio.charset.CharsetEncoder.onUnmappableCharacter:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetEncoder;
pop
8: aload 0
aload 1
invokevirtual java.nio.charset.CharsetEncoder.encode:(Ljava/nio/CharBuffer;)Ljava/nio/ByteBuffer;
pop
9: goto 20
StackMap locals: java.nio.charset.CharsetEncoder java.nio.CharBuffer java.nio.charset.CodingErrorAction java.nio.charset.CodingErrorAction
StackMap stack: java.nio.charset.CharacterCodingException
10: pop
11: aload 0
aload 2
invokevirtual java.nio.charset.CharsetEncoder.onMalformedInput:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetEncoder;
pop
12: aload 0
aload 3
invokevirtual java.nio.charset.CharsetEncoder.onUnmappableCharacter:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetEncoder;
pop
13: aload 0
invokevirtual java.nio.charset.CharsetEncoder.reset:()Ljava/nio/charset/CharsetEncoder;
pop
14: iconst_0
ireturn
15: StackMap locals:
StackMap stack: java.lang.Throwable
astore 4
16: aload 0
aload 2
invokevirtual java.nio.charset.CharsetEncoder.onMalformedInput:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetEncoder;
pop
17: aload 0
aload 3
invokevirtual java.nio.charset.CharsetEncoder.onUnmappableCharacter:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetEncoder;
pop
18: aload 0
invokevirtual java.nio.charset.CharsetEncoder.reset:()Ljava/nio/charset/CharsetEncoder;
pop
19: aload 4
athrow
20: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual java.nio.charset.CharsetEncoder.onMalformedInput:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetEncoder;
pop
21: aload 0
aload 3
invokevirtual java.nio.charset.CharsetEncoder.onUnmappableCharacter:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetEncoder;
pop
22: aload 0
invokevirtual java.nio.charset.CharsetEncoder.reset:()Ljava/nio/charset/CharsetEncoder;
pop
23: iconst_1
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Ljava/nio/charset/CharsetEncoder;
0 24 1 cb Ljava/nio/CharBuffer;
5 24 2 ma Ljava/nio/charset/CodingErrorAction;
6 24 3 ua Ljava/nio/charset/CodingErrorAction;
Exception table:
from to target type
6 9 10 Class java.nio.charset.CharacterCodingException
6 11 15 any
MethodParameters:
Name Flags
cb
public boolean canEncode(char);
descriptor: (C)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: iconst_1
invokestatic java.nio.CharBuffer.allocate:(I)Ljava/nio/CharBuffer;
astore 2
start local 2 1: aload 2
iload 1
invokevirtual java.nio.CharBuffer.put:(C)Ljava/nio/CharBuffer;
pop
2: aload 2
invokevirtual java.nio.CharBuffer.flip:()Ljava/nio/CharBuffer;
pop
3: aload 0
aload 2
invokevirtual java.nio.charset.CharsetEncoder.canEncode:(Ljava/nio/CharBuffer;)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljava/nio/charset/CharsetEncoder;
0 4 1 c C
1 4 2 cb Ljava/nio/CharBuffer;
MethodParameters:
Name Flags
c
public boolean canEncode(java.lang.CharSequence);
descriptor: (Ljava/lang/CharSequence;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
instanceof java.nio.CharBuffer
ifeq 3
1: aload 1
checkcast java.nio.CharBuffer
invokevirtual java.nio.CharBuffer.duplicate:()Ljava/nio/CharBuffer;
astore 2
start local 2 2: goto 4
end local 2 3: StackMap locals:
StackMap stack:
aload 1
invokeinterface java.lang.CharSequence.toString:()Ljava/lang/String;
invokestatic java.nio.CharBuffer.wrap:(Ljava/lang/CharSequence;)Ljava/nio/CharBuffer;
astore 2
start local 2 4: StackMap locals: java.nio.CharBuffer
StackMap stack:
aload 0
aload 2
invokevirtual java.nio.charset.CharsetEncoder.canEncode:(Ljava/nio/CharBuffer;)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljava/nio/charset/CharsetEncoder;
0 5 1 cs Ljava/lang/CharSequence;
2 3 2 cb Ljava/nio/CharBuffer;
4 5 2 cb Ljava/nio/CharBuffer;
MethodParameters:
Name Flags
cs
private void throwIllegalStateException(int, int);
descriptor: (II)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new java.lang.IllegalStateException
dup
new java.lang.StringBuilder
dup
ldc "Current state = "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
getstatic java.nio.charset.CharsetEncoder.stateNames:[Ljava/lang/String;
iload 1
aaload
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
1: ldc ", new state = "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
getstatic java.nio.charset.CharsetEncoder.stateNames:[Ljava/lang/String;
iload 2
aaload
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
2: invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljava/nio/charset/CharsetEncoder;
0 3 1 from I
0 3 2 to I
MethodParameters:
Name Flags
from
to
}
SourceFile: "CharsetEncoder.java"