File.canRead
Class Overview | Class Members |
This Package |
All Packages
public boolean canRead()
Returns
true if the file specified by this object exists
and the application can read the file;
false otherwise.
Description
Tests if the application can read from the specified file.
Exceptions
SecurityException
if a security manager exists, its
checkRead method is called with the pathname
of this File to see if the application is
allowed read access to the file.
See Also
getPath, checkRead