File.length
Class Overview | Class Members |
This Package |
All Packages
public long length()
Returns
the length, in bytes, of the file specified by this object,
or 0L if the specified file does not exist.
Description
Returns the length of the file represented by this
File object.
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