public class DeleteOnExitPathHook
extends java.lang.Object
Path
to be delete on the JVM exit through a shutdown hook.
This class is a modification of DeleteOnExitHook
to handle Path
instead of File
.
Modifier and Type | Method and Description |
---|---|
static void |
add(java.nio.file.Path path)
Adds a
Path for deletion on JVM exit. |