Class FileDeleteStrategy.ForceFileDeleteStrategy

    • Constructor Detail

      • ForceFileDeleteStrategy

        ForceFileDeleteStrategy()
        Default Constructor
    • Method Detail

      • doDelete

        protected boolean doDelete​(java.io.File fileToDelete)
                            throws java.io.IOException
        Deletes the file object.

        This implementation uses FileUtils.forceDelete() if the file exists.

        Overrides:
        doDelete in class FileDeleteStrategy
        Parameters:
        fileToDelete - the file to delete, not null
        Returns:
        Always returns true
        Throws:
        java.lang.NullPointerException - if the file is null
        java.io.IOException - if an error occurs during file deletion