public class FileWatcher extends AbstractResourceWatcher<FileChangesListener>
| コンストラクタと説明 |
|---|
FileWatcher(Path file)
Creates new file watcher on the given directory
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
clearState()
Clears any state with the FileWatcher, making all files show up as new
|
protected void |
doCheckAndNotify()
Will be called periodically
Implementing watcher should check resource and notify all
AbstractResourceWatcher.listeners(). |
protected void |
doInit()
Will be called once on initialization
|
addListener, checkAndNotify, init, listeners, removepublic FileWatcher(Path file)
public void clearState()
protected void doInit()
throws IOException
AbstractResourceWatcherdoInit クラス内 AbstractResourceWatcher<FileChangesListener>IOExceptionprotected void doCheckAndNotify()
throws IOException
AbstractResourceWatcher
Implementing watcher should check resource and notify all AbstractResourceWatcher.listeners().
Copyright © 2009–2016. All rights reserved.