jline
public class ConsoleReaderInputStream extends java.io.SequenceInputStream
InputStream
implementation that wraps a ConsoleReader
.
It is useful for setting up the System.in
for a generic
console.Constructor and Description |
---|
ConsoleReaderInputStream(ConsoleReader reader) |
Modifier and Type | Method and Description |
---|---|
static void |
restoreIn()
Restore the original
System.in input stream. |
static void |
setIn() |
static void |
setIn(ConsoleReader reader) |
public ConsoleReaderInputStream(ConsoleReader reader)
public static void setIn() throws java.io.IOException
java.io.IOException
public static void setIn(ConsoleReader reader)
public static void restoreIn()
System.in
input stream.