public class jdk.internal.org.jline.utils.WriterOutputStream extends java.io.OutputStream
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.internal.org.jline.utils.WriterOutputStream
super_class: java.io.OutputStream
{
private final java.io.Writer out;
descriptor: Ljava/io/Writer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.nio.charset.CharsetDecoder decoder;
descriptor: Ljava/nio/charset/CharsetDecoder;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.nio.ByteBuffer decoderIn;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.nio.CharBuffer decoderOut;
descriptor: Ljava/nio/CharBuffer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(java.io.Writer, java.nio.charset.Charset);
descriptor: (Ljava/io/Writer;Ljava/nio/charset/Charset;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokevirtual java.nio.charset.Charset.newDecoder:()Ljava/nio/charset/CharsetDecoder;
1: getstatic java.nio.charset.CodingErrorAction.REPLACE:Ljava/nio/charset/CodingErrorAction;
invokevirtual java.nio.charset.CharsetDecoder.onMalformedInput:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetDecoder;
2: getstatic java.nio.charset.CodingErrorAction.REPLACE:Ljava/nio/charset/CodingErrorAction;
invokevirtual java.nio.charset.CharsetDecoder.onUnmappableCharacter:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetDecoder;
invokespecial jdk.internal.org.jline.utils.WriterOutputStream.<init>:(Ljava/io/Writer;Ljava/nio/charset/CharsetDecoder;)V
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/org/jline/utils/WriterOutputStream;
0 4 1 out Ljava/io/Writer;
0 4 2 charset Ljava/nio/charset/Charset;
MethodParameters:
Name Flags
out
charset
public void <init>(java.io.Writer, java.nio.charset.CharsetDecoder);
descriptor: (Ljava/io/Writer;Ljava/nio/charset/CharsetDecoder;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.io.OutputStream.<init>:()V
1: aload 0
sipush 256
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
putfield jdk.internal.org.jline.utils.WriterOutputStream.decoderIn:Ljava/nio/ByteBuffer;
2: aload 0
sipush 128
invokestatic java.nio.CharBuffer.allocate:(I)Ljava/nio/CharBuffer;
putfield jdk.internal.org.jline.utils.WriterOutputStream.decoderOut:Ljava/nio/CharBuffer;
3: aload 0
aload 1
putfield jdk.internal.org.jline.utils.WriterOutputStream.out:Ljava/io/Writer;
4: aload 0
aload 2
putfield jdk.internal.org.jline.utils.WriterOutputStream.decoder:Ljava/nio/charset/CharsetDecoder;
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/internal/org/jline/utils/WriterOutputStream;
0 6 1 out Ljava/io/Writer;
0 6 2 decoder Ljava/nio/charset/CharsetDecoder;
MethodParameters:
Name Flags
out
decoder
public void write(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_1
newarray 8
dup
iconst_0
iload 1
i2b
bastore
iconst_0
iconst_1
invokevirtual jdk.internal.org.jline.utils.WriterOutputStream.write:([BII)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/org/jline/utils/WriterOutputStream;
0 2 1 b I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
public void write(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
iconst_0
aload 1
arraylength
invokevirtual jdk.internal.org.jline.utils.WriterOutputStream.write:([BII)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/org/jline/utils/WriterOutputStream;
0 2 1 b [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
public void write(byte[], int, int);
descriptor: ([BII)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: goto 6
1: StackMap locals:
StackMap stack:
iload 3
aload 0
getfield jdk.internal.org.jline.utils.WriterOutputStream.decoderIn:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.remaining:()I
invokestatic java.lang.Math.min:(II)I
istore 4
start local 4 2: aload 0
getfield jdk.internal.org.jline.utils.WriterOutputStream.decoderIn:Ljava/nio/ByteBuffer;
aload 1
iload 2
iload 4
invokevirtual java.nio.ByteBuffer.put:([BII)Ljava/nio/ByteBuffer;
pop
3: aload 0
iconst_0
invokevirtual jdk.internal.org.jline.utils.WriterOutputStream.processInput:(Z)V
4: iload 3
iload 4
isub
istore 3
5: iload 2
iload 4
iadd
istore 2
end local 4 6: StackMap locals:
StackMap stack:
iload 3
ifgt 1
7: aload 0
invokevirtual jdk.internal.org.jline.utils.WriterOutputStream.flush:()V
8: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Ljdk/internal/org/jline/utils/WriterOutputStream;
0 9 1 b [B
0 9 2 off I
0 9 3 len I
2 6 4 c I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
off
len
public void flush();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.internal.org.jline.utils.WriterOutputStream.flushOutput:()V
1: aload 0
getfield jdk.internal.org.jline.utils.WriterOutputStream.out:Ljava/io/Writer;
invokevirtual java.io.Writer.flush:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/org/jline/utils/WriterOutputStream;
Exceptions:
throws java.io.IOException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
invokevirtual jdk.internal.org.jline.utils.WriterOutputStream.processInput:(Z)V
1: aload 0
invokevirtual jdk.internal.org.jline.utils.WriterOutputStream.flush:()V
2: aload 0
getfield jdk.internal.org.jline.utils.WriterOutputStream.out:Ljava/io/Writer;
invokevirtual java.io.Writer.close:()V
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/org/jline/utils/WriterOutputStream;
Exceptions:
throws java.io.IOException
private void processInput(boolean);
descriptor: (Z)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.org.jline.utils.WriterOutputStream.decoderIn:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/ByteBuffer;
pop
1: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.org.jline.utils.WriterOutputStream.decoder:Ljava/nio/charset/CharsetDecoder;
aload 0
getfield jdk.internal.org.jline.utils.WriterOutputStream.decoderIn:Ljava/nio/ByteBuffer;
aload 0
getfield jdk.internal.org.jline.utils.WriterOutputStream.decoderOut:Ljava/nio/CharBuffer;
iload 1
invokevirtual java.nio.charset.CharsetDecoder.decode:(Ljava/nio/ByteBuffer;Ljava/nio/CharBuffer;Z)Ljava/nio/charset/CoderResult;
astore 2
start local 2 2: aload 2
invokevirtual java.nio.charset.CoderResult.isOverflow:()Z
ifeq 5
3: aload 0
invokevirtual jdk.internal.org.jline.utils.WriterOutputStream.flushOutput:()V
4: goto 1
StackMap locals: java.nio.charset.CoderResult
StackMap stack:
5: aload 2
invokevirtual java.nio.charset.CoderResult.isUnderflow:()Z
ifeq 7
6: goto 8
7: StackMap locals:
StackMap stack:
new java.io.IOException
dup
ldc "Unexpected coder result"
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
8: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.org.jline.utils.WriterOutputStream.decoderIn:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.compact:()Ljava/nio/ByteBuffer;
pop
9: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/internal/org/jline/utils/WriterOutputStream;
0 10 1 endOfInput Z
2 10 2 coderResult Ljava/nio/charset/CoderResult;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
endOfInput final
private void flushOutput();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.org.jline.utils.WriterOutputStream.decoderOut:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.position:()I
ifle 3
1: aload 0
getfield jdk.internal.org.jline.utils.WriterOutputStream.out:Ljava/io/Writer;
aload 0
getfield jdk.internal.org.jline.utils.WriterOutputStream.decoderOut:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.array:()[C
iconst_0
aload 0
getfield jdk.internal.org.jline.utils.WriterOutputStream.decoderOut:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.position:()I
invokevirtual java.io.Writer.write:([CII)V
2: aload 0
getfield jdk.internal.org.jline.utils.WriterOutputStream.decoderOut:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.rewind:()Ljava/nio/CharBuffer;
pop
3: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/org/jline/utils/WriterOutputStream;
Exceptions:
throws java.io.IOException
}
SourceFile: "WriterOutputStream.java"