Class FileDeleter

java.lang.Object
java.lang.Thread
gov.nih.mipav.model.file.FileDeleter
All Implemented Interfaces:
Runnable

public class FileDeleter extends Thread
Class to safely delete a file using a looped thread.
  • Field Details

    • filename

      private String filename
      DOCUMENT ME!
    • target

      private File target
      DOCUMENT ME!
  • Constructor Details

    • FileDeleter

      public FileDeleter(String filename)
      Construct the file deleter.
      Parameters:
      filename - the file to delete
  • Method Details

    • run

      public void run()
      Run method: if the file exists, try deleting it. if the delete fails, then sleep for 2 seconds and start again.
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread