comirva.io
Class DocumentTermExtractorThread
java.lang.Object
java.lang.Thread
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.
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 |
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 residefilter
- a FileFilter for filtering the documents that are to be considered in the term extractionjl
- the JLabel representing the status bar (for writing current loading progress)ws
- the Workspace to which the output (term list) is to be added
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()