public class FileEventAdapter extends Object implements FileEventListener
| Constructor and Description |
|---|
FileEventAdapter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRecursive()
If the paths monitored by this listener should be monitored recursively or not.
|
void |
onFailure()
Called when monitoring has failed, after this listener may stop
receiving events.
|
void |
onFileAdd(File file)
Called when a new file was added.
|
void |
onFileChange(File file)
Called when an existing file was modified.
|
void |
onFileDirty(File file)
Called when an event was lost or the state might be dirty.
|
void |
onFileRemove(File file)
Called when an existing file was removed.
|
public boolean isRecursive()
FileEventListenerisRecursive in interface FileEventListenerpublic void onFileAdd(File file)
FileEventListeneronFileAdd in interface FileEventListenerfile - resource path.public void onFileChange(File file)
FileEventListeneronFileChange in interface FileEventListenerfile - resource path.public void onFileRemove(File file)
FileEventListeneronFileRemove in interface FileEventListenerfile - resource path.public void onFileDirty(File file)
FileEventListeneronFileDirty in interface FileEventListenerfile - resource path from event or mostly null.public void onFailure()
FileEventListeneronFailure in interface FileEventListenerCopyright © 2016. All rights reserved.