public class MonitorFile extends Object
| Constructor and Description |
|---|
MonitorFile() |
| Modifier and Type | Method and Description |
|---|---|
void |
addMonitorFilePath(String path)
添加监听文件路径
|
void |
addMonitorFilePaths(List<String> filePaths)
添加监听文件路径
|
void |
create()
创建文件监听
|
static MonitorFile |
getInstance() |
public static MonitorFile getInstance()
public void addMonitorFilePath(String path)
path - 文件路径public void addMonitorFilePaths(List<String> filePaths)
filePaths - 文件路径Copyright © 2025. All rights reserved.