THE PACKAGE JAVA.IO
java.io.File
22.24
22.24.11
public String getName()
If the path string contains the
separatorChar
character ( 22.24.2), this method
returns the substring of the path that follows the last occurrence of the separator
character; otherwise, the entire path string is returned.
22.24.12
public String getPath()
The result is a
String
equal to the path represented by this
File
object.
22.24.13
public String getAbsolutePath()
The result is a
String
equal to the result of converting to absolute form the path
represented by this
File
object.
22.24.14
public String getParent()
If the path has a parent directory, a
String
representing the path of that parent
directory is returned; otherwise,
null
is returned.
22.24.15
public boolean isAbsolute()
The result is
true
if and only if the path represented by the File object is in abso
lute form, indicating a complete name that starts from the root of the directory
hierarchy, rather than a name relative to some implied directory.
22.24.16
public boolean exists() 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 the file system actually contains a file that is
specified by the path of the
File
object.
22.24.17
public boolean canRead() 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:
755
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