All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object
|
+----java.io.File
|
+----jnfs.RemoteFile
File object on
the FileServer. Methods not overridden by
RemoteFile are implemented in terms of remote calls if
they rely on filesystem information or locally if they rely only on
parsing (such as pathname manipulations).
File exists.
RemoteFile.
File
object is a directory.
File
object is a "normal" file.
File object was last modified.
File object.
File object.
File object.
File object, including any necessary parent directories.
File object to
have the pathname given by the File argument.
RemoteFile to acl.
public Permission getReadPermission()
public Permission getWritePermission()
public Permission getExecutePermission()
public Permission getDeletePermission()
public Permission getAttributesPermission()
public Permission getListPermission()
public Acl getAccessControl()
RemoteFile. Permissions on a
particular file don't necessarily map 1-to-1 to who can access the
file or not because there may be security restrictions on the parent
directories of the file that override this file's settings.
null otherwise.
public boolean setAccessControl(Acl acl)
RemoteFile to acl.
true if the permissions were set;
false otherwise.
public boolean exists()
File exists.
true if the file specified by this object
exists; false otherwise.
checkRead method is called with the pathname
of the remote File to see if the application is
allowed read access to the file.
RemoteException
is thrown.
public boolean canWrite()
true if the application is allowed to write to
a file whose name is specified by this object;
false otherwise.
checkWrite method is called with the pathname
of the remote File to see if the application is
allowed write access to the file.
RemoteException
is thrown.
public boolean canRead()
true if the file specified by this object exists
and the application can read the file;
false otherwise.
checkRead method is called with the pathname
of the remote File to see if the application is
allowed read access to the file.
RemoteException
is thrown.
public boolean isFile()
File
object is a "normal" file.
A file is "normal" if it is not a directory and, in addition, satisfies other system-dependent criteria. Any non-directory file created by a Java application is guaranteed to be a normal file.
true if the file specified by this object
exists and is a "normal" file; false otherwise.
checkRead method is called with the pathname
of the remote File to see if the application is
allowed read access to the file.
RemoteException
is thrown.
public boolean isDirectory()
File
object is a directory.
true if the remote File exists and is a
directory; false otherwise.
checkRead method is called with the pathname
of the remote File to see if the application is
allowed read access to the file.
RemoteException
is thrown.
public long lastModified()
File object was last modified.
The return value is system dependent and should only be used to compare with other values returned by last modified. It should not be interpreted as an absolute time.
0L if the specified file does not exist.
checkRead method is called with the pathname
of the remote File to see if the application is
allowed read access to the file.
RemoteException
is thrown.
public long length()
File object.
0L if the specified file does not exist.
checkRead method is called with the pathname
of the remote File to see if the application is
allowed read access to the file.
RemoteException
is thrown.
public boolean mkdir()
File object.
true if the directory could be created;
false otherwise.
checkWrite method is called with the pathname
of the remote File to see if the application is
allowed write access to the file.
RemoteException
is thrown.
public boolean renameTo(File dest)
File object to
have the pathname given by the File argument.
true if the renaming succeeds;
false otherwise.
checkWrite method is called both with the
pathname of this file object and with the pathname of the
destination target object to see if the application is
allowed to write to both files.
RemoteException
is thrown.
public boolean mkdirs()
File object, including any necessary parent directories.
true if the directory (or directories) could be
created; false otherwise.
checkWrite method is called with the pathname
of each of the directories that is to be created, before
any of the directories are created.
RemoteException
is thrown.
public String[] list()
File object.
." and ".."
on Unix systems).
checkRead method is called with the pathname
of the remote File to see if the application is
allowed read access to the file.
RemoteException
is thrown.
public boolean delete()
true if the file is successfully deleted;
false otherwise.
checkDelete method is called with the
pathname of the remote File to see if the
application is allowed to delete the file.
RemoteException
is thrown.
protected void finalize() throws IOException
All Packages Class Hierarchy This Package Previous Next Index