|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.overlord.sramp.shell.AbstractShellCommandReader
org.overlord.sramp.shell.InteractiveShellCommandReader
public class InteractiveShellCommandReader
An implementation of the ShellCommandReader that uses JLine to provide
a rich console experience to the user, complete with history, tab completion,
and ansi output.
| Constructor Summary | |
|---|---|
InteractiveShellCommandReader(ShellCommandFactory factory,
ShellContextImpl context)
Constructor. |
|
| Method Summary | |
|---|---|
void |
close()
Called by the shell when exiting. |
protected Writer |
getCommandOutput()
Gets the output stream that should be used by commands when they need to print a message to the console. |
void |
onVariableAdded(QName variableName,
Object value)
|
void |
onVariableChanged(QName variableName,
Object value)
|
void |
onVariableRemoved(QName variableName)
|
void |
open()
Called to open the shell command reader. |
protected String |
readLine()
Reads a single line from the input source (e.g. |
| Methods inherited from class org.overlord.sramp.shell.AbstractShellCommandReader |
|---|
getContext, getFactory, read |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InteractiveShellCommandReader(ShellCommandFactory factory,
ShellContextImpl context)
factory - context - | Method Detail |
|---|
public void open()
throws IOException
ShellCommandReader
open in interface ShellCommandReaderopen in class AbstractShellCommandReaderIOExceptionorg.overlord.sramp.common.shell.AbstractShellCommandReader#open()
protected String readLine()
throws IOException
AbstractShellCommandReader
readLine in class AbstractShellCommandReaderIOExceptionorg.overlord.sramp.common.shell.AbstractShellCommandReader#readLine()protected Writer getCommandOutput()
AbstractShellCommandReader
getCommandOutput in class AbstractShellCommandReaderorg.overlord.sramp.common.shell.AbstractShellCommandReader#getCommandOutput()
public void close()
throws IOException
ShellCommandReader
close in interface ShellCommandReaderclose in class AbstractShellCommandReaderIOExceptionorg.overlord.sramp.common.shell.ShellCommandReader#close()
public void onVariableAdded(QName variableName,
Object value)
onVariableAdded in interface ShellContextEventHandlershell.ShellContextEventHandler
public void onVariableChanged(QName variableName,
Object value)
onVariableChanged in interface ShellContextEventHandlershell.ShellContextEventHandlerpublic void onVariableRemoved(QName variableName)
onVariableRemoved in interface ShellContextEventHandlershell.ShellContextEventHandler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||