Class ShellConsole.JLineShellConsoleV1
java.lang.Object
org.mozilla.javascript.tools.shell.ShellConsole
org.mozilla.javascript.tools.shell.ShellConsole.JLineShellConsoleV1
- Enclosing class:
ShellConsole
ShellConsole implementation for JLine v1-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidflush()Flushes the console's outputgetIn()Returns the underlyingInputStreamvoidPrints a single string to the consolevoidprintln()Prints the newline character-sequence to the consolevoidPrints 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 topromptMethods inherited from class org.mozilla.javascript.tools.shell.ShellConsole
getConsole, getConsole
-
Field Details
-
reader
-
in
-
-
Constructor Details
-
JLineShellConsoleV1
-
-
Method Details
-
getIn
Description copied from class:ShellConsoleReturns the underlyingInputStream- Specified by:
getInin classShellConsole
-
readLine
Description copied from class:ShellConsoleReads a single line from the console- Specified by:
readLinein classShellConsole- Throws:
IOException
-
readLine
Description copied from class:ShellConsoleReads a single line from the console and sets the console's prompt toprompt- Specified by:
readLinein classShellConsole- Throws:
IOException
-
flush
Description copied from class:ShellConsoleFlushes the console's output- Specified by:
flushin classShellConsole- Throws:
IOException
-
print
Description copied from class:ShellConsolePrints a single string to the console- Specified by:
printin classShellConsole- Throws:
IOException
-
println
Description copied from class:ShellConsolePrints the newline character-sequence to the console- Specified by:
printlnin classShellConsole- Throws:
IOException
-
println
Description copied from class:ShellConsolePrints a string and the newline character-sequence to the console- Specified by:
printlnin classShellConsole- Throws:
IOException
-