com.eu.miscedautils.CommonUtils
Class ConsoleThread

java.lang.Object
  extended by java.lang.Thread
      extended by com.eu.miscedautils.CommonUtils.ConsoleThread
All Implemented Interfaces:
java.lang.Runnable

public class ConsoleThread
extends java.lang.Thread

ConsoleThread -- This class implements the Console Thread: The console thread loops forever, reading from the standard input, executing the user input and writing the result to the standard output.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ConsoleThread(tcl.lang.Interp i, java.lang.String initFile, java.lang.String tclFile, java.lang.String prmpt, boolean verb)
          ConsoleThread -- Create a ConsoleThread.
 
Method Summary
 void initializeTclShell(tcl.lang.Interp tclInterpreter, java.lang.String initfilename)
           
 java.lang.String insertExtraSlashForWindows(java.lang.String str)
           
 void run()
          run -- Called by the JVM to start the execution of the console thread.
 
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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConsoleThread

public ConsoleThread(tcl.lang.Interp i,
                     java.lang.String initFile,
                     java.lang.String tclFile,
                     java.lang.String prmpt,
                     boolean verb)
ConsoleThread -- Create a ConsoleThread.

Method Detail

run

public void run()
run -- Called by the JVM to start the execution of the console thread. It loops forever to handle user inputs.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

insertExtraSlashForWindows

public java.lang.String insertExtraSlashForWindows(java.lang.String str)

initializeTclShell

public void initializeTclShell(tcl.lang.Interp tclInterpreter,
                               java.lang.String initfilename)