|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.overlord.sramp.shell.AbstractShellCommandReader
public abstract class AbstractShellCommandReader
A base class for all shell command readers.
| Constructor Summary | |
|---|---|
AbstractShellCommandReader(ShellCommandFactory factory,
ShellContext 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. |
ShellContext |
getContext()
|
ShellCommandFactory |
getFactory()
|
abstract void |
open()
Called to open the shell command reader. |
ShellCommand |
read()
Reads the next command from the input source. |
protected abstract String |
readLine()
Reads a single line from the input source (e.g. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractShellCommandReader(ShellCommandFactory factory,
ShellContext context)
factory - context - | Method Detail |
|---|
public abstract void open()
throws IOException
ShellCommandReader
open in interface ShellCommandReaderIOExceptionorg.overlord.sramp.common.shell.ShellCommandReader#open()
public final ShellCommand read()
throws Exception
ShellCommandReader
read in interface ShellCommandReaderExceptionorg.overlord.sramp.common.shell.ShellCommandReader#read()protected Writer getCommandOutput()
protected abstract String readLine()
throws IOException
IOException
public void close()
throws IOException
ShellCommandReader
close in interface ShellCommandReaderIOExceptionorg.overlord.sramp.common.shell.ShellCommandReader#close()public ShellCommandFactory getFactory()
public ShellContext getContext()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||