Uses of Class
org.apache.commons.io.FileDeleteStrategy
Package
Description
Provides classes for working with streams, readers, writers and files.
-
Uses of FileDeleteStrategy in org.apache.commons.io
Modifier and TypeFieldDescriptionstatic final FileDeleteStrategy
FileDeleteStrategy.FORCE
The singleton instance for forced file deletion, which always deletes, even if the file represents a non-empty directory.static final FileDeleteStrategy
FileDeleteStrategy.NORMAL
The singleton instance for normal file deletion, which does not permit the deletion of directories that are not empty.Modifier and TypeMethodDescriptionstatic void
FileCleaner.track
(File file, Object marker, FileDeleteStrategy deleteStrategy) Deprecated.static void
FileCleaner.track
(String path, Object marker, FileDeleteStrategy deleteStrategy) Deprecated.void
FileCleaningTracker.track
(File file, 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
(String path, 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
(Path file, Object marker, FileDeleteStrategy deleteStrategy) Tracks the specified file, using the provided marker, deleting the file when the marker instance is garbage collected.
FileCleaningTracker.track(File, Object, FileDeleteStrategy)
.