File.isAbsolute

File.isAbsolute

Class Overview | Class Members | This Package | All Packages

Syntax
public native boolean isAbsolute()
Returns
true if the pathname indicated by the File object is an absolute pathname; false otherwise.
Description
Tests if the file represented by this File object is an absolute pathname. The definition of an absolute pathname is system dependent. For example, on UNIX, a pathname is absolute if its first character is the separator character. On Windows platforms, a pathname is absolute if its first character is an ASCII '\' or '/', or if it begins with a letter followed by a colon.

See Also
getPath, separator