Package org.jline.terminal.impl
Class PosixPtyTerminal.InputStreamWrapper
- java.lang.Object
-
- java.io.InputStream
-
- org.jline.utils.NonBlockingInputStream
-
- org.jline.terminal.impl.PosixPtyTerminal.InputStreamWrapper
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
- Enclosing class:
- PosixPtyTerminal
private static class PosixPtyTerminal.InputStreamWrapper extends NonBlockingInputStream
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
closed
private NonBlockingInputStream
in
-
Fields inherited from class org.jline.utils.NonBlockingInputStream
EOF, READ_EXPIRED
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
InputStreamWrapper(NonBlockingInputStream in)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
int
read(long timeout, boolean isPeek)
-
Methods inherited from class org.jline.utils.NonBlockingInputStream
peek, read, read, read, readBuffered, readBuffered, readBuffered, shutdown
-
-
-
-
Field Detail
-
in
private final NonBlockingInputStream in
-
closed
private volatile boolean closed
-
-
Constructor Detail
-
InputStreamWrapper
protected InputStreamWrapper(NonBlockingInputStream in)
-
-
Method Detail
-
read
public int read(long timeout, boolean isPeek) throws java.io.IOException
- Specified by:
read
in classNonBlockingInputStream
- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.InputStream
- Throws:
java.io.IOException
-
-