File.canWrite

File.canWrite

Class Overview | Class Members | This Package | All Packages

Syntax
public boolean canWrite()
Returns
true if the application is allowed to write to a file whose name is specified by this object; false otherwise.
Description
Tests if the application can write to this file.

Exceptions
SecurityException if a security manager exists, its checkWrite method is called with the pathname of this File to see if the application is allowed write access to the file.
See Also
getPath, checkWrite