public class ConsoleReaderInputStream extends 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) |
available, close, read, readmark, markSupported, read, reset, skippublic ConsoleReaderInputStream(ConsoleReader reader)
public static void setIn()
throws IOException
IOExceptionpublic static void setIn(ConsoleReader reader)
public static void restoreIn()
System.in input stream.Copyright © 2025. All rights reserved.