Class ShellConsole.ConsoleInputStream
java.lang.Object
java.io.InputStream
org.htmlunit.corejs.javascript.tools.shell.ShellConsole.ConsoleInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
ShellConsole
JLine's ConsoleReaderInputStream is no longer public, therefore we need to use our own
implementation
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
EMPTY
private static final byte[] EMPTY -
console
-
cs
-
buffer
private byte[] buffer -
cursor
private int cursor -
atEOF
private boolean atEOF
-
-
Constructor Details
-
ConsoleInputStream
-
-
Method Details
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
ensureInput
- Throws:
IOException
-
readNextLine
- Throws:
IOException
-