Class FileWatcher

java.lang.Object
net.seesharpsoft.commons.util.FileWatcher

public abstract class FileWatcher
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    FileWatcher​(java.io.File file)  
    FileWatcher​(java.lang.String watchFile)  
  • Method Summary

    Modifier and Type Method Description
    abstract void onModified()  
    void startWatching()  
    void stopWatching()  

    Methods inherited from class java.lang.Object

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

    • FileWatcher

      public FileWatcher​(java.io.File file)
    • FileWatcher

      public FileWatcher​(java.lang.String watchFile)
  • Method Details

    • stopWatching

      public void stopWatching()
    • startWatching

      public void startWatching() throws java.io.IOException
      Throws:
      java.io.IOException
    • onModified

      public abstract void onModified()