|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Console
Defines the requirements for classes that provides output functionality and possibly support for user input.
Method Summary | |
---|---|
Command |
getCommand(java.lang.String commandName)
Returns the Command object that is associated with
commandName . |
Command[] |
getCommands()
Returns all supported commands. |
boolean |
isEchoing()
Returns true, input is echoed on screen. |
void |
println(java.lang.String text)
Prints text to screen. |
java.lang.String |
readln(java.lang.String prompt)
Reads a line from this console. |
Method Detail |
---|
Command getCommand(java.lang.String commandName)
Command
object that is associated with
commandName
.
Command[] getCommands()
boolean isEchoing()
java.lang.String readln(java.lang.String prompt)
void println(java.lang.String text)
text
to screen.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |