org.apache.commons.io

Class FileDeleteStrategy.ForceFileDeleteStrategy

static class FileDeleteStrategy.ForceFileDeleteStrategy extends FileDeleteStrategy

Force file deletion strategy.
Constructor Summary
ForceFileDeleteStrategy()
Default Constructor
Method Summary
protected booleandoDelete(File fileToDelete)
Deletes the file object.

Constructor Detail

ForceFileDeleteStrategy

ForceFileDeleteStrategy()
Default Constructor

Method Detail

doDelete

protected boolean doDelete(File fileToDelete)
Deletes the file object.

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

Parameters: fileToDelete the file to delete, not null

Returns: Always returns true

Throws: NullPointerException if the file is null IOException if an error occurs during file deletion

Copyright (c) 2002-2011 Apache Software Foundation