Class ShellConsole.JLineShellConsoleV1
- java.lang.Object
-
- org.htmlunit.corejs.javascript.tools.shell.ShellConsole
-
- org.htmlunit.corejs.javascript.tools.shell.ShellConsole.JLineShellConsoleV1
-
- Enclosing class:
- ShellConsole
private static class ShellConsole.JLineShellConsoleV1 extends ShellConsole
ShellConsoleimplementation for JLine v1
-
-
Constructor Summary
Constructors Constructor Description JLineShellConsoleV1(java.lang.Object reader, java.nio.charset.Charset cs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidflush()Flushes the console's outputjava.io.InputStreamgetIn()Returns the underlyingInputStreamvoidprint(java.lang.String s)Prints a single string to the consolevoidprintln()Prints the newline character-sequence to the consolevoidprintln(java.lang.String s)Prints a string and the newline character-sequence to the consolejava.lang.StringreadLine()Reads a single line from the consolejava.lang.StringreadLine(java.lang.String prompt)Reads a single line from the console and sets the console's prompt toprompt-
Methods inherited from class org.htmlunit.corejs.javascript.tools.shell.ShellConsole
getConsole, getConsole
-
-
-
-
Method Detail
-
getIn
public java.io.InputStream getIn()
Description copied from class:ShellConsoleReturns the underlyingInputStream- Specified by:
getInin classShellConsole
-
readLine
public java.lang.String readLine() throws java.io.IOExceptionDescription copied from class:ShellConsoleReads a single line from the console- Specified by:
readLinein classShellConsole- Throws:
java.io.IOException
-
readLine
public java.lang.String readLine(java.lang.String prompt) throws java.io.IOExceptionDescription copied from class:ShellConsoleReads a single line from the console and sets the console's prompt toprompt- Specified by:
readLinein classShellConsole- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOExceptionDescription copied from class:ShellConsoleFlushes the console's output- Specified by:
flushin classShellConsole- Throws:
java.io.IOException
-
print
public void print(java.lang.String s) throws java.io.IOExceptionDescription copied from class:ShellConsolePrints a single string to the console- Specified by:
printin classShellConsole- Throws:
java.io.IOException
-
println
public void println() throws java.io.IOExceptionDescription copied from class:ShellConsolePrints the newline character-sequence to the console- Specified by:
printlnin classShellConsole- Throws:
java.io.IOException
-
println
public void println(java.lang.String s) throws java.io.IOExceptionDescription copied from class:ShellConsolePrints a string and the newline character-sequence to the console- Specified by:
printlnin classShellConsole- Throws:
java.io.IOException
-
-