|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RemoteFileService
RemoteFileService is an interface that is used to help you access files on the remote machine.
| Method Summary | |
|---|---|
void |
copyFromRemote(java.lang.String remoteFilename,
java.lang.String localFilename)
Copies the remote file denoted by string remoteFilename to the local machine, including subfolders. |
void |
copyFromRemote(java.lang.String remoteFilename,
java.lang.String localFilename,
boolean withSubFolder)
Copies the remote file denoted by string remoteFilename to the local machine. |
void |
copyToRemote(java.lang.String localFilename,
java.lang.String remoteFilename)
Copies the local file denoted by string localFilename to the remote machine, including subfolders. |
void |
copyToRemote(java.lang.String localFilename,
java.lang.String remoteFilename,
boolean withSubFolder)
Copies the local file denoted by string localFilename to the remote machine. |
boolean |
delete(java.lang.String remoteFilename)
Deletes the file or directory denoted by this string remoteFilename. |
boolean |
exists(java.lang.String remoteFilename)
Tests whether a specificed file or folder denoted by String remoteFilename exists on the remote machine. |
java.lang.String |
getName(java.lang.String remoteFilename)
Returns the name of the file or directory denoted by this pathname. |
java.lang.String |
getParent(java.lang.String remoteFilename)
Returns the pathname string of this pathname's parent, or null if this pathname does not name a parent directory. |
java.lang.String |
getRemoteFileSeparator()
Return the system-dependent path-separator character, represented as a string for convenience. |
java.lang.String |
getRemoteHomePath()
Get the home path of the remote server. |
boolean |
isDirectory(java.lang.String remoteFilename)
Tests whether the file denoted by this abstract pathname is a directory. |
long |
lastModified(java.lang.String remoteFilename)
Returns the time that the file denoted by this abstract pathname was last modified. |
long |
length(java.lang.String remoteFilename)
Returns the length of the file denoted by this abstract pathname. |
java.lang.String[] |
list(java.lang.String remoteDirName,
java.lang.String filter)
Returns an array of strings naming the files and directories in the directory denoted by this string remoteDirName. |
java.io.InputStream |
readFile(java.lang.String remoteFilename)
Creates an InputStream by opening a connection to a remote file denoted by remoteFilename. |
void |
writeFile(java.io.InputStream in,
java.lang.String remoteFilename)
Writes to a specified remote file with this InputStream. |
| Method Detail |
|---|
java.io.InputStream readFile(java.lang.String remoteFilename)
throws java.io.IOException
remoteFilename - the remote file name
java.io.IOException
void writeFile(java.io.InputStream in,
java.lang.String remoteFilename)
throws java.io.IOException
InputStream - the input file streamremoteFilename - the remote file name
java.io.IOException
void copyToRemote(java.lang.String localFilename,
java.lang.String remoteFilename)
throws java.io.IOException
localFilename - the absolute local file name. You can use wildcards in this parameter,remoteFilename - the absolute remote file name
java.io.IOException
void copyToRemote(java.lang.String localFilename,
java.lang.String remoteFilename,
boolean withSubFolder)
throws java.io.IOException
localFilename - the absolute local file name. You can use wildcards in this parameter,remoteFilename - the absolute remote file namewithSubFolder - whether to include subfolders when copying.
java.io.IOException
void copyFromRemote(java.lang.String remoteFilename,
java.lang.String localFilename)
throws java.io.IOException
remoteFilename - the absolute remote file name. You can use wildcards in this parameter,localFilename - the absolute local file name.
java.io.IOException
void copyFromRemote(java.lang.String remoteFilename,
java.lang.String localFilename,
boolean withSubFolder)
throws java.io.IOException
remoteFilename - the absolute remote file name. You can use wildcards in this parameter,localFilename - the absolute local file name.withSubFolder - whether to include subfolders when copying.
java.io.IOException
boolean delete(java.lang.String remoteFilename)
throws java.rmi.RemoteException
remoteFilename -
java.rmi.RemoteException
java.lang.String getRemoteHomePath()
throws java.rmi.RemoteException
java.rmi.RemoteException
boolean exists(java.lang.String remoteFilename)
throws java.rmi.RemoteException
remoteFilename - the remote file name or remote folder name
java.rmi.RemoteException
java.lang.String[] list(java.lang.String remoteDirName,
java.lang.String filter)
throws java.io.IOException
remoteDirName - the remote directory namefilter - the filter, use '*' for all chars,'?' for single char. It also supports multiple wildcard like "*.com;??.exe".
java.io.IOException
boolean isDirectory(java.lang.String remoteFilename)
throws java.rmi.RemoteException
java.rmi.RemoteException
long lastModified(java.lang.String remoteFilename)
throws java.rmi.RemoteException
java.rmi.RemoteException
long length(java.lang.String remoteFilename)
throws java.rmi.RemoteException
java.rmi.RemoteException
java.lang.String getName(java.lang.String remoteFilename)
throws java.rmi.RemoteException
java.rmi.RemoteException
java.lang.String getParent(java.lang.String remoteFilename)
throws java.rmi.RemoteException
java.rmi.RemoteException
java.lang.String getRemoteFileSeparator()
throws java.rmi.RemoteException
java.rmi.RemoteException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||