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 closed;
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.closed:Z
ifeq 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 write(java.nio.CharBuffer);
descriptor: (Ljava/nio/CharBuffer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual java.nio.CharBuffer.position:()I
istore 2
start local 2 1: aload 0
getfield sun.nio.cs.StreamEncoder.lock:Ljava/lang/Object;
dup
astore 3
monitorenter
2: aload 0
invokevirtual sun.nio.cs.StreamEncoder.ensureOpen:()V
3: aload 0
aload 1
invokevirtual sun.nio.cs.StreamEncoder.implWrite:(Ljava/nio/CharBuffer;)V
4: aload 3
monitorexit
5: goto 11
StackMap locals: sun.nio.cs.StreamEncoder java.nio.CharBuffer int java.lang.Object
StackMap stack: java.lang.Throwable
6: aload 3
monitorexit
7: athrow
8: StackMap locals: sun.nio.cs.StreamEncoder java.nio.CharBuffer int
StackMap stack: java.lang.Throwable
astore 4
9: aload 1
iload 2
invokevirtual java.nio.CharBuffer.position:(I)Ljava/nio/CharBuffer;
pop
10: aload 4
athrow
11: StackMap locals:
StackMap stack:
aload 1
iload 2
invokevirtual java.nio.CharBuffer.position:(I)Ljava/nio/CharBuffer;
pop
12: return
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 cb Ljava/nio/CharBuffer;
1 13 2 position I
Exception table:
from to target type
2 5 6 any
6 7 6 any
1 8 8 any
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
cb
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=3, 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.closed:Z
ifeq 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: goto 9
StackMap locals:
StackMap stack: java.lang.Throwable
6: astore 2
7: aload 0
iconst_1
putfield sun.nio.cs.StreamEncoder.closed:Z
8: aload 2
athrow
9: StackMap locals:
StackMap stack:
aload 0
iconst_1
putfield sun.nio.cs.StreamEncoder.closed:Z
10: aload 1
monitorexit
11: goto 14
StackMap locals:
StackMap stack: java.lang.Throwable
12: aload 1
monitorexit
13: athrow
14: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lsun/nio/cs/StreamEncoder;
Exception table:
from to target type
4 6 6 any
1 3 12 any
4 11 12 any
12 13 12 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.closed:Z
ifeq 1
iconst_0
goto 2
StackMap locals:
StackMap stack:
1: iconst_1
StackMap locals:
StackMap stack: int
2: ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 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_0
putfield sun.nio.cs.StreamEncoder.haveLeftoverChar:Z
2: aload 0
aconst_null
putfield sun.nio.cs.StreamEncoder.lcb:Ljava/nio/CharBuffer;
3: aload 0
aload 1
putfield sun.nio.cs.StreamEncoder.out:Ljava/io/OutputStream;
4: aload 0
aconst_null
putfield sun.nio.cs.StreamEncoder.ch:Ljava/nio/channels/WritableByteChannel;
5: aload 0
aload 3
invokevirtual java.nio.charset.CharsetEncoder.charset:()Ljava/nio/charset/Charset;
putfield sun.nio.cs.StreamEncoder.cs:Ljava/nio/charset/Charset;
6: aload 0
aload 3
putfield sun.nio.cs.StreamEncoder.encoder:Ljava/nio/charset/CharsetEncoder;
7: aload 0
getfield sun.nio.cs.StreamEncoder.ch:Ljava/nio/channels/WritableByteChannel;
ifnonnull 9
8: aload 0
sipush 8192
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
putfield sun.nio.cs.StreamEncoder.bb:Ljava/nio/ByteBuffer;
9: 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 10 0 this Lsun/nio/cs/StreamEncoder;
0 10 1 out Ljava/io/OutputStream;
0 10 2 lock Ljava/lang/Object;
0 10 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_0
putfield sun.nio.cs.StreamEncoder.haveLeftoverChar:Z
2: aload 0
aconst_null
putfield sun.nio.cs.StreamEncoder.lcb:Ljava/nio/CharBuffer;
3: aload 0
aconst_null
putfield sun.nio.cs.StreamEncoder.out:Ljava/io/OutputStream;
4: aload 0
aload 1
putfield sun.nio.cs.StreamEncoder.ch:Ljava/nio/channels/WritableByteChannel;
5: aload 0
aload 2
invokevirtual java.nio.charset.CharsetEncoder.charset:()Ljava/nio/charset/Charset;
putfield sun.nio.cs.StreamEncoder.cs:Ljava/nio/charset/Charset;
6: aload 0
aload 2
putfield sun.nio.cs.StreamEncoder.encoder:Ljava/nio/charset/CharsetEncoder;
7: aload 0
iload 3
ifge 9
8: sipush 8192
goto 10
9: StackMap locals: sun.nio.cs.StreamEncoder java.nio.channels.WritableByteChannel java.nio.charset.CharsetEncoder int
StackMap stack: sun.nio.cs.StreamEncoder
iload 3
10: 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;
11: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/nio/cs/StreamEncoder;
0 12 1 ch Ljava/nio/channels/WritableByteChannel;
0 12 2 enc Ljava/nio/charset/CharsetEncoder;
0 12 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/ByteBuffer;
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/ByteBuffer;
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/CharBuffer;
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/CharBuffer;
pop
10: goto 25
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 20
13: aload 0
getfield sun.nio.cs.StreamEncoder.lcb:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.hasRemaining:()Z
ifeq 26
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 19
aload 1
invokevirtual java.nio.CharBuffer.hasRemaining:()Z
ifeq 19
16: aload 0
getfield sun.nio.cs.StreamEncoder.lcb:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.clear:()Ljava/nio/CharBuffer;
pop
17: 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;
aload 1
invokevirtual java.nio.CharBuffer.get:()C
invokevirtual java.nio.CharBuffer.put:(C)Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.flip:()Ljava/nio/CharBuffer;
pop
18: goto 25
19: StackMap locals: java.nio.charset.CoderResult
StackMap stack:
return
20: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.nio.charset.CoderResult.isOverflow:()Z
ifeq 24
21: getstatic sun.nio.cs.StreamEncoder.$assertionsDisabled:Z
ifne 22
aload 0
getfield sun.nio.cs.StreamEncoder.bb:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.position:()I
ifgt 22
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
22: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.nio.cs.StreamEncoder.writeBytes:()V
23: goto 25
24: StackMap locals:
StackMap stack:
aload 3
invokevirtual java.nio.charset.CoderResult.throwException:()V
end local 3 25: 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
26: StackMap locals:
StackMap stack:
aload 0
iconst_0
putfield sun.nio.cs.StreamEncoder.haveLeftoverChar:Z
27: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Lsun/nio/cs/StreamEncoder;
0 28 1 cb Ljava/nio/CharBuffer;
0 28 2 endOfInput Z
12 25 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=3, locals=5, 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
aload 4
invokevirtual sun.nio.cs.StreamEncoder.implWrite:(Ljava/nio/CharBuffer;)V
2: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/nio/cs/StreamEncoder;
0 3 1 cbuf [C
0 3 2 off I
0 3 3 len I
1 3 4 cb Ljava/nio/CharBuffer;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
cbuf
off
len
void implWrite(java.nio.CharBuffer);
descriptor: (Ljava/nio/CharBuffer;)V
flags: (0x0000)
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.nio.cs.StreamEncoder.haveLeftoverChar:Z
ifeq 15
1: aload 0
aload 1
iconst_0
invokevirtual sun.nio.cs.StreamEncoder.flushLeftoverChar:(Ljava/nio/CharBuffer;Z)V
2: goto 15
3: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.cs.StreamEncoder.encoder:Ljava/nio/charset/CharsetEncoder;
aload 1
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 2
start local 2 4: aload 2
invokevirtual java.nio.charset.CoderResult.isUnderflow:()Z
ifeq 10
5: getstatic sun.nio.cs.StreamEncoder.$assertionsDisabled:Z
ifne 6
aload 1
invokevirtual java.nio.CharBuffer.remaining:()I
iconst_1
if_icmple 6
new java.lang.AssertionError
dup
aload 1
invokevirtual java.nio.CharBuffer.remaining:()I
invokespecial java.lang.AssertionError.<init>:(I)V
athrow
6: StackMap locals: java.nio.charset.CoderResult
StackMap stack:
aload 1
invokevirtual java.nio.CharBuffer.remaining:()I
iconst_1
if_icmpne 16
7: aload 0
iconst_1
putfield sun.nio.cs.StreamEncoder.haveLeftoverChar:Z
8: aload 0
aload 1
invokevirtual java.nio.CharBuffer.get:()C
putfield sun.nio.cs.StreamEncoder.leftoverChar:C
9: goto 16
10: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.nio.charset.CoderResult.isOverflow:()Z
ifeq 14
11: getstatic sun.nio.cs.StreamEncoder.$assertionsDisabled:Z
ifne 12
aload 0
getfield sun.nio.cs.StreamEncoder.bb:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.position:()I
ifgt 12
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
12: StackMap locals:
StackMap stack:
aload 0
invokevirtual sun.nio.cs.StreamEncoder.writeBytes:()V
13: goto 15
14: StackMap locals:
StackMap stack:
aload 2
invokevirtual java.nio.charset.CoderResult.throwException:()V
end local 2 15: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.nio.CharBuffer.hasRemaining:()Z
ifne 3
16: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lsun/nio/cs/StreamEncoder;
0 17 1 cb Ljava/nio/CharBuffer;
4 15 2 cr Ljava/nio/charset/CoderResult;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
cb
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 24
14: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.cs.StreamEncoder.out:Ljava/io/OutputStream;
invokevirtual java.io.OutputStream.flush:()V
15: goto 19
StackMap locals:
StackMap stack: java.lang.Throwable
16: astore 1
17: aload 0
getfield sun.nio.cs.StreamEncoder.out:Ljava/io/OutputStream;
invokevirtual java.io.OutputStream.close:()V
18: aload 1
athrow
19: StackMap locals:
StackMap stack:
aload 0
getfield sun.nio.cs.StreamEncoder.out:Ljava/io/OutputStream;
invokevirtual java.io.OutputStream.close:()V
20: goto 24
StackMap locals:
StackMap stack: java.io.IOException
21: astore 1
start local 1 22: aload 0
getfield sun.nio.cs.StreamEncoder.encoder:Ljava/nio/charset/CharsetEncoder;
invokevirtual java.nio.charset.CharsetEncoder.reset:()Ljava/nio/charset/CharsetEncoder;
pop
23: aload 1
athrow
end local 1 24: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lsun/nio/cs/StreamEncoder;
2 9 1 cr Ljava/nio/charset/CoderResult;
22 24 1 x Ljava/io/IOException;
Exception table:
from to target type
14 16 16 any
1 20 21 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"