|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RemoteFileSystem
Field Summary | |
---|---|
static java.lang.String |
FTP_PROTOCOL
|
static java.lang.String |
FTPS_PROTOCOL
|
static java.lang.String |
PARMS_ASCII
|
static java.lang.String |
PARMS_CERTIFICATE
|
static java.lang.String |
PARMS_CERTIFICATE_NAME
|
static java.lang.String |
PARMS_FTP_SERVER
|
static java.lang.String |
PARMS_LOCAL_DIR
|
static java.lang.String |
PARMS_PASSIVE
|
static java.lang.String |
PARMS_PASSWD
|
static java.lang.String |
PARMS_PORT
|
static java.lang.String |
PARMS_PROTOCOL
|
static java.lang.String |
PARMS_REMOTE_DIR
|
static java.lang.String |
PARMS_USER
|
static java.lang.String |
SFTP_PROTOCOL
|
Method Summary | |
---|---|
void |
deleteRemoteFile(java.lang.String p_sFile)
Deletes specified file in remote directory |
void |
downloadFile(java.lang.String p_sFile,
java.lang.String p_sFinalName)
Downloads specified file from remote directory (remoteDirURI) to local directory (localDirURI) |
java.lang.String[] |
getFileListFromRemoteDir(java.lang.String p_sSuffix)
Gets the list of files in the remote directory that end with arg0 |
java.lang.String |
getRemoteDir()
|
void |
quit()
Terminates ftp session and frees resources Well behaved programs should make sure to call this method |
void |
remoteDelete(java.io.File p_oFile)
|
void |
remoteRename(java.io.File p_oFrom,
java.io.File p_oTo)
|
void |
renameInRemoteDir(java.lang.String p_sFrom,
java.lang.String p_sTo)
Renames specified file in remote directory to specified new name |
void |
setRemoteDir(java.lang.String p_sDir)
Change remote directory |
void |
uploadFile(java.io.File p_oFile,
java.lang.String p_sRemoteName)
Uploads specified file from local directory (localDirURI) to remote directory (remoteDirURI) |
Field Detail |
---|
static final java.lang.String FTP_PROTOCOL
static final java.lang.String SFTP_PROTOCOL
static final java.lang.String FTPS_PROTOCOL
static final java.lang.String PARMS_PROTOCOL
static final java.lang.String PARMS_FTP_SERVER
static final java.lang.String PARMS_USER
static final java.lang.String PARMS_PASSWD
static final java.lang.String PARMS_PORT
static final java.lang.String PARMS_REMOTE_DIR
static final java.lang.String PARMS_LOCAL_DIR
static final java.lang.String PARMS_ASCII
static final java.lang.String PARMS_PASSIVE
static final java.lang.String PARMS_CERTIFICATE
static final java.lang.String PARMS_CERTIFICATE_NAME
Method Detail |
---|
java.lang.String getRemoteDir()
void quit()
void deleteRemoteFile(java.lang.String p_sFile) throws RemoteFileSystemException
p_sFile
- String : filename to delete. Method will attempt to delete
file with rightmost node of argument within remote directory
specified in 'remoteDirURI'
RemoteFileSystemException
- :
if ftp connection cannot be established, or file cannot be
deleted in remote directoryvoid remoteDelete(java.io.File p_oFile) throws RemoteFileSystemException
RemoteFileSystemException
java.lang.String[] getFileListFromRemoteDir(java.lang.String p_sSuffix) throws java.io.IOException, RemoteFileSystemException
p_sSuffix
- String : retrieve only files that end with that suffix - all
files if null
RemoteFileSystemException
- :
if ftp connection cannot be established, or problems
encountered
java.io.IOException
void setRemoteDir(java.lang.String p_sDir) throws RemoteFileSystemException
p_sDir
- String : directory to set
RemoteFileSystemException
- :
if ftp connection cannot be established, or problems
encounteredvoid renameInRemoteDir(java.lang.String p_sFrom, java.lang.String p_sTo) throws RemoteFileSystemException
p_sFrom
- String : filename to renamep_sTo
- String : new filename
RemoteFileSystemException
- :
if ftp connection cannot be established, or file cannot be
renamed to new name in remote directory
void remoteRename(java.io.File p_oFrom, java.io.File p_oTo) throws java.io.IOException, RemoteFileSystemException
p_oFrom
- p_oTo
-
java.io.IOException
- if file not found.
RemoteFileSystemException
void uploadFile(java.io.File p_oFile, java.lang.String p_sRemoteName) throws RemoteFileSystemException
p_oFile
- String : filename to upload
RemoteFileSystemException
- :
if ftp connection cannot be established, or file cannot be
uploaded
void downloadFile(java.lang.String p_sFile, java.lang.String p_sFinalName) throws java.io.IOException, RemoteFileSystemException
p_sFile
- String : filename to download
RemoteFileSystemException
- :
if ftp connection cannot be established, or file cannot be
downloaded
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |