File.isFile

File.isFile

Class Overview | Class Members | This Package | All Packages

Syntax
public boolean isFile()
Returns
true if the file specified by this object exists and is a "normal" file; false otherwise.
Description
Tests if the file represented by this File object is a "normal" file.

A file is "normal" if it is not a directory and, in addition, satisfies other system-dependent criteria. Any non-directory file created by a Java application is guaranteed to be a normal 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