|
||||||||||
| 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.StdInShellCommandReader
public class StdInShellCommandReader
An implementation of the ShellCommandReader that uses standard input
to read commands typed in by the user.
| Constructor Summary | |
|---|---|
StdInShellCommandReader(ShellCommandFactory factory,
ShellContextImpl context)
Constructor. |
|
| Method Summary | |
|---|---|
void |
close()
Called by the shell when exiting. |
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 |
|---|
getCommandOutput, getContext, getFactory, read |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StdInShellCommandReader(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()
public void close()
throws IOException
ShellCommandReader
close in interface ShellCommandReaderclose in class AbstractShellCommandReaderIOExceptionorg.overlord.sramp.common.shell.ShellCommandReader#close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||