软件包 | 描述 |
---|---|
java.nio.file |
定义的接口和类的java虚拟机访问文件,文件属性,文件系统。
|
Modifier and Type | Method and Description |
---|---|
WatchKey |
WatchService.poll()
检索和删除下一个关注的关键,如果不存在或
null 。
|
WatchKey |
WatchService.poll(long timeout, TimeUnit unit)
检索和删除下一个表键,如果需要的话,等待指定的等待时间,如果没有仍然存在。
|
WatchKey |
Watchable.register(WatchService watcher, WatchEvent.Kind<?>... events)
用监视服务注册一个对象。
|
WatchKey |
Path.register(WatchService watcher, WatchEvent.Kind<?>... events)
通过该路径的一个表服务注册位于该路径中的文件。
|
WatchKey |
Watchable.register(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers)
用监视服务注册一个对象。
|
WatchKey |
Path.register(WatchService watcher, WatchEvent.Kind<?>[] events, WatchEvent.Modifier... modifiers)
通过该路径的一个表服务注册位于该路径中的文件。
|
WatchKey |
WatchService.take()
检索和删除下一个表键,等待如果没有仍然存在。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.