public class ConsoleReader extends Thread implements CommandIssuer
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
ConsoleReader() |
Modifier and Type | Method and Description |
---|---|
String |
getNext()
Returns the next command line to be dispatched.
|
void |
run() |
void |
sendText(UIText text)
Sends a line of text to this issuer through a UI.
|
void |
start() |
activeCount, checkAccess, clone, 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, stop, stop, suspend, toString, yield
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
sendText
public String getNext()
null
if there are no commands to run.public void sendText(UIText text)
CommandIssuer
sendText
in interface CommandIssuer
text
- the text to send to the issuer's user interfaceCopyright © 2016. All rights reserved.