|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.htmlunit.corejs.javascript.tools.shell.ShellConsole
public abstract class ShellConsole
| Constructor Summary | |
|---|---|
protected |
ShellConsole()
|
| Method Summary | |
|---|---|
abstract void |
flush()
Flushes the console's output |
static ShellConsole |
getConsole(java.io.InputStream in,
java.io.PrintStream ps,
java.nio.charset.Charset cs)
Returns a new ShellConsole which uses the supplied
InputStream and PrintStream for its input/output |
static ShellConsole |
getConsole(Scriptable scope,
java.nio.charset.Charset cs)
Provides a specialized ShellConsole to handle line editing,
history and completion. |
abstract java.io.InputStream |
getIn()
Returns the underlying InputStream |
abstract void |
print(java.lang.String s)
Prints a single string to the console |
abstract void |
println()
Prints the newline character-sequence to the console |
abstract void |
println(java.lang.String s)
Prints a string and the newline character-sequence to the console |
abstract java.lang.String |
readLine()
Reads a single line from the console |
abstract java.lang.String |
readLine(java.lang.String prompt)
Reads a single line from the console and sets the console's prompt to prompt |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ShellConsole()
| Method Detail |
|---|
public abstract java.io.InputStream getIn()
InputStream
public abstract java.lang.String readLine()
throws java.io.IOException
java.io.IOException
public abstract java.lang.String readLine(java.lang.String prompt)
throws java.io.IOException
prompt
java.io.IOException
public abstract void flush()
throws java.io.IOException
java.io.IOException
public abstract void print(java.lang.String s)
throws java.io.IOException
java.io.IOException
public abstract void println()
throws java.io.IOException
java.io.IOException
public abstract void println(java.lang.String s)
throws java.io.IOException
java.io.IOException
public static ShellConsole getConsole(java.io.InputStream in,
java.io.PrintStream ps,
java.nio.charset.Charset cs)
ShellConsole which uses the supplied
InputStream and PrintStream for its input/output
public static ShellConsole getConsole(Scriptable scope,
java.nio.charset.Charset cs)
ShellConsole to handle line editing,
history and completion. Relies on the JLine library (see
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||