|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface InteractiveInputScanner
InteractiveInputScanner interactively reads input stream.
| Method Summary | |
|---|---|
String |
getDefaultInput()
|
Pattern |
getExitPattern()
Get the pattern matching the interruption |
Pattern |
getInputPattern()
Get the pattern matching the input |
String |
getPrompt()
Get the command-line prompt |
void |
setInputStream(InputStream stream)
Set input stream from where input is find (stdin by default) |
void |
setOutputStream(OutputStream stream)
Set output stream to where prompt flushed (stdout by default) |
String |
waitInput()
Read input stream |
| Method Detail |
|---|
String getPrompt()
Pattern getInputPattern()
Pattern getExitPattern()
void setInputStream(InputStream stream)
void setOutputStream(OutputStream stream)
String waitInput()
throws IOException
IOExceptionString getDefaultInput()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||