Package | Description |
---|---|
cn.hutool.core.io.watch |
基于JDK7+ WatchService的文件和目录监听封装,支持多级目录
|
Modifier and Type | Method and Description |
---|---|
static WatchMonitor |
WatchUtil.create(File file,
int maxDepth,
WatchEvent.Kind<?>... events)
创建并初始化监听
|
static WatchMonitor |
WatchMonitor.create(File file,
int maxDepth,
WatchEvent.Kind<?>... events)
创建并初始化监听
|
static WatchMonitor |
WatchUtil.create(File file,
WatchEvent.Kind<?>... events)
创建并初始化监听
|
static WatchMonitor |
WatchMonitor.create(File file,
WatchEvent.Kind<?>... events)
创建并初始化监听
|
static WatchMonitor |
WatchUtil.create(Path path,
int maxDepth,
WatchEvent.Kind<?>... events)
创建并初始化监听
|
static WatchMonitor |
WatchMonitor.create(Path path,
int maxDepth,
WatchEvent.Kind<?>... events)
创建并初始化监听
|
static WatchMonitor |
WatchUtil.create(Path path,
WatchEvent.Kind<?>... events)
创建并初始化监听
|
static WatchMonitor |
WatchMonitor.create(Path path,
WatchEvent.Kind<?>... events)
创建并初始化监听
|
static WatchMonitor |
WatchUtil.create(String path,
int maxDepth,
WatchEvent.Kind<?>... events)
创建并初始化监听
|
static WatchMonitor |
WatchMonitor.create(String path,
int maxDepth,
WatchEvent.Kind<?>... events)
创建并初始化监听
|
static WatchMonitor |
WatchUtil.create(String path,
WatchEvent.Kind<?>... events)
创建并初始化监听
|
static WatchMonitor |
WatchMonitor.create(String path,
WatchEvent.Kind<?>... events)
创建并初始化监听
|
static WatchMonitor |
WatchUtil.create(URI uri,
int maxDepth,
WatchEvent.Kind<?>... events)
创建并初始化监听
|
static WatchMonitor |
WatchMonitor.create(URI uri,
int maxDepth,
WatchEvent.Kind<?>... events)
创建并初始化监听
|
static WatchMonitor |
WatchUtil.create(URI uri,
WatchEvent.Kind<?>... events)
创建并初始化监听
|
static WatchMonitor |
WatchMonitor.create(URI uri,
WatchEvent.Kind<?>... events)
创建并初始化监听
|
static WatchMonitor |
WatchUtil.create(URL url,
int maxDepth,
WatchEvent.Kind<?>... events)
创建并初始化监听
|
static WatchMonitor |
WatchMonitor.create(URL url,
int maxDepth,
WatchEvent.Kind<?>... events)
创建并初始化监听
|
static WatchMonitor |
WatchUtil.create(URL url,
WatchEvent.Kind<?>... events)
创建并初始化监听
|
static WatchMonitor |
WatchMonitor.create(URL url,
WatchEvent.Kind<?>... events)
创建并初始化监听
|
static WatchMonitor |
WatchUtil.createAll(File file,
int maxDepth,
Watcher watcher)
创建并初始化监听,监听所有事件
|
static WatchMonitor |
WatchUtil.createAll(File file,
Watcher watcher)
创建并初始化监听,监听所有事件
|
static WatchMonitor |
WatchMonitor.createAll(File file,
Watcher watcher)
创建并初始化监听,监听所有事件
|
static WatchMonitor |
WatchUtil.createAll(Path path,
int maxDepth,
Watcher watcher)
创建并初始化监听,监听所有事件
|
static WatchMonitor |
WatchUtil.createAll(Path path,
Watcher watcher)
创建并初始化监听,监听所有事件
|
static WatchMonitor |
WatchMonitor.createAll(Path path,
Watcher watcher)
创建并初始化监听,监听所有事件
|
static WatchMonitor |
WatchUtil.createAll(String path,
int maxDepth,
Watcher watcher)
创建并初始化监听,监听所有事件
|
static WatchMonitor |
WatchUtil.createAll(String path,
Watcher watcher)
创建并初始化监听,监听所有事件
|
static WatchMonitor |
WatchMonitor.createAll(String path,
Watcher watcher)
创建并初始化监听,监听所有事件
|
static WatchMonitor |
WatchUtil.createAll(URI uri,
int maxDepth,
Watcher watcher)
创建并初始化监听,监听所有事件
|
static WatchMonitor |
WatchUtil.createAll(URI uri,
Watcher watcher)
创建并初始化监听,监听所有事件
|
static WatchMonitor |
WatchMonitor.createAll(URI uri,
Watcher watcher)
创建并初始化监听,监听所有事件
|
static WatchMonitor |
WatchUtil.createAll(URL url,
int maxDepth,
Watcher watcher)
创建并初始化监听,监听所有事件
|
static WatchMonitor |
WatchUtil.createAll(URL url,
Watcher watcher)
创建并初始化监听,监听所有事件
|
static WatchMonitor |
WatchMonitor.createAll(URL url,
Watcher watcher)
创建并初始化监听,监听所有事件
|
static WatchMonitor |
WatchUtil.createModify(File file,
int maxDepth,
Watcher watcher)
创建并初始化监听,监听修改事件
|
static WatchMonitor |
WatchUtil.createModify(File file,
Watcher watcher)
创建并初始化监听,监听修改事件
|
static WatchMonitor |
WatchUtil.createModify(Path path,
int maxDepth,
Watcher watcher)
创建并初始化监听,监听修改事件
|
static WatchMonitor |
WatchUtil.createModify(Path path,
Watcher watcher)
创建并初始化监听,监听修改事件
|
static WatchMonitor |
WatchUtil.createModify(String path,
int maxDepth,
Watcher watcher)
创建并初始化监听,监听修改事件
|
static WatchMonitor |
WatchUtil.createModify(String path,
Watcher watcher)
创建并初始化监听,监听修改事件
|
static WatchMonitor |
WatchUtil.createModify(URI uri,
int maxDepth,
Watcher watcher)
创建并初始化监听,监听修改事件
|
static WatchMonitor |
WatchUtil.createModify(URI uri,
Watcher watcher)
创建并初始化监听,监听修改事件
|
static WatchMonitor |
WatchUtil.createModify(URL url,
int maxDepth,
Watcher watcher)
创建并初始化监听,监听修改事件
|
static WatchMonitor |
WatchUtil.createModify(URL url,
Watcher watcher)
创建并初始化监听,监听修改事件
|
WatchMonitor |
WatchMonitor.setMaxDepth(int maxDepth)
当监听目录时,监听目录的最大深度
当设置值为1(或小于1)时,表示不递归监听子目录 例如设置: maxDepth <= 1 表示只监听当前目录 maxDepth = 2 表示监听当前目录以及下层目录 maxDepth = 3 表示监听当前目录以及下层 |
WatchMonitor |
WatchMonitor.setWatcher(Watcher watcher)
设置监听
多个监听请使用 WatcherChain |
Copyright © 2024. All rights reserved.