public class sun.nio.cs.StreamEncoder extends java.io.Writer
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.nio.cs.StreamEncoder
super_class: java.io.Writer
{
private static final int DEFAULT_BYTE_BUFFER_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 8192
private volatile boolean isOpen;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private java.nio.charset.Charset cs;
descriptor: Ljava/nio/charset/Charset;
flags: (0x0002) ACC_PRIVATE
private java.nio.charset.CharsetEncoder encoder;
descriptor: Ljava/nio/charset/CharsetEncoder;
flags: (0x0002) ACC_PRIVATE
private java.nio.ByteBuffer bb;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0002) ACC_PRIVATE
private final java.io.OutputStream out;
descriptor: Ljava/io/OutputStream;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private java.nio.channels.WritableByteChannel ch;
descriptor: Ljava/nio/channels/WritableByteChannel;
flags: (0x0002) ACC_PRIVATE
private boolean haveLeftoverChar;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private char leftoverChar;
descriptor: C
flags: (0x0002) ACC_PRIVATE
private java.nio.CharBuffer lcb;
descriptor: Ljava/nio/CharBuffer;
flags: (0x0002) ACC_PRIVATE
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/StreamEncoder;
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.StreamEncoder.$assertionsDisabled:Z
3: return
LocalVariableTable:
Start End Slot Name Signature
private void ensureOpen();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.cs.StreamEncoder.isOpen:Z
ifne 2
1: new java.io.IOException
dup
ldc "Stream closed"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/cs/StreamEncoder;
Exceptions:
throws java.io.IOException
public static sun.nio.cs.StreamEncoder forOutputStreamWriter(java.io.OutputStream, java.lang.Object, java.lang.String);
descriptor: (Ljava/io/OutputStream;Ljava/lang/Object;Ljava/lang/String;)Lsun/nio/cs/StreamEncoder;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
astore 3
start local 3 1: aload 3
ifnonnull 3
2: invokestatic java.nio.charset.Charset.defaultCharset:()Ljava/nio/charset/Charset;
invokevirtual java.nio.charset.Charset.name:()Ljava/lang/String;
astore 3
3: StackMap locals: java.lang.String
StackMap stack:
aload 3
invokestatic java.nio.charset.Charset.isSupported:(Ljava/lang/String;)Z
ifeq 7
4: new sun.nio.cs.StreamEncoder
dup
aload 0
aload 1
aload 3
invokestatic java.nio.charset.Charset.forName:(Ljava/lang/String;)Ljava/nio/charset/Charset;
invokespecial sun.nio.cs.StreamEncoder.<init>:(Ljava/io/OutputStream;Ljava/lang/Object;Ljava/nio/charset/Charset;)V
5: areturn
6: StackMap locals:
StackMap stack: java.nio.charset.IllegalCharsetNameException
pop
7: StackMap locals:
StackMap stack:
new java.io.UnsupportedEncodingException
dup
aload 3
invokespecial java.io.UnsupportedEncodingException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 out Ljava/io/OutputStream;
0 8 1 lock Ljava/lang/Object;
0 8 2 charsetName Ljava/lang/String;
1 8 3 csn Ljava/lang/String;
Exception table:
from to target type
3 5 6 Class java.nio.charset.IllegalCharsetNameException
Exceptions:
throws java.io.UnsupportedEncodingException
MethodParameters:
Name Flags
out
lock
charsetName
public static sun.nio.cs.StreamEncoder forOutputStreamWriter(java.io.OutputStream, java.lang.Object, java.nio.charset.Charset);
descriptor: (Ljava/io/OutputStream;Ljava/lang/Object;Ljava/nio/charset/Charset;)Lsun/nio/cs/StreamEncoder;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new sun.nio.cs.StreamEncoder
dup
aload 0
aload 1
aload 2
invokespecial sun.nio.cs.StreamEncoder.<init>:(Ljava/io/OutputStream;Ljava/lang/Object;Ljava/nio/charset/Charset;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 out Ljava/io/OutputStream;
0 1 1 lock Ljava/lang/Object;
0 1 2 cs Ljava/nio/charset/Charset;
MethodParameters:
Name Flags
out
lock
cs
public static sun.nio.cs.StreamEncoder forOutputStreamWriter(java.io.OutputStream, java.lang.Object, java.nio.charset.CharsetEncoder);
descriptor: (Ljava/io/OutputStream;Ljava/lang/Object;Ljava/nio/charset/CharsetEncoder;)Lsun/nio/cs/StreamEncoder;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new sun.nio.cs.StreamEncoder
dup
aload 0
aload 1
aload 2
invokespecial sun.nio.cs.StreamEncoder.<init>:(Ljava/io/OutputStream;Ljava/lang/Object;Ljava/nio/charset/CharsetEncoder;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 out Ljava/io/OutputStream;
0 1 1 lock Ljava/lang/Object;
0 1 2 enc Ljava/nio/charset/CharsetEncoder;
MethodParameters:
Name Flags
out
lock
enc
public static sun.nio.cs.StreamEncoder forEncoder(java.nio.channels.WritableByteChannel, java.nio.charset.CharsetEncoder, int);
descriptor: (Ljava/nio/channels/WritableByteChannel;Ljava/nio/charset/CharsetEncoder;I)Lsun/nio/cs/StreamEncoder;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new sun.nio.cs.StreamEncoder
dup
aload 0
aload 1
iload 2
invokespecial sun.nio.cs.StreamEncoder.<init>:(Ljava/nio/channels/WritableByteChannel;Ljava/nio/charset/CharsetEncoder;I)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 ch Ljava/nio/channels/WritableByteChannel;
0 1 1 enc Ljava/nio/charset/CharsetEncoder;
0 1 2 minBufferCap I
MethodParameters:
Name Flags
ch
enc
minBufferCap
public java.lang.String getEncoding();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.cs.StreamEncoder.isOpen:()Z
ifeq 2
1: aload 0
invokevirtual sun.nio.cs.StreamEncoder.encodingName:()Ljava/lang/String;
areturn
2: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/cs/StreamEncoder;
public void flushBuffer();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.nio.cs.StreamEncoder.lock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
invokevirtual sun.nio.cs.StreamEncoder.isOpen:()Z
ifeq 3
2: aload 0
invokevirtual sun.nio.cs.StreamEncoder.implFlushBuffer:()V
goto 4
3: StackMap locals: java.lang.Object
StackMap stack:
new java.io.IOException
dup
ldc "Stream closed"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 1
monitorexit
5: goto 8
StackMap locals:
StackMap stack: java.lang.Throwable
6: aload 1
monitorexit
7: athrow
8: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lsun/nio/cs/StreamEncoder;
Exception table:
from to target type
1 5 6 any
6 7 6 any
Exceptions:
throws java.io.IOException
public void write(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: iconst_1
newarray 5
astore 2
start local 2 1: aload 2
iconst_0
iload 1
i2c
castore
2: aload 0
aload 2
iconst_0
iconst_1
invokevirtual sun.nio.cs.StreamEncoder.write:([CII)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/cs/StreamEncoder;
0 4 1 c I
1 4 2 cbuf [C
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
c
public void write(char[], int, int);
descriptor: ([CII)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield sun.nio.cs.StreamEncoder.lock:Ljava/lang/Object;
dup
astore 4
monitorenter
1: aload 0
invokevirtual sun.nio.cs.StreamEncoder.ensureOpen:()V
2: iload 2
iflt 4
iload 2
aload 1
arraylength
if_icmpgt 4
iload 3
iflt 4
3: iload 2
iload 3
iadd
aload 1
arraylength
if_icmpgt 4
iload 2
iload 3
iadd
ifge 5
4: StackMap locals: java.lang.Object
StackMap stack:
new java.lang.IndexOutOfBoundsException
dup
invokespecial java.lang.IndexOutOfBoundsException.<init>:()V
athrow
5: StackMap locals:
StackMap stack:
iload 3
ifne 8
6: aload 4
monitorexit
7: return
8: StackMap locals:
StackMap stack:
aload 0
aload 1
iload 2
iload 3
invokevirtual sun.nio.cs.StreamEncoder.implWrite:([CII)V
9: aload 4
monitorexit
10: goto 13
StackMap locals:
StackMap stack: java.lang.Throwable
11: aload 4
monitorexit
12: athrow
13: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lsun/nio/cs/StreamEncoder;
0 14 1 cbuf [C
0 14 2 off I
0 14 3 len I
Exception table:
from to target type
1 7 11 any
8 10 11 any
11 12 11 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
cbuf
off
len
public void write(java.lang.String, int, int);
descriptor: (Ljava/lang/String;II)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: iload 3
ifge 2
1: new java.lang.IndexOutOfBoundsException
dup
invokespecial java.lang.IndexOutOfBoundsException.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
iload 3
newarray 5
astore 4
start local 4 3: aload 1
iload 2
iload 2
iload 3
iadd
aload 4
iconst_0
invokevirtual java.lang.String.getChars:(II[CI)V
4: aload 0
aload 4
iconst_0
iload 3
invokevirtual sun.nio.cs.StreamEncoder.write:([CII)V
5: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/nio/cs/StreamEncoder;
0 6 1 str Ljava/lang/String;
0 6 2 off I
0 6 3 len I
3 6 4 cbuf [C
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
str
off
len
public void flush();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.nio.cs.StreamEncoder.lock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
invokevirtual sun.nio.cs.StreamEncoder.ensureOpen:()V
2: aload 0
invokevirtual sun.nio.cs.StreamEncoder.implFlush:()V
3: aload 1
monitorexit
4: goto 7
StackMap locals: sun.nio.cs.StreamEncoder java.lang.Object
StackMap stack: java.lang.Throwable
5: aload 1
monitorexit
6: athrow
7: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/nio/cs/StreamEncoder;
Exception table:
from to target type
1 4 5 any
5 6 5 any
Exceptions:
throws java.io.IOException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield sun.nio.cs.StreamEncoder.lock:Ljava/lang/Object;
dup
astore 1
monitorenter
1: aload 0
getfield sun.nio.cs.StreamEncoder.isOpen:Z
ifne 4
2: aload 1
monitorexit
3: return
4: StackMap locals: java.lang.Object
StackMap stack:
aload 0
invokevirtual sun.nio.cs.StreamEncoder.implClose:()V
5: aload 0
iconst_0
putfield sun.nio.cs.StreamEncoder.isOpen:Z
6: aload 1
monitorexit
7: goto 10
StackMap locals:
StackMap stack: java.lang.Throwable
8: aload 1
monitorexit
9: athrow
10: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/nio/cs/StreamEncoder;
Exception table:
from to target type
1 3 8 any
4 7 8 any
8 9 8 any
Exceptions:
throws java.io.IOException
private boolean isOpen();
descriptor: ()Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.cs.StreamEncoder.isOpen:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/nio/cs/StreamEncoder;
private void <init>(java.io.OutputStream, java.lang.Object, java.nio.charset.Charset);
descriptor: (Ljava/io/OutputStream;Ljava/lang/Object;Ljava/nio/charset/Charset;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
aload 2
1: aload 3
invokevirtual java.nio.charset.Charset.newEncoder:()Ljava/nio/charset/CharsetEncoder;
2: getstatic java.nio.charset.CodingErrorAction.REPLACE:Ljava/nio/charset/CodingErrorAction;
invokevirtual java.nio.charset.CharsetEncoder.onMalformedInput:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetEncoder;
3: getstatic java.nio.charset.CodingErrorAction.REPLACE:Ljava/nio/charset/CodingErrorAction;
invokevirtual java.nio.charset.CharsetEncoder.onUnmappableCharacter:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetEncoder;
invokespecial sun.nio.cs.StreamEncoder.<init>:(Ljava/io/OutputStream;Ljava/lang/Object;Ljava/nio/charset/CharsetEncoder;)V
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/StreamEncoder;
0 5 1 out Ljava/io/OutputStream;
0 5 2 lock Ljava/lang/Object;
0 5 3 cs Ljava/nio/charset/Charset;
MethodParameters:
Name Flags
out
lock
cs
private void <init>(java.io.OutputStream, java.lang.Object, java.nio.charset.CharsetEncoder);
descriptor: (Ljava/io/OutputStream;Ljava/lang/Object;Ljava/nio/charset/CharsetEncoder;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 2
invokespecial java.io.Writer.<init>:(Ljava/lang/Object;)V
1: aload 0
iconst_1
putfield sun.nio.cs.StreamEncoder.isOpen:Z
2: aload 0
iconst_0
putfield sun.nio.cs.StreamEncoder.haveLeftoverChar:Z
3: aload 0
aconst_null
putfield sun.nio.cs.StreamEncoder.lcb:Ljava/nio/CharBuffer;
4: aload 0
aload 1
putfield sun.nio.cs.StreamEncoder.out:Ljava/io/OutputStream;
5: aload 0
aconst_null
putfield sun.nio.cs.StreamEncoder.ch:Ljava/nio/channels/WritableByteChannel;
6: aload 0
aload 3
invokevirtual java.nio.charset.CharsetEncoder.charset:()Ljava/nio/charset/Charset;
putfield sun.nio.cs.StreamEncoder.cs:Ljava/nio/charset/Charset;
7: aload 0
aload 3
putfield sun.nio.cs.StreamEncoder.encoder:Ljava/nio/charset/CharsetEncoder;
8: aload 0
getfield sun.nio.cs.StreamEncoder.ch:Ljava/nio/channels/WritableByteChannel;
ifnonnull 10
9: aload 0
sipush 8192
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
putfield sun.nio.cs.StreamEncoder.bb:Ljava/nio/ByteBuffer;
10: StackMap locals: sun.nio.cs.StreamEncoder java.io.OutputStream java.lang.Object java.nio.charset.CharsetEncoder
StackMap stack:
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/StreamEncoder;
0 11 1 out Ljava/io/OutputStream;
0 11 2 lock Ljava/lang/Object;
0 11 3 enc Ljava/nio/charset/CharsetEncoder;
MethodParameters:
Name Flags
out
lock
enc
private void <init>(java.nio.channels.WritableByteChannel, java.nio.charset.CharsetEncoder, int);
descriptor: (Ljava/nio/channels/WritableByteChannel;Ljava/nio/charset/CharsetEncoder;I)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.io.Writer.<init>:()V
1: aload 0
iconst_1
putfield sun.nio.cs.StreamEncoder.isOpen:Z
2: aload 0
iconst_0
putfield sun.nio.cs.StreamEncoder.haveLeftoverChar:Z
3: aload 0
aconst_null
putfield sun.nio.cs.StreamEncoder.lcb:Ljava/nio/CharBuffer;
4: aload 0
aconst_null
putfield sun.nio.cs.StreamEncoder.out:Ljava/io/OutputStream;
5: aload 0
aload 1
putfield sun.nio.cs.StreamEncoder.ch:Ljava/nio/channels/WritableByteChannel;
6: aload 0
aload 2
invokevirtual java.nio.charset.CharsetEncoder.charset:()Ljava/nio/charset/Charset;
putfield sun.nio.cs.StreamEncoder.cs:Ljava/nio/charset/Charset;
7: aload 0
aload 2
putfield sun.nio.cs.StreamEncoder.encoder:Ljava/nio/charset/CharsetEncoder;
8: aload 0
iload 3
ifge 10
9: sipush 8192
goto 11
10: StackMap locals: sun.nio.cs.StreamEncoder java.nio.channels.WritableByteChannel java.nio.charset.CharsetEncoder int
StackMap stack: sun.nio.cs.StreamEncoder
iload 3
11: StackMap locals: sun.nio.cs.StreamEncoder java.nio.channels.WritableByteChannel java.nio.charset.CharsetEncoder int
StackMap stack: sun.nio.cs.StreamEncoder int
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
putfield sun.nio.cs.StreamEncoder.bb:Ljava/nio/ByteBuffer;
12: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lsun/nio/cs/StreamEncoder;
0 13 1 ch Ljava/nio/channels/WritableByteChannel;
0 13 2 enc Ljava/nio/charset/CharsetEncoder;
0 13 3 mbc I
MethodParameters:
Name Flags
ch
enc
mbc
private void writeBytes();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
getfield sun.nio.cs.StreamEncoder.bb:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/Buffer;
pop
1: aload 0
getfield sun.nio.cs.StreamEncoder.bb:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.limit:()I
istore 1
start local 1 2: aload 0
getfield sun.nio.cs.StreamEncoder.bb:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.position:()I
istore 2
start local 2 3: getstatic sun.nio.cs.StreamEncoder.$assertionsDisabled:Z
ifne 4
iload 2
iload 1
if_icmple 4
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
4: StackMap locals: int int
StackMap stack:
iload 2
iload 1
if_icmpgt 5
iload 1
iload 2
isub
goto 6
StackMap locals:
StackMap stack:
5: iconst_0
StackMap locals:
StackMap stack: int
6: istore 3
start local 3 7: iload 3
ifle 12
8: aload 0
getfield sun.nio.cs.StreamEncoder.ch:Ljava/nio/channels/WritableByteChannel;
ifnull 11
9: aload 0
getfield sun.nio.cs.StreamEncoder.ch:Ljava/nio/channels/WritableByteChannel;
aload 0
getfield sun.nio.cs.StreamEncoder.bb:Ljava/nio/ByteBuffer;
invokeinterface java.nio.channels.WritableByteChannel.write:(Ljava/nio/ByteBuffer;)I
iload 3
if_icmpeq 12
10: getstatic sun.nio.cs.StreamEncoder.$assertionsDisabled:Z
ifne 12
new java.lang.AssertionError
dup
iload 3
invokespecial java.lang.AssertionError.<init>:(I)V
athrow
11: StackMap locals: int
StackMap stack:
aload 0
getfield sun.nio.cs.StreamEncoder.out:Ljava/io/OutputStream;
aload 0
getfield sun.nio.cs.StreamEncoder.bb:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.array:()[B
aload 0
getfield sun.nio.cs.StreamEncoder.bb:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.arrayOffset:()I
iload 2
iadd
iload 3
invokevirtual java.io.OutputStream.write:([BII)V
12: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.cs.StreamEncoder.bb:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.clear:()Ljava/nio/Buffer;
pop
13: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lsun/nio/cs/StreamEncoder;
2 14 1 lim I
3 14 2 pos I
7 14 3 rem I
Exceptions:
throws java.io.IOException
private void flushLeftoverChar(java.nio.CharBuffer, boolean);
descriptor: (Ljava/nio/CharBuffer;Z)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield sun.nio.cs.StreamEncoder.haveLeftoverChar:Z
ifne 2
iload 2
ifne 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.cs.StreamEncoder.lcb:Ljava/nio/CharBuffer;
ifnonnull 4
3: aload 0
iconst_2
invokestatic java.nio.CharBuffer.allocate:(I)Ljava/nio/CharBuffer;
putfield sun.nio.cs.StreamEncoder.lcb:Ljava/nio/CharBuffer;
goto 5
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.cs.StreamEncoder.lcb:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.clear:()Ljava/nio/Buffer;
pop
5: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.cs.StreamEncoder.haveLeftoverChar:Z
ifeq 7
6: aload 0
getfield sun.nio.cs.StreamEncoder.lcb:Ljava/nio/CharBuffer;
aload 0
getfield sun.nio.cs.StreamEncoder.leftoverChar:C
invokevirtual java.nio.CharBuffer.put:(C)Ljava/nio/CharBuffer;
pop
7: StackMap locals:
StackMap stack:
aload 1
ifnull 9
aload 1
invokevirtual java.nio.CharBuffer.hasRemaining:()Z
ifeq 9
8: aload 0
getfield sun.nio.cs.StreamEncoder.lcb:Ljava/nio/CharBuffer;
aload 1
invokevirtual java.nio.CharBuffer.get:()C
invokevirtual java.nio.CharBuffer.put:(C)Ljava/nio/CharBuffer;
pop
9: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.cs.StreamEncoder.lcb:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.flip:()Ljava/nio/Buffer;
pop
10: goto 23
11: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.cs.StreamEncoder.encoder:Ljava/nio/charset/CharsetEncoder;
aload 0
getfield sun.nio.cs.StreamEncoder.lcb:Ljava/nio/CharBuffer;
aload 0
getfield sun.nio.cs.StreamEncoder.bb:Ljava/nio/ByteBuffer;
iload 2
invokevirtual java.nio.charset.CharsetEncoder.encode:(Ljava/nio/CharBuffer;Ljava/nio/ByteBuffer;Z)Ljava/nio/charset/CoderResult;
astore 3
start local 3 12: aload 3
invokevirtual java.nio.charset.CoderResult.isUnderflow:()Z
ifeq 18
13: aload 0
getfield sun.nio.cs.StreamEncoder.lcb:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.hasRemaining:()Z
ifeq 24
14: aload 0
aload 0
getfield sun.nio.cs.StreamEncoder.lcb:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.get:()C
putfield sun.nio.cs.StreamEncoder.leftoverChar:C
15: aload 1
ifnull 17
aload 1
invokevirtual java.nio.CharBuffer.hasRemaining:()Z
ifeq 17
16: aload 0
aload 1
iload 2
invokevirtual sun.nio.cs.StreamEncoder.flushLeftoverChar:(Ljava/nio/CharBuffer;Z)V
17: StackMap locals: java.nio.charset.CoderResult
StackMap stack:
return
18: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.nio.charset.CoderResult.isOverflow:()Z
ifeq 22
19: getstatic sun.nio.cs.StreamEncoder.$assertionsDisabled:Z
ifne 20
aload 0
getfield sun.nio.cs.StreamEncoder.bb:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.position:()I
ifgt 20
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
20: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.nio.cs.StreamEncoder.writeBytes:()V
21: goto 23
22: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.nio.charset.CoderResult.throwException:()V
end local 3 23: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.cs.StreamEncoder.lcb:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.hasRemaining:()Z
ifne 11
iload 2
ifne 11
24: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield sun.nio.cs.StreamEncoder.haveLeftoverChar:Z
25: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lsun/nio/cs/StreamEncoder;
0 26 1 cb Ljava/nio/CharBuffer;
0 26 2 endOfInput Z
12 23 3 cr Ljava/nio/charset/CoderResult;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
cb
endOfInput
void implWrite(char[], int, int);
descriptor: ([CII)V
flags: (0x0000)
Code:
stack=4, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 1
iload 2
iload 3
invokestatic java.nio.CharBuffer.wrap:([CII)Ljava/nio/CharBuffer;
astore 4
start local 4 1: aload 0
getfield sun.nio.cs.StreamEncoder.haveLeftoverChar:Z
ifeq 16
2: aload 0
aload 4
iconst_0
invokevirtual sun.nio.cs.StreamEncoder.flushLeftoverChar:(Ljava/nio/CharBuffer;Z)V
3: goto 16
4: StackMap locals: java.nio.CharBuffer
StackMap stack:
aload 0
getfield sun.nio.cs.StreamEncoder.encoder:Ljava/nio/charset/CharsetEncoder;
aload 4
aload 0
getfield sun.nio.cs.StreamEncoder.bb:Ljava/nio/ByteBuffer;
iconst_0
invokevirtual java.nio.charset.CharsetEncoder.encode:(Ljava/nio/CharBuffer;Ljava/nio/ByteBuffer;Z)Ljava/nio/charset/CoderResult;
astore 5
start local 5 5: aload 5
invokevirtual java.nio.charset.CoderResult.isUnderflow:()Z
ifeq 11
6: getstatic sun.nio.cs.StreamEncoder.$assertionsDisabled:Z
ifne 7
aload 4
invokevirtual java.nio.CharBuffer.remaining:()I
iconst_1
if_icmple 7
new java.lang.AssertionError
dup
aload 4
invokevirtual java.nio.CharBuffer.remaining:()I
invokespecial java.lang.AssertionError.<init>:(I)V
athrow
7: StackMap locals: java.nio.charset.CoderResult
StackMap stack:
aload 4
invokevirtual java.nio.CharBuffer.remaining:()I
iconst_1
if_icmpne 17
8: aload 0
iconst_1
putfield sun.nio.cs.StreamEncoder.haveLeftoverChar:Z
9: aload 0
aload 4
invokevirtual java.nio.CharBuffer.get:()C
putfield sun.nio.cs.StreamEncoder.leftoverChar:C
10: goto 17
11: StackMap locals:
StackMap stack:
aload 5
invokevirtual java.nio.charset.CoderResult.isOverflow:()Z
ifeq 15
12: getstatic sun.nio.cs.StreamEncoder.$assertionsDisabled:Z
ifne 13
aload 0
getfield sun.nio.cs.StreamEncoder.bb:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.position:()I
ifgt 13
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
13: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.nio.cs.StreamEncoder.writeBytes:()V
14: goto 16
15: StackMap locals:
StackMap stack:
aload 5
invokevirtual java.nio.charset.CoderResult.throwException:()V
end local 5 16: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.nio.CharBuffer.hasRemaining:()Z
ifne 4
17: StackMap locals:
StackMap stack:
return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lsun/nio/cs/StreamEncoder;
0 18 1 cbuf [C
0 18 2 off I
0 18 3 len I
1 18 4 cb Ljava/nio/CharBuffer;
5 16 5 cr Ljava/nio/charset/CoderResult;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
cbuf
off
len
void implFlushBuffer();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.cs.StreamEncoder.bb:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.position:()I
ifle 2
1: aload 0
invokevirtual sun.nio.cs.StreamEncoder.writeBytes:()V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/cs/StreamEncoder;
Exceptions:
throws java.io.IOException
void implFlush();
descriptor: ()V
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.nio.cs.StreamEncoder.implFlushBuffer:()V
1: aload 0
getfield sun.nio.cs.StreamEncoder.out:Ljava/io/OutputStream;
ifnull 3
2: aload 0
getfield sun.nio.cs.StreamEncoder.out:Ljava/io/OutputStream;
invokevirtual java.io.OutputStream.flush:()V
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/cs/StreamEncoder;
Exceptions:
throws java.io.IOException
void implClose();
descriptor: ()V
flags: (0x0000)
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
aconst_null
iconst_1
invokevirtual sun.nio.cs.StreamEncoder.flushLeftoverChar:(Ljava/nio/CharBuffer;Z)V
1: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.cs.StreamEncoder.encoder:Ljava/nio/charset/CharsetEncoder;
aload 0
getfield sun.nio.cs.StreamEncoder.bb:Ljava/nio/ByteBuffer;
invokevirtual java.nio.charset.CharsetEncoder.flush:(Ljava/nio/ByteBuffer;)Ljava/nio/charset/CoderResult;
astore 1
start local 1 2: aload 1
invokevirtual java.nio.charset.CoderResult.isUnderflow:()Z
ifeq 4
3: goto 10
4: StackMap locals: java.nio.charset.CoderResult
StackMap stack:
aload 1
invokevirtual java.nio.charset.CoderResult.isOverflow:()Z
ifeq 8
5: getstatic sun.nio.cs.StreamEncoder.$assertionsDisabled:Z
ifne 6
aload 0
getfield sun.nio.cs.StreamEncoder.bb:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.position:()I
ifgt 6
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
6: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.nio.cs.StreamEncoder.writeBytes:()V
7: goto 1
8: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.nio.charset.CoderResult.throwException:()V
end local 1 9: goto 1
10: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.cs.StreamEncoder.bb:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.position:()I
ifle 12
11: aload 0
invokevirtual sun.nio.cs.StreamEncoder.writeBytes:()V
12: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.cs.StreamEncoder.ch:Ljava/nio/channels/WritableByteChannel;
ifnull 14
13: aload 0
getfield sun.nio.cs.StreamEncoder.ch:Ljava/nio/channels/WritableByteChannel;
invokeinterface java.nio.channels.WritableByteChannel.close:()V
goto 19
14: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.cs.StreamEncoder.out:Ljava/io/OutputStream;
invokevirtual java.io.OutputStream.close:()V
15: goto 19
StackMap locals:
StackMap stack: java.io.IOException
16: astore 1
start local 1 17: aload 0
getfield sun.nio.cs.StreamEncoder.encoder:Ljava/nio/charset/CharsetEncoder;
invokevirtual java.nio.charset.CharsetEncoder.reset:()Ljava/nio/charset/CharsetEncoder;
pop
18: aload 1
athrow
end local 1 19: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lsun/nio/cs/StreamEncoder;
2 9 1 cr Ljava/nio/charset/CoderResult;
17 19 1 x Ljava/io/IOException;
Exception table:
from to target type
1 15 16 Class java.io.IOException
Exceptions:
throws java.io.IOException
java.lang.String encodingName();
descriptor: ()Ljava/lang/String;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.nio.cs.StreamEncoder.cs:Ljava/nio/charset/Charset;
instanceof sun.nio.cs.HistoricallyNamedCharset
ifeq 2
1: aload 0
getfield sun.nio.cs.StreamEncoder.cs:Ljava/nio/charset/Charset;
checkcast sun.nio.cs.HistoricallyNamedCharset
invokeinterface sun.nio.cs.HistoricallyNamedCharset.historicalName:()Ljava/lang/String;
goto 3
2: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.cs.StreamEncoder.cs:Ljava/nio/charset/Charset;
invokevirtual java.nio.charset.Charset.name:()Ljava/lang/String;
3: StackMap locals:
StackMap stack: java.lang.String
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/nio/cs/StreamEncoder;
}
SourceFile: "StreamEncoder.java"