public abstract class ConsoleInputStream extends InputStream
Constructor and Description |
---|
ConsoleInputStream() |
Modifier and Type | Method and Description |
---|---|
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.
|
available, close, mark, markSupported, read, read, read, reset, skip
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.Copyright © 2014. All Rights Reserved.