public class DefaultEventHandler extends Object implements EventHandler
| Constructor and Description |
|---|
DefaultEventHandler() |
| 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)
文件被修改
|
public void onAccess(File file, FileAttribute before, FileAttribute current)
EventHandleronAccess in interface EventHandlerfile - 文件before - 上次文件属性current - 当前文件属性public void onModified(File file, FileAttribute before, FileAttribute current)
EventHandleronModified in interface EventHandlerfile - 文件before - 上次文件属性current - 当前文件属性public void onCreate(File file, FileAttribute current)
EventHandleronCreate in interface EventHandlerfile - 文件current - 当前文件属性public void onDelete(File file, FileAttribute before)
EventHandleronDelete in interface EventHandlerfile - 文件before - 上次文件属性Copyright © 2025. All rights reserved.