Class CLIContext.Builder
java.lang.Object
org.jpos.q2.CLIContext.Builder
- Enclosing class:
CLIContext
Builder for constructing
CLIContext instances.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds and returns the CLIContext.Sets the CLI instance.err(OutputStream err) Sets the error stream.in(InputStream in) Sets the input stream.out(OutputStream out) Sets the standard output stream.reader(org.jline.reader.LineReader reader) Sets the JLine3 LineReader.
-
Method Details
-
out
Sets the standard output stream.- Parameters:
out- the standard output stream- Returns:
- this
-
err
Sets the error stream.- Parameters:
err- the error stream- Returns:
- this
-
in
Sets the input stream.- Parameters:
in- the input stream- Returns:
- this
-
reader
Sets the JLine3 LineReader.- Parameters:
reader- the LineReader- Returns:
- this
-
cli
Sets the CLI instance.- Parameters:
cli- the CLI- Returns:
- this
-
build
-