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, read
mark, markSupported, read, reset, skip
public ConsoleReaderInputStream(ConsoleReader reader)
public static void setIn() throws IOException
IOException
public static void setIn(ConsoleReader reader)
public static void restoreIn()
System.in
input stream.Copyright © 2024. All rights reserved.