org.jpos.q2
Class CLI
java.lang.Object
java.lang.Thread
org.jpos.q2.CLI
- All Implemented Interfaces:
- Runnable, jline.SimpleCompletor.SimpleCompletorFilter
public class CLI
- extends Thread
- implements jline.SimpleCompletor.SimpleCompletorFilter
|
Constructor Summary |
CLI(Q2 q2,
String line,
boolean keepRunning)
|
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
CLI
public CLI(Q2 q2,
String line,
boolean keepRunning)
throws IOException
- Throws:
IOException
run
public void run()
- Specified by:
run in interface Runnable- Overrides:
run in class Thread
print
public void print(String s)
println
public void println(String s)
confirm
public boolean confirm(String prompt)
throws IOException
- Throws:
IOException
getQ2
public Q2 getQ2()
getConsoleReader
public jline.ConsoleReader getConsoleReader()
getOutputStream
public PrintStream getOutputStream()
filter
public String filter(String element)
- Specified by:
filter in interface jline.SimpleCompletor.SimpleCompletorFilter
Copyright © 1998-2012 jPOS.org. All Rights Reserved.