Uses of Class
org.apache.commons.io.FileDeleteStrategy
-
Packages that use FileDeleteStrategy Package Description org.apache.commons.io Provides classes for working with streams, readers, writers and files. -
-
Uses of FileDeleteStrategy in org.apache.commons.io
Subclasses of FileDeleteStrategy in org.apache.commons.io Modifier and Type Class Description (package private) static class
FileDeleteStrategy.ForceFileDeleteStrategy
Force file deletion strategy.Fields in org.apache.commons.io declared as FileDeleteStrategy Modifier and Type Field Description private FileDeleteStrategy
FileCleaningTracker.Tracker. deleteStrategy
The strategy for deleting files.static FileDeleteStrategy
FileDeleteStrategy. FORCE
The singleton instance for forced file deletion, which always deletes, even if the file represents a non-empty directory.static FileDeleteStrategy
FileDeleteStrategy. NORMAL
The singleton instance for normal file deletion, which does not permit the deletion of directories that are not empty.Methods in org.apache.commons.io with parameters of type FileDeleteStrategy Modifier and Type Method Description private void
FileCleaningTracker. addTracker(java.lang.String path, java.lang.Object marker, FileDeleteStrategy deleteStrategy)
Adds a tracker to the list of trackers.static void
FileCleaner. track(java.io.File file, java.lang.Object marker, FileDeleteStrategy deleteStrategy)
Deprecated.static void
FileCleaner. track(java.lang.String path, java.lang.Object marker, FileDeleteStrategy deleteStrategy)
Deprecated.void
FileCleaningTracker. track(java.io.File file, java.lang.Object marker, FileDeleteStrategy deleteStrategy)
Tracks the specified file, using the provided marker, deleting the file when the marker instance is garbage collected.void
FileCleaningTracker. track(java.lang.String path, java.lang.Object marker, FileDeleteStrategy deleteStrategy)
Tracks the specified file, using the provided marker, deleting the file when the marker instance is garbage collected.Constructors in org.apache.commons.io with parameters of type FileDeleteStrategy Constructor Description Tracker(java.lang.String path, FileDeleteStrategy deleteStrategy, java.lang.Object marker, java.lang.ref.ReferenceQueue<? super java.lang.Object> queue)
Constructs an instance of this class from the supplied parameters.
-