Class FilesystemObserver


  • public class FilesystemObserver
    extends Object
    File- and DirectoryListener can be registered at the observer to recevive notifications if they change. Uses internally the WatchService.
    • Constructor Detail

      • FilesystemObserver

        public FilesystemObserver()
    • Method Detail

      • createWatcherThread

        protected Thread createWatcherThread()
      • start

        public void start()
      • stop

        public void stop()
      • processEvents

        protected void processEvents()
      • notifyDirectoryListener

        protected void notifyDirectoryListener​(de.galan.commons.io.file.ProxyDirectoryListener proxyDirectoryListener,
                                               WatchEvent.Kind<?> kind,
                                               Path path)
      • notifyFileListener

        protected void notifyFileListener​(de.galan.commons.io.file.ProxyFileListener fileListener,
                                          WatchEvent.Kind<?> kind,
                                          Path path)
      • registerDirectoryListenerInternal

        protected void registerDirectoryListenerInternal​(de.galan.commons.io.file.ProxyDirectoryListener proxyDirectoryListener)
                                                  throws IOException
        Throws:
        IOException