public class jdk.internal.org.jline.utils.NonBlockingPumpReader extends jdk.internal.org.jline.utils.NonBlockingReader
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.internal.org.jline.utils.NonBlockingPumpReader
super_class: jdk.internal.org.jline.utils.NonBlockingReader
{
private static final int DEFAULT_BUFFER_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 4096
private final java.nio.CharBuffer readBuffer;
descriptor: Ljava/nio/CharBuffer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.nio.CharBuffer writeBuffer;
descriptor: Ljava/nio/CharBuffer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.io.Writer writer;
descriptor: Ljava/io/Writer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private boolean closed;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
sipush 4096
invokespecial jdk.internal.org.jline.utils.NonBlockingPumpReader.<init>:(I)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/org/jline/utils/NonBlockingPumpReader;
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial jdk.internal.org.jline.utils.NonBlockingReader.<init>:()V
1: iload 1
newarray 5
astore 2
start local 2 2: aload 0
aload 2
invokestatic java.nio.CharBuffer.wrap:([C)Ljava/nio/CharBuffer;
putfield jdk.internal.org.jline.utils.NonBlockingPumpReader.readBuffer:Ljava/nio/CharBuffer;
3: aload 0
aload 2
invokestatic java.nio.CharBuffer.wrap:([C)Ljava/nio/CharBuffer;
putfield jdk.internal.org.jline.utils.NonBlockingPumpReader.writeBuffer:Ljava/nio/CharBuffer;
4: aload 0
new jdk.internal.org.jline.utils.NonBlockingPumpReader$NbpWriter
dup
aload 0
invokespecial jdk.internal.org.jline.utils.NonBlockingPumpReader$NbpWriter.<init>:(Ljdk/internal/org/jline/utils/NonBlockingPumpReader;)V
putfield jdk.internal.org.jline.utils.NonBlockingPumpReader.writer:Ljava/io/Writer;
5: aload 0
getfield jdk.internal.org.jline.utils.NonBlockingPumpReader.readBuffer:Ljava/nio/CharBuffer;
iconst_0
invokevirtual java.nio.CharBuffer.limit:(I)Ljava/nio/CharBuffer;
pop
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/org/jline/utils/NonBlockingPumpReader;
0 7 1 bufferSize I
2 7 2 buf [C
MethodParameters:
Name Flags
bufferSize
public java.io.Writer getWriter();
descriptor: ()Ljava/io/Writer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.org.jline.utils.NonBlockingPumpReader.writer:Ljava/io/Writer;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/org/jline/utils/NonBlockingPumpReader;
private int wait(java.nio.CharBuffer, long);
descriptor: (Ljava/nio/CharBuffer;J)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=3
start local 0 start local 1 start local 2 0: lload 2
lconst_0
lcmp
ifgt 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: istore 4
start local 4 3: lconst_0
lstore 5
start local 5 4: iload 4
ifne 14
5: invokestatic java.lang.System.currentTimeMillis:()J
lload 2
ladd
lstore 5
6: goto 14
7: StackMap locals: int long
StackMap stack:
aload 0
invokevirtual java.lang.Object.notifyAll:()V
8: aload 0
lload 2
invokevirtual java.lang.Object.wait:(J)V
9: goto 12
StackMap locals:
StackMap stack: java.lang.InterruptedException
10: pop
11: new java.io.InterruptedIOException
dup
invokespecial java.io.InterruptedIOException.<init>:()V
athrow
12: StackMap locals:
StackMap stack:
iload 4
ifne 14
13: lload 5
invokestatic java.lang.System.currentTimeMillis:()J
lsub
lstore 2
14: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.org.jline.utils.NonBlockingPumpReader.closed:Z
ifne 15
aload 1
invokevirtual java.nio.CharBuffer.hasRemaining:()Z
ifne 15
iload 4
ifne 7
lload 2
lconst_0
lcmp
ifgt 7
15: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.org.jline.utils.NonBlockingPumpReader.closed:Z
ifeq 17
16: iconst_m1
goto 20
17: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.nio.CharBuffer.hasRemaining:()Z
ifeq 19
18: iconst_0
goto 20
19: StackMap locals:
StackMap stack:
bipush -2
20: StackMap locals:
StackMap stack: int
ireturn
end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Ljdk/internal/org/jline/utils/NonBlockingPumpReader;
0 21 1 buffer Ljava/nio/CharBuffer;
0 21 2 timeout J
3 21 4 isInfinite Z
4 21 5 end J
Exception table:
from to target type
8 9 10 Class java.lang.InterruptedException
Exceptions:
throws java.io.InterruptedIOException
MethodParameters:
Name Flags
buffer
timeout
private static boolean rewind(java.nio.CharBuffer, java.nio.CharBuffer);
descriptor: (Ljava/nio/CharBuffer;Ljava/nio/CharBuffer;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual java.nio.CharBuffer.position:()I
aload 1
invokevirtual java.nio.CharBuffer.position:()I
if_icmple 2
1: aload 1
aload 0
invokevirtual java.nio.CharBuffer.position:()I
invokevirtual java.nio.CharBuffer.limit:(I)Ljava/nio/CharBuffer;
pop
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual java.nio.CharBuffer.position:()I
aload 0
invokevirtual java.nio.CharBuffer.capacity:()I
if_icmpne 6
3: aload 0
invokevirtual java.nio.CharBuffer.rewind:()Ljava/nio/CharBuffer;
pop
4: aload 0
aload 1
invokevirtual java.nio.CharBuffer.position:()I
invokevirtual java.nio.CharBuffer.limit:(I)Ljava/nio/CharBuffer;
pop
5: iconst_1
ireturn
6: StackMap locals:
StackMap stack:
iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 buffer Ljava/nio/CharBuffer;
0 7 1 other Ljava/nio/CharBuffer;
MethodParameters:
Name Flags
buffer
other
public synchronized boolean ready();
descriptor: ()Z
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.org.jline.utils.NonBlockingPumpReader.readBuffer:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.hasRemaining:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/org/jline/utils/NonBlockingPumpReader;
public synchronized int available();
descriptor: ()I
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.internal.org.jline.utils.NonBlockingPumpReader.readBuffer:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.remaining:()I
istore 1
start local 1 1: aload 0
getfield jdk.internal.org.jline.utils.NonBlockingPumpReader.writeBuffer:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.position:()I
aload 0
getfield jdk.internal.org.jline.utils.NonBlockingPumpReader.readBuffer:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.position:()I
if_icmpge 3
2: iload 1
aload 0
getfield jdk.internal.org.jline.utils.NonBlockingPumpReader.writeBuffer:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.position:()I
iadd
istore 1
3: StackMap locals: int
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/org/jline/utils/NonBlockingPumpReader;
1 4 1 count I
protected synchronized int read(long, boolean);
descriptor: (JZ)I
flags: (0x0024) ACC_PROTECTED, ACC_SYNCHRONIZED
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 3 0: aload 0
aload 0
getfield jdk.internal.org.jline.utils.NonBlockingPumpReader.readBuffer:Ljava/nio/CharBuffer;
lload 1
invokevirtual jdk.internal.org.jline.utils.NonBlockingPumpReader.wait:(Ljava/nio/CharBuffer;J)I
istore 4
start local 4 1: iload 4
iflt 5
2: iload 3
ifeq 3
aload 0
getfield jdk.internal.org.jline.utils.NonBlockingPumpReader.readBuffer:Ljava/nio/CharBuffer;
aload 0
getfield jdk.internal.org.jline.utils.NonBlockingPumpReader.readBuffer:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.position:()I
invokevirtual java.nio.CharBuffer.get:(I)C
goto 4
StackMap locals: int
StackMap stack:
3: aload 0
getfield jdk.internal.org.jline.utils.NonBlockingPumpReader.readBuffer:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.get:()C
StackMap locals:
StackMap stack: int
4: istore 4
5: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.org.jline.utils.NonBlockingPumpReader.readBuffer:Ljava/nio/CharBuffer;
aload 0
getfield jdk.internal.org.jline.utils.NonBlockingPumpReader.writeBuffer:Ljava/nio/CharBuffer;
invokestatic jdk.internal.org.jline.utils.NonBlockingPumpReader.rewind:(Ljava/nio/CharBuffer;Ljava/nio/CharBuffer;)Z
pop
6: iload 4
ireturn
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Ljdk/internal/org/jline/utils/NonBlockingPumpReader;
0 7 1 timeout J
0 7 3 isPeek Z
1 7 4 res I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
timeout
isPeek
synchronized void write(char[], int, int);
descriptor: ([CII)V
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=4, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: goto 8
1: StackMap locals:
StackMap stack:
aload 0
aload 0
getfield jdk.internal.org.jline.utils.NonBlockingPumpReader.writeBuffer:Ljava/nio/CharBuffer;
lconst_0
invokevirtual jdk.internal.org.jline.utils.NonBlockingPumpReader.wait:(Ljava/nio/CharBuffer;J)I
iconst_m1
if_icmpne 3
2: new jdk.internal.org.jline.utils.ClosedException
dup
invokespecial jdk.internal.org.jline.utils.ClosedException.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
iload 3
aload 0
getfield jdk.internal.org.jline.utils.NonBlockingPumpReader.writeBuffer:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.remaining:()I
invokestatic java.lang.Math.min:(II)I
istore 4
start local 4 4: aload 0
getfield jdk.internal.org.jline.utils.NonBlockingPumpReader.writeBuffer:Ljava/nio/CharBuffer;
aload 1
iload 2
iload 4
invokevirtual java.nio.CharBuffer.put:([CII)Ljava/nio/CharBuffer;
pop
5: iload 2
iload 4
iadd
istore 2
6: iload 3
iload 4
isub
istore 3
7: aload 0
getfield jdk.internal.org.jline.utils.NonBlockingPumpReader.writeBuffer:Ljava/nio/CharBuffer;
aload 0
getfield jdk.internal.org.jline.utils.NonBlockingPumpReader.readBuffer:Ljava/nio/CharBuffer;
invokestatic jdk.internal.org.jline.utils.NonBlockingPumpReader.rewind:(Ljava/nio/CharBuffer;Ljava/nio/CharBuffer;)Z
pop
end local 4 8: StackMap locals:
StackMap stack:
iload 3
ifgt 1
9: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Ljdk/internal/org/jline/utils/NonBlockingPumpReader;
0 10 1 cbuf [C
0 10 2 off I
0 10 3 len I
4 8 4 count I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
cbuf
off
len
synchronized void flush();
descriptor: ()V
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.org.jline.utils.NonBlockingPumpReader.readBuffer:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.hasRemaining:()Z
ifeq 2
1: aload 0
invokevirtual java.lang.Object.notifyAll:()V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/org/jline/utils/NonBlockingPumpReader;
public synchronized void close();
descriptor: ()V
flags: (0x0021) ACC_PUBLIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
putfield jdk.internal.org.jline.utils.NonBlockingPumpReader.closed:Z
1: aload 0
invokevirtual java.lang.Object.notifyAll:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/org/jline/utils/NonBlockingPumpReader;
Exceptions:
throws java.io.IOException
}
SourceFile: "NonBlockingPumpReader.java"
NestMembers:
jdk.internal.org.jline.utils.NonBlockingPumpReader$NbpWriter
InnerClasses:
private NbpWriter = jdk.internal.org.jline.utils.NonBlockingPumpReader$NbpWriter of jdk.internal.org.jline.utils.NonBlockingPumpReader