22.24
java.io.File
THE PACKAGE JAVA.IO
The file system actually contains a file specified by the path of the
File
object.
The file so specified can be read.
22.24.18
public boolean canWrite() throws SecurityException
First, if there is a security manager, its
checkWrite
method ( 20.17.21) is called
with the path represented by this
File
object as its argument.
The result is
true
if and only if both of the following are true:
The file system actually contains a file specified by the path of the
File
object.
The file so specified can be written.
22.24.19
public boolean isFile() throws SecurityException
First, if there is a security manager, its
checkRead
method ( 20.17.19) is called
with the path represented by this
File
object as its argument.
The result is
true
if and only if both of the following are true:
The file system actually contains a file specified by the path of the
File
object.
The file so specified is a data file rather than a directory.
22.24.20
public boolean isDirectory() throws SecurityException
First, if there is a security manager, its
checkRead
method ( 20.17.19) is called
with the path represented by this
File
object as its argument.
The result is
true
if and only if both of the following are true:
The file system actually contains a file specified by the path of the
File
object.
The file so specified is a directory rather than a data file.
756
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Inexpensive Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Jsp Hosting
Cheap Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved