|
RSE Release 3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IHostFile
Objects that conform to this interface are delivered by the file services to their clients. These objects are meant to represent objects that are files or file-like objects on a remote system. These would include files, folders, directories, archives and the like.
These objects are typically "handle" objects and can be created even though their corresponding
remote resources do not exist - in this case, the exists()
method will return
false
.
IFileService
Method Summary | |
---|---|
boolean |
canRead()
Determines if the file system object is "readable" on the remote file system. |
boolean |
canWrite()
Determines if the file system object is "writeable" on the remote file system. |
boolean |
exists()
Determines if the file system object exists on the remote file system. |
String |
getAbsolutePath()
Gets the fully qualified path to this object in the remote file system. |
long |
getModifiedDate()
Gets a timestamp representing the date and time of last modification to the file. |
String |
getName()
Gets the simple name of the file object on the remote system. |
String |
getParentPath()
Gets the absolute path name of the parent object of this object on the remote file system. |
long |
getSize()
Gets the size of the file system object on the remote file system in bytes if isFile() is true. |
boolean |
isArchive()
Determines if the file system object represents an archive on the remote file system. |
boolean |
isDirectory()
Determines if the file system object is a directory on the remote file system. |
boolean |
isFile()
Determines if the file system object is a file on the remote file system. |
boolean |
isHidden()
Determines if the file system object is hidden on the remote file system. |
boolean |
isRoot()
Determines if the file system object is a "root" directory on the remote file system. |
void |
renameTo(String newAbsolutePath)
Renames this abstract file handle. |
Method Detail |
---|
String getName()
String getParentPath()
null
if isRoot()
is true.String getAbsolutePath()
null
.boolean isHidden()
boolean isDirectory()
boolean isRoot()
boolean isFile()
isDirectory()
returns false.boolean canWrite()
boolean canRead()
boolean exists()
boolean isArchive()
long getSize()
isFile()
is true, 0L otherwise.long getModifiedDate()
void renameTo(String newAbsolutePath)
newAbsolutePath
- The new path on the remote file system that
this file will be renamed to.
|
RSE Release 3.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |