public class FileShellCommandReader extends AbstractShellCommandReader
ShellCommandReader that reads data from
a file.| Constructor and Description |
|---|
FileShellCommandReader(ShellCommandFactory factory,
ShellContextImpl context,
String filePath)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getCommandOutput, getContext, getFactory, readpublic FileShellCommandReader(ShellCommandFactory factory, ShellContextImpl context, String filePath)
factory - context - filePath - public void open()
throws IOException
ShellCommandReaderopen in interface ShellCommandReaderopen in class AbstractShellCommandReaderIOExceptionorg.overlord.sramp.common.shell.AbstractShellCommandReader#open()protected String readLine() throws IOException
AbstractShellCommandReaderreadLine in class AbstractShellCommandReaderIOExceptionorg.overlord.sramp.common.shell.AbstractShellCommandReader#readLine()public void close()
throws IOException
ShellCommandReaderclose in interface ShellCommandReaderclose in class AbstractShellCommandReaderIOExceptionorg.overlord.sramp.common.shell.ShellCommandReader#close()Copyright © 2011–2013 JBoss, a division of Red Hat. All rights reserved.