public class ClassifyingWatcherListener extends Object implements WatcherListener
| Constructor and Description |
|---|
ClassifyingWatcherListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
addClassifier(FileClassifier fileClassifier) |
void |
onExists(String base,
String filename,
Boolean modified)
When a file or directory is added or modified.
|
void |
onRemoved(String base,
String filename)
Notify that a file or directory was removed.
|
public void onExists(String base, String filename, Boolean modified) throws IllegalStateException
WatcherListeneronExists in interface WatcherListenerfilename - of themodified - false is created, true if modified, null if bootstrapping.IllegalStateException - when this listener is no longer validpublic void onRemoved(String base, String filename) throws IllegalStateException
WatcherListeneronRemoved in interface WatcherListenerfilename - removed.IllegalStateException - when this listener is no longer validpublic void addClassifier(FileClassifier fileClassifier)
Copyright © 2020. All rights reserved.