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 ofPath
to be delete on the JVM exit through a shutdown hook.This class is a modification of
DeleteOnExitHook
to handlePath
instead ofFile
.
-
-
Method Detail
-
add
public static void add(Path path)
Adds aPath
for deletion on JVM exit.- Parameters:
path
- path to be deleted.- Throws:
IllegalStateException
- if the shutdown hook is in progress.
-
-