|
Back to the RMI Plug-in for Eclipse
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface IRemoteFile
This interface lists the methods that can be invoked on a remote file.
Majority of methods have signatures similar to the methods of File
class to allow the implementation to extend File.
Methods that can modify the remote file system are not part of the
interface for safety reasons. Feel free to add them.
Note: This is a remote interface. Invoking methods of this
interface on a remote object will result in remote calls which
can be a performance hit (for example when traversing the file
system).
| Method Summary | |
|---|---|
boolean |
canRead()
|
boolean |
canWrite()
|
boolean |
exists()
|
String |
getAbsolutePath()
|
String |
getCanonicalPath()
|
IRemoteFile |
getChild(String name)
Return a file that is a child of the current directory. |
IRemoteInputStream |
getInputStream()
Return a remote input stream that can be used to read from the file. |
String |
getName()
|
String |
getParent()
|
String |
getPath()
|
IRemoteFile |
getRemoteAbsoluteFile()
|
IRemoteFile |
getRemoteParentFile()
|
boolean |
isAbsolute()
|
boolean |
isDirectory()
|
boolean |
isFile()
|
boolean |
isHidden()
|
long |
lastModified()
|
long |
length()
|
String[] |
list()
Return the names of the files in this directory. |
IRemoteFile[] |
listByFilter(IRemoteFilenameFilter filter)
This method uses a remote filename filter which will result in callbacks to the client (the user of this interface) for every filename (if the implementing object is exported). |
IRemoteFile[] |
listByRegex(String regex,
boolean dirsOnly)
Return the files in this directory that their names (only the last segment) match the regular expression supplied as the regex argument. |
IRemoteFile[] |
listRemoteDirectories()
This method returns the subdirectories of the current directory. |
IRemoteFile[] |
listRemoteFiles()
Return the files in this directory as IRemoteFiles. |
| Method Detail |
|---|
boolean canRead()
throws RemoteException
RemoteException
boolean canWrite()
throws RemoteException
RemoteException
boolean exists()
throws RemoteException
RemoteException
String getAbsolutePath()
throws RemoteException
RemoteException
String getCanonicalPath()
throws RemoteException
RemoteException
IRemoteFile getChild(String name)
throws RemoteException
File.File(File, String)), since
interfaces can't declare constructors.
name - the child's name.
RemoteException
IRemoteInputStream getInputStream()
throws RemoteException
IRemoteInputStream
with a conventional InputStream.
RemoteExceptionIRemoteInputStream
String getName()
throws RemoteException
RemoteException
String getParent()
throws RemoteException
RemoteException
String getPath()
throws RemoteException
RemoteException
IRemoteFile getRemoteAbsoluteFile()
throws RemoteException
RemoteException
IRemoteFile getRemoteParentFile()
throws RemoteException
RemoteException
boolean isAbsolute()
throws RemoteException
RemoteException
boolean isDirectory()
throws RemoteException
RemoteException
boolean isFile()
throws RemoteException
RemoteException
boolean isHidden()
throws RemoteException
RemoteException
long lastModified()
throws RemoteException
RemoteException
long length()
throws RemoteException
RemoteException
String[] list()
throws RemoteException
RemoteException
IRemoteFile[] listByFilter(IRemoteFilenameFilter filter)
throws RemoteException
filter - the filename filter.
RemoteException
IRemoteFile[] listByRegex(String regex,
boolean dirsOnly)
throws RemoteException
regex argument.
regex - the regular expression filter for the childs filename.dirsOnly - If true, only subdirectories will be considered.
RemoteExceptionString.matches(String);
IRemoteFile[] listRemoteDirectories()
throws RemoteException
listByFilter(IRemoteFilenameFilter).
RemoteException
IRemoteFile[] listRemoteFiles()
throws RemoteException
IRemoteFiles.
RemoteException
|
Back to the RMI Plug-in for Eclipse
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
© 2002-12 Genady Beryozkin, rmi-info@genady.net. Read our Privacy policy. Hosted on RimuHosting. Visit Javalobby.