|
||||||||||
| 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.FileShellCommandReader
public class FileShellCommandReader
An implementation of the ShellCommandReader that reads data from
a file.
| Constructor Summary | |
|---|---|
FileShellCommandReader(ShellCommandFactory factory,
ShellContextImpl context,
String filePath)
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 FileShellCommandReader(ShellCommandFactory factory,
ShellContextImpl context,
String filePath)
factory - context - filePath - | 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 | |||||||||