Class DeleteOnExitPathHook

java.lang.Object
htsjdk.samtools.util.nio.DeleteOnExitPathHook

public class DeleteOnExitPathHook extends Object
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 Details

    • add

      public static void add(Path path)
      Adds a Path for deletion on JVM exit.
      Parameters:
      path - path to be deleted.
      Throws:
      IllegalStateException - if the shutdown hook is in progress.