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