|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectbiz.wisesoft.util.ftp.FTPClient
| Constructor Summary | |
FTPClient()
Constructs an FTP client with default FTP port 21. |
|
| Method Summary | |
void |
addStatusListener(biz.wisesoft.util.ftp.StatusListener statuslistener)
|
void |
changeToParentDirectory()
Goes back to parent directory |
void |
changeWorkingDirectory(java.lang.String remotePath)
Changes the remote path |
boolean |
connect()
Connects the ftp server |
void |
createremoteDirectory(java.lang.String remotePath)
Creates a path of new remote directory |
void |
deleteRemoteFile(java.lang.String remotePath)
Deletes the remote file |
void |
disconnect()
Disconnects the ftp server |
void |
downloadRemoteFile(java.lang.String remotePath,
java.lang.String localPath)
Downloads a file from the ftp server to local |
java.lang.String |
getCurrentWorkingDirectory()
Returns the name of current working remote directory |
java.lang.String |
getFileList()
Returns a list of files in current working remote directory |
java.lang.String |
getHostName()
Returns the name of the ftp servet |
java.lang.String |
getPassword()
|
int |
getPort()
|
java.lang.String |
getUserName()
|
void |
removeRemoteDirectory(java.lang.String remotePath)
Removes the remote directory |
void |
removeStatusListener(biz.wisesoft.util.ftp.StatusListener statuslistener)
|
void |
renameRemoteFile(java.lang.String oldPath,
java.lang.String newpath)
Renames the remote file |
void |
setHostName(java.lang.String host)
Sets the name of the ftp server |
void |
setPassword(java.lang.String pwd)
Sets the password to login into the ftp server |
void |
setPort(int ftpServerPort)
Sets the port of the ftp server |
void |
setUserName(java.lang.String user)
Sets the username to login into the ftp server |
void |
uploadLocalFile(java.lang.String remoteFileName,
java.lang.String localPath)
Uploads a local file to the ftp server |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FTPClient()
| Method Detail |
public java.lang.String getFileList()
public void setHostName(java.lang.String host)
host - The name of the ftp serverpublic void addStatusListener(biz.wisesoft.util.ftp.StatusListener statuslistener)
public void changeWorkingDirectory(java.lang.String remotePath)
remotePath - The remote path to changepublic void disconnect()
public int getPort()
public java.lang.String getUserName()
public void removeStatusListener(biz.wisesoft.util.ftp.StatusListener statuslistener)
public void removeRemoteDirectory(java.lang.String remotePath)
remotePath - The remote path
public void downloadRemoteFile(java.lang.String remotePath,
java.lang.String localPath)
remotePath - The remote pathlocalPath - The local pathpublic boolean connect()
public void setPort(int ftpServerPort)
ftpServerPort - The port of the ftp serverpublic void deleteRemoteFile(java.lang.String remotePath)
remotePath - The path of the remote file
public void renameRemoteFile(java.lang.String oldPath,
java.lang.String newpath)
oldPath - The ole path of the remote filenewpath - The new path of the remote filepublic java.lang.String getCurrentWorkingDirectory()
public void uploadLocalFile(java.lang.String remoteFileName,
java.lang.String localPath)
remoteFileName - The remote file namelocalPath - The local pathpublic void changeToParentDirectory()
public java.lang.String getPassword()
public void setPassword(java.lang.String pwd)
pwd - The password to login into the ftp serverpublic void setUserName(java.lang.String user)
user - The username to login into the ftp serverpublic java.lang.String getHostName()
public void createremoteDirectory(java.lang.String remotePath)
remotePath - The path of new remote directory
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||