Uses of Class
org.apache.commons.io.monitor.FileEntry
-
Packages that use FileEntry Package Description org.apache.commons.io.monitor 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 FileEntry Modifier and Type Field Description private FileEntry[]FileEntry. childrenMy children.(package private) static FileEntry[]FileEntry. EMPTY_FILE_ENTRY_ARRAYprivate FileEntryFileEntry. parentThe parent.private FileEntryFileAlterationObserver.Builder. rootEntryprivate FileEntryFileAlterationObserver. rootEntryThe root directory to observe.Methods in org.apache.commons.io.monitor that return FileEntry Modifier and Type Method Description private FileEntryFileAlterationObserver. createFileEntry(FileEntry parent, java.io.File file)Creates a new file entry for the specified file.FileEntry[]FileEntry. getChildren()Gets the directory's files.FileEntryFileEntry. getParent()Gets the parent entry.private FileEntry[]FileAlterationObserver. listFileEntries(java.io.File file, FileEntry entry)Lists the file entries infile.FileEntryFileEntry. newChildInstance(java.io.File file)Constructs a new child instance.Methods in org.apache.commons.io.monitor with parameters of type FileEntry Modifier and Type Method Description private voidFileAlterationObserver. checkAndFire(FileEntry parentEntry, FileEntry[] previousEntries, java.io.File[] currentEntries)Compares two file lists for files which have been created, modified or deleted.private FileEntryFileAlterationObserver. createFileEntry(FileEntry parent, java.io.File file)Creates a new file entry for the specified file.private voidFileAlterationObserver. fireOnChange(FileEntry entry, java.io.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(java.io.File file, FileEntry entry)Lists the file entries infile.voidFileEntry. setChildren(FileEntry... children)Sets the directory's files.FileAlterationObserver.BuilderFileAlterationObserver.Builder. setRootEntry(FileEntry rootEntry)Sets the root directory to observe.Constructors in org.apache.commons.io.monitor with parameters of type FileEntry Constructor Description FileAlterationObserver(FileEntry rootEntry, java.io.FileFilter fileFilter, java.util.Comparator<java.io.File> comparator)Constructs an observer for the specified directory, file filter and file comparator.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 specifiedFile.
-