Class Deleter.RecursiveDeleter

    • Constructor Detail

      • RecursiveDeleter

        public RecursiveDeleter()
        Creates a new recursive deleter.
    • Method Detail

      • handleDirectoryEnd

        protected void handleDirectoryEnd​(File directory,
                                          int depth,
                                          Collection<String> results)
                                   throws IOException
        Deletes the given directory.
        Overrides:
        handleDirectoryEnd in class org.apache.commons.io.DirectoryWalker<String>
        Throws:
        IOException
        See Also:
        DirectoryWalker#handleDirectoryEnd(File,int,Collection)
      • handleFile

        protected void handleFile​(File file,
                                  int depth,
                                  Collection<String> results)
                           throws IOException
        Deletes the given file.
        Overrides:
        handleFile in class org.apache.commons.io.DirectoryWalker<String>
        Throws:
        IOException
        See Also:
        DirectoryWalker#handleFile(File,int,Collection)
      • applyUnwrap

        public void applyUnwrap​(File file)
                         throws I18NException
        Deletes the given file.
        Parameters:
        file - The file.
        Throws:
        I18NException - Thrown if an I/O error occurs.