software.scanner.gui
Class FileWatcher

java.lang.Object
  extended by java.lang.Thread
      extended by software.scanner.gui.FileWatcher
All Implemented Interfaces:
java.lang.Runnable

public class FileWatcher
extends java.lang.Thread


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
FileWatcher(java.lang.String dir)
           
 
Method Summary
 void addActionListner(java.awt.event.ActionListener a)
           
 java.util.Vector<java.lang.Integer> getFirstDiff(java.io.File[] newFiles, java.io.File[] oldFiles)
           
 boolean isRunning()
           
 boolean isScannNewFilesOnly()
           
static void main(java.lang.String[] args)
           
 void run()
           
 void setRunning(boolean running)
           
 void setScannNewFilesOnly(boolean scannNewFilesOnly)
           
 
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

FileWatcher

public FileWatcher(java.lang.String dir)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

addActionListner

public void addActionListner(java.awt.event.ActionListener a)

getFirstDiff

public java.util.Vector<java.lang.Integer> getFirstDiff(java.io.File[] newFiles,
                                                        java.io.File[] oldFiles)

isRunning

public boolean isRunning()

setRunning

public void setRunning(boolean running)

isScannNewFilesOnly

public boolean isScannNewFilesOnly()

setScannNewFilesOnly

public void setScannNewFilesOnly(boolean scannNewFilesOnly)

main

public static void main(java.lang.String[] args)