This method of the StandardSecurityManager Class determines whether the specified file can be deleted by the classes active within the current execution context.
public void checkDelete(String file);
file | The system-dependent filename. |
The check succeeds only if all the classes found on the call stack possess FileIOPermissions, and if those permissions allow delete access to the specified file. This method overrides the java.lang.SecurityManager.checkDelete(String) method.
SecurityException if the security check fails.