class jdk.internal.org.jline.utils.NonBlocking$NonBlockingReaderInputStream extends jdk.internal.org.jline.utils.NonBlockingInputStream
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: jdk.internal.org.jline.utils.NonBlocking$NonBlockingReaderInputStream
super_class: jdk.internal.org.jline.utils.NonBlockingInputStream
{
private final jdk.internal.org.jline.utils.NonBlockingReader reader;
descriptor: Ljdk/internal/org/jline/utils/NonBlockingReader;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.nio.charset.CharsetEncoder encoder;
descriptor: Ljava/nio/charset/CharsetEncoder;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.nio.ByteBuffer bytes;
descriptor: Ljava/nio/ByteBuffer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.nio.CharBuffer chars;
descriptor: Ljava/nio/CharBuffer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private void <init>(jdk.internal.org.jline.utils.NonBlockingReader, java.nio.charset.Charset);
descriptor: (Ljdk/internal/org/jline/utils/NonBlockingReader;Ljava/nio/charset/Charset;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial jdk.internal.org.jline.utils.NonBlockingInputStream.<init>:()V
1: aload 0
aload 1
putfield jdk.internal.org.jline.utils.NonBlocking$NonBlockingReaderInputStream.reader:Ljdk/internal/org/jline/utils/NonBlockingReader;
2: aload 0
aload 2
invokevirtual java.nio.charset.Charset.newEncoder:()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;
4: getstatic java.nio.charset.CodingErrorAction.REPLACE:Ljava/nio/charset/CodingErrorAction;
invokevirtual java.nio.charset.CharsetEncoder.onMalformedInput:(Ljava/nio/charset/CodingErrorAction;)Ljava/nio/charset/CharsetEncoder;
5: putfield jdk.internal.org.jline.utils.NonBlocking$NonBlockingReaderInputStream.encoder:Ljava/nio/charset/CharsetEncoder;
6: aload 0
iconst_4
invokestatic java.nio.ByteBuffer.allocate:(I)Ljava/nio/ByteBuffer;
putfield jdk.internal.org.jline.utils.NonBlocking$NonBlockingReaderInputStream.bytes:Ljava/nio/ByteBuffer;
7: aload 0
iconst_2
invokestatic java.nio.CharBuffer.allocate:(I)Ljava/nio/CharBuffer;
putfield jdk.internal.org.jline.utils.NonBlocking$NonBlockingReaderInputStream.chars:Ljava/nio/CharBuffer;
8: aload 0
getfield jdk.internal.org.jline.utils.NonBlocking$NonBlockingReaderInputStream.bytes:Ljava/nio/ByteBuffer;
iconst_0
invokevirtual java.nio.ByteBuffer.limit:(I)Ljava/nio/ByteBuffer;
pop
9: aload 0
getfield jdk.internal.org.jline.utils.NonBlocking$NonBlockingReaderInputStream.chars:Ljava/nio/CharBuffer;
iconst_0
invokevirtual java.nio.CharBuffer.limit:(I)Ljava/nio/CharBuffer;
pop
10: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljdk/internal/org/jline/utils/NonBlocking$NonBlockingReaderInputStream;
0 11 1 reader Ljdk/internal/org/jline/utils/NonBlockingReader;
0 11 2 charset Ljava/nio/charset/Charset;
MethodParameters:
Name Flags
reader
charset
public int available();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.org.jline.utils.NonBlocking$NonBlockingReaderInputStream.reader:Ljdk/internal/org/jline/utils/NonBlockingReader;
invokevirtual jdk.internal.org.jline.utils.NonBlockingReader.available:()I
i2f
aload 0
getfield jdk.internal.org.jline.utils.NonBlocking$NonBlockingReaderInputStream.encoder:Ljava/nio/charset/CharsetEncoder;
invokevirtual java.nio.charset.CharsetEncoder.averageBytesPerChar:()F
fmul
f2i
1: aload 0
getfield jdk.internal.org.jline.utils.NonBlocking$NonBlockingReaderInputStream.bytes:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.remaining:()I
2: iadd
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/internal/org/jline/utils/NonBlocking$NonBlockingReaderInputStream;
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.internal.org.jline.utils.NonBlocking$NonBlockingReaderInputStream.reader:Ljdk/internal/org/jline/utils/NonBlockingReader;
invokevirtual jdk.internal.org.jline.utils.NonBlockingReader.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/internal/org/jline/utils/NonBlocking$NonBlockingReaderInputStream;
Exceptions:
throws java.io.IOException
public int read(long, boolean);
descriptor: (JZ)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=9, args_size=3
start local 0 start local 1 start local 3 0: lload 1
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: goto 22
4: StackMap locals: int
StackMap stack:
lconst_0
lstore 5
start local 5 5: iload 4
ifne 7
6: invokestatic java.lang.System.currentTimeMillis:()J
lstore 5
7: StackMap locals: long
StackMap stack:
aload 0
getfield jdk.internal.org.jline.utils.NonBlocking$NonBlockingReaderInputStream.reader:Ljdk/internal/org/jline/utils/NonBlockingReader;
lload 1
invokevirtual jdk.internal.org.jline.utils.NonBlockingReader.read:(J)I
istore 7
start local 7 8: iload 7
iconst_m1
if_icmpne 10
9: iconst_m1
ireturn
10: StackMap locals: int
StackMap stack:
iload 7
iflt 20
11: aload 0
getfield jdk.internal.org.jline.utils.NonBlocking$NonBlockingReaderInputStream.chars:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.hasRemaining:()Z
ifne 14
12: aload 0
getfield jdk.internal.org.jline.utils.NonBlocking$NonBlockingReaderInputStream.chars:Ljava/nio/CharBuffer;
iconst_0
invokevirtual java.nio.CharBuffer.position:(I)Ljava/nio/CharBuffer;
pop
13: aload 0
getfield jdk.internal.org.jline.utils.NonBlocking$NonBlockingReaderInputStream.chars:Ljava/nio/CharBuffer;
iconst_0
invokevirtual java.nio.CharBuffer.limit:(I)Ljava/nio/CharBuffer;
pop
14: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.org.jline.utils.NonBlocking$NonBlockingReaderInputStream.chars:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.limit:()I
istore 8
start local 8 15: aload 0
getfield jdk.internal.org.jline.utils.NonBlocking$NonBlockingReaderInputStream.chars:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.array:()[C
aload 0
getfield jdk.internal.org.jline.utils.NonBlocking$NonBlockingReaderInputStream.chars:Ljava/nio/CharBuffer;
invokevirtual java.nio.CharBuffer.arrayOffset:()I
iload 8
iadd
iload 7
i2c
castore
16: aload 0
getfield jdk.internal.org.jline.utils.NonBlocking$NonBlockingReaderInputStream.chars:Ljava/nio/CharBuffer;
iload 8
iconst_1
iadd
invokevirtual java.nio.CharBuffer.limit:(I)Ljava/nio/CharBuffer;
pop
17: aload 0
getfield jdk.internal.org.jline.utils.NonBlocking$NonBlockingReaderInputStream.bytes:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.clear:()Ljava/nio/ByteBuffer;
pop
18: aload 0
getfield jdk.internal.org.jline.utils.NonBlocking$NonBlockingReaderInputStream.encoder:Ljava/nio/charset/CharsetEncoder;
aload 0
getfield jdk.internal.org.jline.utils.NonBlocking$NonBlockingReaderInputStream.chars:Ljava/nio/CharBuffer;
aload 0
getfield jdk.internal.org.jline.utils.NonBlocking$NonBlockingReaderInputStream.bytes:Ljava/nio/ByteBuffer;
iconst_0
invokevirtual java.nio.charset.CharsetEncoder.encode:(Ljava/nio/CharBuffer;Ljava/nio/ByteBuffer;Z)Ljava/nio/charset/CoderResult;
pop
19: aload 0
getfield jdk.internal.org.jline.utils.NonBlocking$NonBlockingReaderInputStream.bytes:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.flip:()Ljava/nio/ByteBuffer;
pop
end local 8 20: StackMap locals:
StackMap stack:
iload 4
ifne 22
21: lload 1
invokestatic java.lang.System.currentTimeMillis:()J
lload 5
lsub
lsub
lstore 1
end local 7 end local 5 22: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.org.jline.utils.NonBlocking$NonBlockingReaderInputStream.bytes:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifne 23
iload 4
ifne 4
lload 1
lconst_0
lcmp
ifgt 4
23: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.org.jline.utils.NonBlocking$NonBlockingReaderInputStream.bytes:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.hasRemaining:()Z
ifeq 27
24: iload 3
ifeq 26
25: aload 0
getfield jdk.internal.org.jline.utils.NonBlocking$NonBlockingReaderInputStream.bytes:Ljava/nio/ByteBuffer;
aload 0
getfield jdk.internal.org.jline.utils.NonBlocking$NonBlockingReaderInputStream.bytes:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.position:()I
invokevirtual java.nio.ByteBuffer.get:(I)B
invokestatic java.lang.Byte.toUnsignedInt:(B)I
ireturn
26: StackMap locals:
StackMap stack:
aload 0
getfield jdk.internal.org.jline.utils.NonBlocking$NonBlockingReaderInputStream.bytes:Ljava/nio/ByteBuffer;
invokevirtual java.nio.ByteBuffer.get:()B
invokestatic java.lang.Byte.toUnsignedInt:(B)I
ireturn
27: StackMap locals:
StackMap stack:
bipush -2
ireturn
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Ljdk/internal/org/jline/utils/NonBlocking$NonBlockingReaderInputStream;
0 28 1 timeout J
0 28 3 isPeek Z
3 28 4 isInfinite Z
5 22 5 start J
8 22 7 c I
15 20 8 l I
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
timeout
isPeek
}
SourceFile: "NonBlocking.java"
NestHost: jdk.internal.org.jline.utils.NonBlocking
InnerClasses:
private NonBlockingReaderInputStream = jdk.internal.org.jline.utils.NonBlocking$NonBlockingReaderInputStream of jdk.internal.org.jline.utils.NonBlocking