Class ShellConsole.JLineShellConsoleV2
java.lang.Object
org.mozilla.javascript.tools.shell.ShellConsole
org.mozilla.javascript.tools.shell.ShellConsole.JLineShellConsoleV2
- Enclosing class:
ShellConsole
ShellConsole
implementation for JLine v2-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
flush()
Flushes the console's outputgetIn()
Returns the underlyingInputStream
void
Prints a single string to the consolevoid
println()
Prints the newline character-sequence to the consolevoid
Prints a string and the newline character-sequence to the consolereadLine()
Reads a single line from the consoleReads a single line from the console and sets the console's prompt toprompt
Methods inherited from class ShellConsole
getConsole, getConsole
-
Field Details
-
reader
-
in
-
-
Constructor Details
-
JLineShellConsoleV2
-
-
Method Details
-
getIn
Description copied from class:ShellConsole
Returns the underlyingInputStream
- Specified by:
getIn
in classShellConsole
-
readLine
Description copied from class:ShellConsole
Reads a single line from the console- Specified by:
readLine
in classShellConsole
- Throws:
IOException
-
readLine
Description copied from class:ShellConsole
Reads a single line from the console and sets the console's prompt toprompt
- Specified by:
readLine
in classShellConsole
- Throws:
IOException
-
flush
Description copied from class:ShellConsole
Flushes the console's output- Specified by:
flush
in classShellConsole
- Throws:
IOException
-
print
Description copied from class:ShellConsole
Prints a single string to the console- Specified by:
print
in classShellConsole
- Throws:
IOException
-
println
Description copied from class:ShellConsole
Prints the newline character-sequence to the console- Specified by:
println
in classShellConsole
- Throws:
IOException
-
println
Description copied from class:ShellConsole
Prints a string and the newline character-sequence to the console- Specified by:
println
in classShellConsole
- Throws:
IOException
-