public interface EventHandler
Modifier and Type | Method and Description |
---|---|
void |
onAccess(File file,
FileAttribute before,
FileAttribute current)
文件被访问
|
void |
onCreate(File file,
FileAttribute current)
文件被创建
|
void |
onDelete(File file,
FileAttribute before)
文件被删除
|
void |
onModified(File file,
FileAttribute before,
FileAttribute current)
文件被修改
|
void onAccess(File file, FileAttribute before, FileAttribute current)
file
- 文件before
- 上次文件属性current
- 当前文件属性void onModified(File file, FileAttribute before, FileAttribute current)
file
- 文件before
- 上次文件属性current
- 当前文件属性void onCreate(File file, FileAttribute current)
file
- 文件current
- 当前文件属性void onDelete(File file, FileAttribute before)
file
- 文件before
- 上次文件属性Copyright © 2024. All rights reserved.