Class CLI
java.lang.Object
org.jpos.q2.CLI
- All Implemented Interfaces:
Runnable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCLI(Q2 q2, InputStream in, OutputStream rawout, String line, boolean keepRunning, boolean interactive) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.jline.terminal.TerminalbuildTerminal(InputStream in, OutputStream out) static voidexec(InputStream in, OutputStream out, String command) static Stringprotected String[]getQ2()org.jline.reader.LineReaderprotected voidbooleanprotected voidprotected voidvoidrun()protected booleanrunning()voidstart()voidstop()
-
Field Details
-
ctx
-
-
Constructor Details
-
CLI
- Throws:
IOException
-
CLI
public CLI(Q2 q2, InputStream in, OutputStream rawout, String line, boolean keepRunning, boolean interactive) throws IOException - Throws:
IOException
-
-
Method Details
-
running
-
markStopped
-
markStarted
-
getCompletionPrefixes
-
handleExit
-
start
-
stop
-
run
-
getQ2
-
isInteractive
-
getReader
-
exec
- Throws:
Exception
-
exec
-
buildTerminal
protected org.jline.terminal.Terminal buildTerminal(InputStream in, OutputStream out) throws IOException - Throws:
IOException
-