fr.umlv.unitex.process
Class ProcessInfoThread

java.lang.Object
  extended by java.lang.Thread
      extended by fr.umlv.unitex.process.ProcessInfoThread
All Implemented Interfaces:
java.lang.Runnable

public class ProcessInfoThread
extends java.lang.Thread

This class is used to monitor stdout and stderr messages of external processes.

Author:
Sébastien Paumier

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
ProcessInfoThread(javax.swing.JTextArea t, java.io.InputStream s, boolean close, ProcessInfoFrame f, javax.swing.JScrollBar scroll, javax.swing.JScrollPane scr)
          Creates a new ProcessInfoThread
 
Method Summary
 void run()
          Runs the monitoring 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

ProcessInfoThread

public ProcessInfoThread(javax.swing.JTextArea t,
                         java.io.InputStream s,
                         boolean close,
                         ProcessInfoFrame f,
                         javax.swing.JScrollBar scroll,
                         javax.swing.JScrollPane scr)
Creates a new ProcessInfoThread

Parameters:
t - the text area to display messages
s - the stream to monitor
close - indicate if the parent frame must be closed after the completion of the process
f - parent frame
scroll - scroll bar of the text area
scr - scroll pane that contains the text area
Method Detail

run

public void run()
Runs the monitoring thread

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