Package htsjdk.samtools.util.nio
Class DeleteOnExitPathHook
java.lang.Object
htsjdk.samtools.util.nio.DeleteOnExitPathHook
Class to hold a set of
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
.
-
Method Summary
-
Method Details
-
add
Adds aPath
for deletion on JVM exit.- Parameters:
path
- path to be deleted.- Throws:
IllegalStateException
- if the shutdown hook is in progress.
-