|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.expasy.jpl.commons.app.InteractiveInputScannerImpl
public final class InteractiveInputScannerImpl
| Nested Class Summary | |
|---|---|
static class |
InteractiveInputScannerImpl.Builder
|
| Field Summary | |
|---|---|
static Pattern |
YES_NO_PATTERN
|
| Constructor Summary | |
|---|---|
InteractiveInputScannerImpl(InteractiveInputScannerImpl.Builder builder)
|
|
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Pattern YES_NO_PATTERN
| Constructor Detail |
|---|
public InteractiveInputScannerImpl(InteractiveInputScannerImpl.Builder builder)
| Method Detail |
|---|
public void setInputStream(InputStream stream)
InteractiveInputScanner
setInputStream in interface InteractiveInputScannerpublic void setOutputStream(OutputStream stream)
InteractiveInputScanner
setOutputStream in interface InteractiveInputScanner
public String waitInput()
throws IOException
InteractiveInputScanner
waitInput in interface InteractiveInputScannerIOExceptionpublic Pattern getInputPattern()
InteractiveInputScanner
getInputPattern in interface InteractiveInputScannerpublic String getPrompt()
InteractiveInputScanner
getPrompt in interface InteractiveInputScannerpublic Pattern getExitPattern()
InteractiveInputScanner
getExitPattern in interface InteractiveInputScannerpublic String getDefaultInput()
getDefaultInput in interface InteractiveInputScanner
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||