Checks the existence, and optionally the accessibility, of a file.
This method checks the existence of a file and that this Java virtual
machine has appropriate privileges that would allow it access the file
according to all of access modes specified in the
||Checks that the file exists and that the Java virtual machine has permission to read the file.|
||Checks that the file exists and that the Java virtual machine has permission to write to the file,|
|| Checks that the file exists and that the Java virtual machine has
modes parameter is of length zero, then the existence
of the file is checked.
This method follows symbolic links if the file referenced by this object is a symbolic link. Depending on the implementation, this method may require to read file permissions, access control lists, or other file attributes in order to check the effective access to the file. To determine the effective access to a file may require access to several attributes and so in some implementations this method may not be atomic with respect to other file system operations.
|the path to the file to check|
|The access modes to check; may have zero elements|
| an implementation is required to support checking for
|if a file does not exist (optional specific exception)|
|the requested access would be denied or the access cannot be determined because the Java virtual machine has insufficient privileges or other reasons. (optional specific exception)|
|if an I/O error occurs|
| In the case of the default provider, and a security manager is
installed, the |