public abstract class AbstractFilesystemAlterationListener extends Object implements FilesystemAlterationListener
限定符和类型 | 字段和说明 |
---|---|
protected FilesystemAlterationObserver |
observer |
构造器和说明 |
---|
AbstractFilesystemAlterationListener() |
限定符和类型 | 方法和说明 |
---|---|
Collection<File> |
getChangedDirectories() |
Collection<File> |
getChangedFiles() |
Collection<File> |
getCreatedDirectories() |
Collection<File> |
getCreatedFiles() |
Collection<File> |
getDeletedDirectories() |
Collection<File> |
getDeletedFiles() |
void |
onDirectoryChange(File pDir) |
void |
onDirectoryCreate(File pDir) |
void |
onDirectoryDelete(File pDir) |
void |
onFileChange(File pFile) |
void |
onFileCreate(File pFile) |
void |
onFileDelete(File pFile) |
void |
onStart(FilesystemAlterationObserver pObserver) |
void |
onStop(FilesystemAlterationObserver pObserver) |
protected void |
signals() |
void |
waitForCheck()
wait for the next filesystem check to happen
|
void |
waitForEvent() |
void |
waitForFirstCheck()
we don't reset the signal so if there was a check it is
already true and exit immediatly otherwise it will behave just
like waitForCheck()
|
protected FilesystemAlterationObserver observer
public void onDirectoryCreate(File pDir)
public void onDirectoryChange(File pDir)
public void onDirectoryDelete(File pDir)
public void onFileCreate(File pFile)
onFileCreate
在接口中 FilesystemAlterationListener
public void onFileChange(File pFile)
onFileChange
在接口中 FilesystemAlterationListener
public void onFileDelete(File pFile)
onFileDelete
在接口中 FilesystemAlterationListener
public Collection<File> getChangedDirectories()
public Collection<File> getChangedFiles()
public Collection<File> getCreatedDirectories()
public Collection<File> getCreatedFiles()
public Collection<File> getDeletedDirectories()
public Collection<File> getDeletedFiles()
protected void signals()
public void onStart(FilesystemAlterationObserver pObserver)
onStart
在接口中 FilesystemAlterationListener
public void onStop(FilesystemAlterationObserver pObserver)
onStop
在接口中 FilesystemAlterationListener
public void waitForFirstCheck() throws Exception
Exception
- in case of a timeout