?? FileAlterationListener
- ???????:
FileAlterationListenerAdaptor
public interface FileAlterationListener
A listener that receives events of file system modifications.
Register FileAlterationListener
s with a FileAlterationObserver
.
- ???????:
- 2.0
- ????:
-
????
??????????void
onDirectoryChange
(File directory) Directory changed Event.void
onDirectoryCreate
(File directory) Directory created Event.void
onDirectoryDelete
(File directory) Directory deleted Event.void
onFileChange
(File file) File changed Event.void
onFileCreate
(File file) File created Event.void
onFileDelete
(File file) File deleted Event.void
onStart
(FileAlterationObserver observer) File system observer started checking event.void
onStop
(FileAlterationObserver observer) File system observer finished checking event.
-
??????
-
onStart
File system observer started checking event.- ??:
observer
- The file system observer
-
onDirectoryCreate
Directory created Event.- ??:
directory
- The directory created
-
onDirectoryChange
Directory changed Event.- ??:
directory
- The directory changed
-
onDirectoryDelete
Directory deleted Event.- ??:
directory
- The directory deleted
-
onFileCreate
File created Event.- ??:
file
- The file created
-
onFileChange
File changed Event.- ??:
file
- The file changed
-
onFileDelete
File deleted Event.- ??:
file
- The file deleted
-
onStop
File system observer finished checking event.- ??:
observer
- The file system observer
-