- java.lang.Object
-
- com.ibm.j9ddr.command.CommandReader
-
- Direct Known Subclasses:
ConsoleCommandReader
public abstract class CommandReader extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected PrintStream
out
-
Constructor Summary
Constructors Constructor Description CommandReader(PrintStream out)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
processInput(DDRInteractive engine)
Execute next command, and execute it in DDRInteractivevoid
processLine(DDRInteractive engine, String line)
abstract void
setInputStream(InputStream in)
Set the input stream on which commands will be read from.
-
-
-
Field Detail
-
out
protected final PrintStream out
-
-
Constructor Detail
-
CommandReader
public CommandReader(PrintStream out)
-
-
Method Detail
-
processInput
public abstract void processInput(DDRInteractive engine) throws Exception
Execute next command, and execute it in DDRInteractive- Throws:
Exception
-
setInputStream
public abstract void setInputStream(InputStream in)
Set the input stream on which commands will be read from. This may be ignored by the underlying implementation if this redirection is not supported.- Parameters:
in
- InputStream to read commands from
-
processLine
public void processLine(DDRInteractive engine, String line) throws Exception
- Throws:
Exception
-
-