All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.darylteo.nio.DirectoryChangedSubscriber Maven / Gradle / Ivy

Go to download

Watch and receive notifications on filesystem changes using Java 7 NIO's WatchService

The newest version!
package com.darylteo.nio;

import java.nio.file.Path;

public abstract class DirectoryChangedSubscriber extends DirectoryWatcherSubscriber {
  public abstract void directoryChanged(DirectoryWatcher watcher, Path path);

  @Override
  public void entryCreated(DirectoryWatcher watcher, Path dir) {
    directoryChanged(watcher, dir);
  }

  @Override
  public void entryDeleted(DirectoryWatcher watcher, Path file) {
    directoryChanged(watcher, file);
  }

  @Override
  public void entryModified(DirectoryWatcher watcher, Path file) {
    directoryChanged(watcher, file);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy