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 | Description |
|---|---|
ConsoleReaderInputStream(ConsoleReader reader) |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
restoreIn() |
Restore the original
System.in input stream. |
static void |
setIn() |
|
static void |
setIn(ConsoleReader reader) |
mark, markSupported, read, readAllBytes, readNBytes, reset, skip, transferTopublic ConsoleReaderInputStream(ConsoleReader reader)
public static void setIn() throws java.io.IOException
java.io.IOExceptionpublic static void setIn(ConsoleReader reader)
public static void restoreIn()
System.in input stream.