Class FileWatchTask

  • All Implemented Interfaces:
    java.lang.Runnable

    public class FileWatchTask
    extends java.util.TimerTask
    FileWatchTask. Polls a file for modifications and invokes a provided FileObserver
    Since:
    8.0
    Author:
    Tristan Tarrant
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void run()  
      • Methods inherited from class java.util.TimerTask

        cancel, scheduledExecutionTime
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileWatchTask

        public FileWatchTask​(java.io.File file,
                             FileObserver observer)
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
        Specified by:
        run in class java.util.TimerTask