protected static class ProcessIOContent.InputToken extends ProcessIOContent.Token
Modifier and Type | Field and Description |
---|---|
private String |
prompt
Process input prompt when differs from global input prompt.
|
Modifier | Constructor and Description |
---|---|
protected |
ProcessIOContent.InputToken(String prompt,
String[] input,
String output)
Create an instance of input token expecting custom input prompt
and set of strings on standard output.
|
Modifier and Type | Method and Description |
---|---|
protected String |
getPrompt()
Get process input prompt different from global input prompt.
|
getMatchError, getMaxLen, getOutputStrings, isSuccess, match
private final String prompt
protected ProcessIOContent.InputToken(String prompt, String[] input, String output)
prompt
- Process input prompt different from
global input prompt.input
- Array of input strings to be matched before prompt.output
- Output to be sent after all input strings are matched
and prompt is received.protected String getPrompt()
getPrompt
in class ProcessIOContent.Token
null
when no such prompt is set.Copyright © 2013. All Rights Reserved.