Package htsjdk.samtools.util.nio
Class DeleteOnExitPathHook
- java.lang.Object
-
- htsjdk.samtools.util.nio.DeleteOnExitPathHook
-
public class DeleteOnExitPathHook extends Object
Class to hold a set ofPathto be delete on the JVM exit through a shutdown hook.This class is a modification of
DeleteOnExitHookto handlePathinstead ofFile.
-
-
Method Detail
-
add
public static void add(Path path)
Adds aPathfor deletion on JVM exit.- Parameters:
path- path to be deleted.- Throws:
IllegalStateException- if the shutdown hook is in progress.
-
-