public class DirectoryMonitor extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
DirectoryMonitor.Listener
Listener interface to be provided by users of the directory monitor to
get notified of changes.
|
Constructor and Description |
---|
DirectoryMonitor(File aDirectory,
FileFilter aFilefilter,
DirectoryMonitor.Listener aListener)
Creates a new DirectoryMonitor object.
|
Modifier and Type | Method and Description |
---|---|
void |
poll()
Polls the directory for changes and notifies the listener of any changes.
|
public DirectoryMonitor(File aDirectory, FileFilter aFilefilter, DirectoryMonitor.Listener aListener)
Copyright © 2024. All rights reserved.