Package org.openscience.jmol.app
Class InputScannerThread
- java.lang.Object
-
- java.lang.Thread
-
- org.openscience.jmol.app.InputScannerThread
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
Fields Modifier and Type Field Description private StringBuilder
buffer
private boolean
isSilent
private Scanner
scanner
private Timer
t
private JmolViewer
vwr
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description InputScannerThread(JmolViewer vwr, boolean isSilent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private boolean
checkCommand()
(package private) boolean
mainLoop()
void
run()
private void
say(String msg)
(package private) void
scan()
void
start()
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, suspend, toString, yield
-
-
-
-
Field Detail
-
vwr
private JmolViewer vwr
-
scanner
private Scanner scanner
-
isSilent
private boolean isSilent
-
buffer
private StringBuilder buffer
-
t
private Timer t
-
-
Constructor Detail
-
InputScannerThread
InputScannerThread(JmolViewer vwr, boolean isSilent)
-
-
Method Detail
-
mainLoop
boolean mainLoop() throws InterruptedException
- Throws:
InterruptedException
-
scan
void scan()
-
say
private void say(String msg)
-
checkCommand
private boolean checkCommand()
-
-