Uses of Class
org.apache.commons.io.monitor.FileEntry
Packages that use FileEntry
Package
Description
Provides a component for monitoring file system events (directory and file create, update and delete events).
-
Uses of FileEntry in org.apache.commons.io.monitor
Fields in org.apache.commons.io.monitor declared as FileEntryModifier and TypeFieldDescriptionprivate FileEntry[]
FileEntry.children
My children.(package private) static final FileEntry[]
FileEntry.EMPTY_FILE_ENTRY_ARRAY
private final FileEntry
FileEntry.parent
The parent.private final FileEntry
FileAlterationObserver.rootEntry
The root directory to observe.Methods in org.apache.commons.io.monitor that return FileEntryModifier and TypeMethodDescriptionprivate FileEntry
FileAlterationObserver.createFileEntry
(FileEntry parent, File file) Creates a new file entry for the specified file.FileEntry.getChildren()
Gets the directory's files.FileEntry.getParent()
Gets the parent entry.private FileEntry[]
FileAlterationObserver.listFileEntries
(File file, FileEntry entry) Lists the file entries infile
.FileEntry.newChildInstance
(File file) Constructs a new child instance.Methods in org.apache.commons.io.monitor with parameters of type FileEntryModifier and TypeMethodDescriptionprivate void
FileAlterationObserver.checkAndFire
(FileEntry parentEntry, FileEntry[] previousEntries, File[] currentEntries) Compares two file lists for files which have been created, modified or deleted.private FileEntry
FileAlterationObserver.createFileEntry
(FileEntry parent, File file) Creates a new file entry for the specified file.private void
FileAlterationObserver.fireOnChange
(FileEntry entry, File file) Fires directory/file change events to the registered listeners.private void
FileAlterationObserver.fireOnCreate
(FileEntry entry) Fires directory/file created events to the registered listeners.private void
FileAlterationObserver.fireOnDelete
(FileEntry entry) Fires directory/file delete events to the registered listeners.private FileEntry[]
FileAlterationObserver.listFileEntries
(File file, FileEntry entry) Lists the file entries infile
.void
FileEntry.setChildren
(FileEntry... children) Sets the directory's files.Constructors in org.apache.commons.io.monitor with parameters of type FileEntryModifierConstructorDescriptionprivate
FileAlterationObserver
(FileEntry rootEntry, FileFilter fileFilter, Comparator<File> comparator) Constructs an observer for the specified directory, file filter and file comparator.protected
FileAlterationObserver
(FileEntry rootEntry, FileFilter fileFilter, IOCase ioCase) Constructs an observer for the specified directory, file filter and file comparator.Constructs a new monitor for a specifiedFile
.