comirva.io
Class DocumentTermExtractorThread

java.lang.Object
  extended by java.lang.Thread
      extended by comirva.io.DocumentTermExtractorThread
All Implemented Interfaces:
Runnable

public class DocumentTermExtractorThread
extends Thread

This class implements a thread for extracting terms from a directory of documents.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
DocumentTermExtractorThread(File dir, FileFilter filter, JLabel jl, Workspace ws)
          Creates a DocumentTermExtractor for extracting a term list.
 
Method Summary
 void run()
          This method is called when the thread is started.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DocumentTermExtractorThread

public DocumentTermExtractorThread(File dir,
                                   FileFilter filter,
                                   JLabel jl,
                                   Workspace ws)
Creates a DocumentTermExtractor for extracting a term list.

Parameters:
dir - a File pointing to the direcotry where the documents reside
filter - a FileFilter for filtering the documents that are to be considered in the term extraction
jl - the JLabel representing the status bar (for writing current loading progress)
ws - the Workspace to which the output (term list) is to be added
Method Detail

run

public void run()
This method is called when the thread is started. The term extraction process is performed.

Specified by:
run in interface Runnable
Overrides:
run in class Thread
See Also:
Runnable.run()