class jdk.internal.org.jline.terminal.impl.AbstractPty$PtyInputStream extends jdk.internal.org.jline.utils.NonBlockingInputStream
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.internal.org.jline.terminal.impl.AbstractPty$PtyInputStream
super_class: jdk.internal.org.jline.utils.NonBlockingInputStream
{
final java.io.InputStream in;
descriptor: Ljava/io/InputStream;
flags: (0x0010) ACC_FINAL
int c;
descriptor: I
flags: (0x0000)
final jdk.internal.org.jline.terminal.impl.AbstractPty this$0;
descriptor: Ljdk/internal/org/jline/terminal/impl/AbstractPty;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
void <init>(jdk.internal.org.jline.terminal.impl.AbstractPty, java.io.InputStream);
descriptor: (Ljdk/internal/org/jline/terminal/impl/AbstractPty;Ljava/io/InputStream;)V
flags: (0x0000)
Code:
stack=2, locals=3, args_size=3
start local 0 start local 2 0: aload 0
aload 1
putfield jdk.internal.org.jline.terminal.impl.AbstractPty$PtyInputStream.this$0:Ljdk/internal/org/jline/terminal/impl/AbstractPty;
aload 0
invokespecial jdk.internal.org.jline.utils.NonBlockingInputStream.<init>:()V
1: aload 0
iconst_0
putfield jdk.internal.org.jline.terminal.impl.AbstractPty$PtyInputStream.c:I
2: aload 0
aload 2
putfield jdk.internal.org.jline.terminal.impl.AbstractPty$PtyInputStream.in:Ljava/io/InputStream;
3: return
end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Ljdk/internal/org/jline/terminal/impl/AbstractPty$PtyInputStream;
0 4 2 in Ljava/io/InputStream;
MethodParameters:
Name Flags
this$0 final
in
public int read(long, boolean);
descriptor: (JZ)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=9, args_size=3
start local 0 start local 1 start local 3 0: aload 0
getfield jdk.internal.org.jline.terminal.impl.AbstractPty$PtyInputStream.this$0:Ljdk/internal/org/jline/terminal/impl/AbstractPty;
invokevirtual jdk.internal.org.jline.terminal.impl.AbstractPty.checkInterrupted:()V
1: aload 0
getfield jdk.internal.org.jline.terminal.impl.AbstractPty$PtyInputStream.c:I
ifeq 6
2: aload 0
getfield jdk.internal.org.jline.terminal.impl.AbstractPty$PtyInputStream.c:I
istore 4
start local 4 3: iload 3
ifne 5
4: aload 0
iconst_0
putfield jdk.internal.org.jline.terminal.impl.AbstractPty$PtyInputStream.c:I
5: StackMap locals: int
StackMap stack:
iload 4
ireturn
end local 4 6: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.internal.org.jline.terminal.impl.AbstractPty$PtyInputStream.setNonBlocking:()V
7: invokestatic java.lang.System.currentTimeMillis:()J
lstore 4
start local 4 8: StackMap locals: long
StackMap stack:
aload 0
getfield jdk.internal.org.jline.terminal.impl.AbstractPty$PtyInputStream.in:Ljava/io/InputStream;
invokevirtual java.io.InputStream.read:()I
istore 6
start local 6 9: iload 6
iflt 13
10: iload 3
ifeq 12
11: aload 0
iload 6
putfield jdk.internal.org.jline.terminal.impl.AbstractPty$PtyInputStream.c:I
12: StackMap locals: int
StackMap stack:
iload 6
ireturn
13: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.org.jline.terminal.impl.AbstractPty$PtyInputStream.this$0:Ljdk/internal/org/jline/terminal/impl/AbstractPty;
invokevirtual jdk.internal.org.jline.terminal.impl.AbstractPty.checkInterrupted:()V
14: invokestatic java.lang.System.currentTimeMillis:()J
lstore 7
start local 7 15: lload 1
lconst_0
lcmp
ifle 8
lload 7
lload 4
lsub
lload 1
lcmp
ifle 8
16: bipush -2
ireturn
end local 7 end local 6 end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Ljdk/internal/org/jline/terminal/impl/AbstractPty$PtyInputStream;
0 17 1 timeout J
0 17 3 isPeek Z
3 6 4 r I
8 17 4 start J
9 17 6 r I
15 17 7 cur J
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
timeout
isPeek
public int readBuffered(byte[]);
descriptor: ([B)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.internal.org.jline.terminal.impl.AbstractPty$PtyInputStream.in:Ljava/io/InputStream;
aload 1
invokevirtual java.io.InputStream.read:([B)I
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/org/jline/terminal/impl/AbstractPty$PtyInputStream;
0 1 1 b [B
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
b
private void setNonBlocking();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.internal.org.jline.terminal.impl.AbstractPty$PtyInputStream.this$0:Ljdk/internal/org/jline/terminal/impl/AbstractPty;
getfield jdk.internal.org.jline.terminal.impl.AbstractPty.current:Ljdk/internal/org/jline/terminal/Attributes;
ifnull 3
1: aload 0
getfield jdk.internal.org.jline.terminal.impl.AbstractPty$PtyInputStream.this$0:Ljdk/internal/org/jline/terminal/impl/AbstractPty;
getfield jdk.internal.org.jline.terminal.impl.AbstractPty.current:Ljdk/internal/org/jline/terminal/Attributes;
getstatic jdk.internal.org.jline.terminal.Attributes$ControlChar.VMIN:Ljdk/internal/org/jline/terminal/Attributes$ControlChar;
invokevirtual jdk.internal.org.jline.terminal.Attributes.getControlChar:(Ljdk/internal/org/jline/terminal/Attributes$ControlChar;)I
ifne 3
2: aload 0
getfield jdk.internal.org.jline.terminal.impl.AbstractPty$PtyInputStream.this$0:Ljdk/internal/org/jline/terminal/impl/AbstractPty;
getfield jdk.internal.org.jline.terminal.impl.AbstractPty.current:Ljdk/internal/org/jline/terminal/Attributes;
getstatic jdk.internal.org.jline.terminal.Attributes$ControlChar.VTIME:Ljdk/internal/org/jline/terminal/Attributes$ControlChar;
invokevirtual jdk.internal.org.jline.terminal.Attributes.getControlChar:(Ljdk/internal/org/jline/terminal/Attributes$ControlChar;)I
iconst_1
if_icmpeq 10
3: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.org.jline.terminal.impl.AbstractPty$PtyInputStream.this$0:Ljdk/internal/org/jline/terminal/impl/AbstractPty;
invokevirtual jdk.internal.org.jline.terminal.impl.AbstractPty.getAttr:()Ljdk/internal/org/jline/terminal/Attributes;
astore 1
start local 1 4: aload 1
getstatic jdk.internal.org.jline.terminal.Attributes$ControlChar.VMIN:Ljdk/internal/org/jline/terminal/Attributes$ControlChar;
iconst_0
invokevirtual jdk.internal.org.jline.terminal.Attributes.setControlChar:(Ljdk/internal/org/jline/terminal/Attributes$ControlChar;I)V
5: aload 1
getstatic jdk.internal.org.jline.terminal.Attributes$ControlChar.VTIME:Ljdk/internal/org/jline/terminal/Attributes$ControlChar;
iconst_1
invokevirtual jdk.internal.org.jline.terminal.Attributes.setControlChar:(Ljdk/internal/org/jline/terminal/Attributes$ControlChar;I)V
6: aload 0
getfield jdk.internal.org.jline.terminal.impl.AbstractPty$PtyInputStream.this$0:Ljdk/internal/org/jline/terminal/impl/AbstractPty;
aload 1
invokevirtual jdk.internal.org.jline.terminal.impl.AbstractPty.setAttr:(Ljdk/internal/org/jline/terminal/Attributes;)V
end local 1 7: goto 10
StackMap locals:
StackMap stack: java.io.IOException
8: astore 1
start local 1 9: new java.io.IOError
dup
aload 1
invokespecial java.io.IOError.<init>:(Ljava/lang/Throwable;)V
athrow
end local 1 10: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljdk/internal/org/jline/terminal/impl/AbstractPty$PtyInputStream;
4 7 1 attr Ljdk/internal/org/jline/terminal/Attributes;
9 10 1 e Ljava/io/IOException;
Exception table:
from to target type
3 7 8 Class java.io.IOException
}
SourceFile: "AbstractPty.java"
NestHost: jdk.internal.org.jline.terminal.impl.AbstractPty
InnerClasses:
public final ControlChar = jdk.internal.org.jline.terminal.Attributes$ControlChar of jdk.internal.org.jline.terminal.Attributes
PtyInputStream = jdk.internal.org.jline.terminal.impl.AbstractPty$PtyInputStream of jdk.internal.org.jline.terminal.impl.AbstractPty