|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.crsh.shell.concurrent.SyncShellResponseContext
public class SyncShellResponseContext
| Constructor Summary | |
|---|---|
SyncShellResponseContext()
|
|
SyncShellResponseContext(ShellProcessContext wrapped)
|
|
| Method Summary | |
|---|---|
void |
begin(ShellProcess process)
This method is invoked before the process work begins. |
void |
cancel()
|
void |
end(ShellResponse response)
This method is invoked when the process ends. |
ShellResponse |
getResponse()
|
int |
getWidth()
Returns the term width in chars. |
String |
readLine(String msg,
boolean echo)
A callback made by the process when it needs to read a line of text on the term. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SyncShellResponseContext()
public SyncShellResponseContext(ShellProcessContext wrapped)
| Method Detail |
|---|
public void cancel()
public int getWidth()
ShellProcessContext
getWidth in interface ShellProcessContextpublic void begin(ShellProcess process)
ShellProcessContext
begin in interface ShellProcessContextprocess - the process
public String readLine(String msg,
boolean echo)
ShellProcessContext
readLine in interface ShellProcessContextmsg - the message to display prior reading the termecho - whether the input line should be echoed or not
public void end(ShellResponse response)
ShellProcessContext
end in interface ShellProcessContextresponse - the shell response
public ShellResponse getResponse()
throws InterruptedException
InterruptedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||