public class DeleteOnExitPathHook extends 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
.
public static void add(Path path)
Path
for deletion on JVM exit.path
- path to be deleted.IllegalStateException
- if the shutdown hook is in progress.