|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
org.freehep.jas.plugin.console.ConsoleInputStream
public abstract class ConsoleInputStream
An InputStream for reading input typed into a console.
Constructor Summary | |
---|---|
ConsoleInputStream()
|
Method Summary | |
---|---|
String |
getPrompt()
Get the current (permanent) prompt. |
void |
setInitialEntry(String entry)
The initial entry is prefilled into the input area following the prompt. |
void |
setOneTimePrompt(String prompt)
Sets the prompt. |
void |
setPrompt(String prompt)
Sets the prompt. |
Methods inherited from class java.io.InputStream |
---|
available, close, mark, markSupported, read, read, read, reset, skip |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConsoleInputStream()
Method Detail |
---|
public void setPrompt(String prompt)
prompt
- The prompt stringpublic void setOneTimePrompt(String prompt)
prompt
- The prompt stringpublic String getPrompt()
public void setInitialEntry(String entry)
entry
- The string to pre fill the input area.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |