Package jline
Class ConsoleReaderInputStream
java.lang.Object
java.io.InputStream
java.io.SequenceInputStream
jline.ConsoleReaderInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
An
InputStream
implementation that wraps a ConsoleReader
.
It is useful for setting up the System.in
for a generic
console.- Author:
- Marc Prud'hommeaux
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Restore the originalSystem.in
input stream.static void
setIn()
static void
setIn
(ConsoleReader reader) Methods inherited from class java.io.SequenceInputStream
available, close, read, read
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
ConsoleReaderInputStream
-
-
Method Details
-
setIn
- Throws:
IOException
-
setIn
-
restoreIn
public static void restoreIn()Restore the originalSystem.in
input stream.
-