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.childrenMy children.(package private) static final FileEntry[]FileEntry.EMPTY_FILE_ENTRY_ARRAYprivate final FileEntryFileEntry.parentThe parent.private final FileEntryFileAlterationObserver.rootEntryThe root directory to observe.Methods in org.apache.commons.io.monitor that return FileEntryModifier and TypeMethodDescriptionprivate FileEntryFileAlterationObserver.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 voidFileAlterationObserver.checkAndFire(FileEntry parentEntry, FileEntry[] previousEntries, File[] currentEntries) Compares two file lists for files which have been created, modified or deleted.private FileEntryFileAlterationObserver.createFileEntry(FileEntry parent, File file) Creates a new file entry for the specified file.private voidFileAlterationObserver.fireOnChange(FileEntry entry, File file) Fires directory/file change events to the registered listeners.private voidFileAlterationObserver.fireOnCreate(FileEntry entry) Fires directory/file created events to the registered listeners.private voidFileAlterationObserver.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.voidFileEntry.setChildren(FileEntry... children) Sets the directory's files.Constructors in org.apache.commons.io.monitor with parameters of type FileEntryModifierConstructorDescriptionprivateFileAlterationObserver(FileEntry rootEntry, FileFilter fileFilter, Comparator<File> comparator) Constructs an observer for the specified directory, file filter and file comparator.protectedFileAlterationObserver(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.