
com.darylteo.nio.DirectoryChangedSubscriber Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of directorywatcher Show documentation
Show all versions of directorywatcher Show documentation
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