|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.generationjava.io.CommandLine
Read lines from a Command Line. This allows the code that deals with the commands to be independent of the command-reading.
| Constructor Summary | |
CommandLine(InputStream is,
CommandLineListener cll)
Create a CommandLine with the InputStream to read commands from and the CommandLineListener to send commands to. |
|
CommandLine(Reader rdr,
CommandLineListener cll)
Create a CommandLine with the Reader to read commands from and the CommandLineListener to send commands to. |
|
| Method Summary | |
String |
getPrompt()
Get the prompt which will be ignored by the CommandLine. |
void |
setPrompt(String s)
Set a prompt to ignore. |
void |
startReading()
Start the CommandLine. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CommandLine(InputStream is,
CommandLineListener cll)
public CommandLine(Reader rdr,
CommandLineListener cll)
| Method Detail |
public void setPrompt(String s)
public String getPrompt()
public void startReading()
throws IOException
IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||