Package | Description |
---|---|
org.apache.commons.io.monitor |
Provides a component for monitoring file system events (directory and file create, update and delete events).
|
Modifier and Type | Field and Description |
---|---|
private FileEntry[] |
FileEntry.children |
(package private) static FileEntry[] |
FileEntry.EMPTY_FILE_ENTRY_ARRAY |
private FileEntry |
FileEntry.parent |
private FileEntry |
FileAlterationObserver.rootEntry |
Modifier and Type | Method and Description |
---|---|
private FileEntry |
FileAlterationObserver.createFileEntry(FileEntry parent,
java.io.File file)
Creates a new file entry for the specified file.
|
private FileEntry[] |
FileAlterationObserver.doListFiles(java.io.File file,
FileEntry entry)
Lists the files
|
FileEntry[] |
FileEntry.getChildren()
Gets the directory's files.
|
FileEntry |
FileEntry.getParent()
Gets the parent entry.
|
FileEntry |
FileEntry.newChildInstance(java.io.File file)
Constructs a new child instance.
|
Modifier and Type | Method and Description |
---|---|
private void |
FileAlterationObserver.checkAndNotify(FileEntry parent,
FileEntry[] previous,
java.io.File[] files)
Compares two file lists for files which have been created, modified or deleted.
|
private void |
FileAlterationObserver.checkAndNotify(FileEntry parent,
FileEntry[] previous,
java.io.File[] files)
Compares two file lists for files which have been created, modified or deleted.
|
private FileEntry |
FileAlterationObserver.createFileEntry(FileEntry parent,
java.io.File file)
Creates a new file entry for the specified file.
|
private void |
FileAlterationObserver.doCreate(FileEntry entry)
Fires directory/file created events to the registered listeners.
|
private void |
FileAlterationObserver.doDelete(FileEntry entry)
Fires directory/file delete events to the registered listeners.
|
private FileEntry[] |
FileAlterationObserver.doListFiles(java.io.File file,
FileEntry entry)
Lists the files
|
private void |
FileAlterationObserver.doMatch(FileEntry entry,
java.io.File file)
Fires directory/file change events to the registered listeners.
|
void |
FileEntry.setChildren(FileEntry... children)
Sets the directory's files.
|
Constructor and Description |
---|
FileAlterationObserver(FileEntry rootEntry,
java.io.FileFilter fileFilter,
IOCase ioCase)
Constructs an observer for the specified directory, file filter and file comparator.
|
FileEntry(FileEntry parent,
java.io.File file)
Constructs a new monitor for a specified
File . |