|
ElegantJCharts Java API Specification v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.elegantj.net.ftp.FTPClient
This class encapsulates functionality of an FTP client.
| Field Summary | |
C1 |
c1
|
| Constructor Summary | |
FTPClient()
Constructs an FTP client with default FTP port. |
|
| Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
|
void |
addStatusListener(StatusListener l)
|
void |
changeToParentDirectory()
Method for changing to remote parent directory. |
void |
changeWorkingDirectory(java.lang.String remotePath)
Method for changing a working remote directory. |
boolean |
connect()
Method for connect to FTP server. |
void |
deleteRemoteFile(java.lang.String remotePath)
Method for delete a remote file. |
void |
disconnect()
Method for disconnect from FTP server. |
void |
downloadRemoteFile(java.lang.String remotePath,
java.lang.String localPath)
Method for download a remote file from FTP server. |
java.lang.String |
getCurrentWorkingDirectory()
Method which returns name of current working remote directory. |
java.lang.String |
getFileList()
Method which returns a list of files in current working remote directory. |
java.lang.String |
getHostName()
Method which returns the FTP Server host name. |
java.lang.String |
getLicenseKey()
Returns the license key of the bean |
java.lang.String |
getPassword()
Method which returns the password. |
int |
getPort()
Method which returns the FTP port. |
java.lang.String |
getUserName()
Method which returns the username. |
void |
makeRemoteDirectory(java.lang.String remotePath)
Method for making a new remote directory. |
void |
readExternal(java.io.ObjectInput ois)
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
|
void |
removeRemoteDirectory(java.lang.String remotePath)
Method for removing a remote directory. |
void |
removeStatusListener(StatusListener l)
|
void |
renameRemoteFile(java.lang.String oldPath,
java.lang.String newPath)
Method for rename a remote file. |
void |
setHostName(java.lang.String newHost)
Method which set the FTP Server host name. |
void |
setLicenseKey(java.lang.String licenseKey)
Methods which sets the license key |
void |
setPassword(java.lang.String newPass)
Method which set the password to logging into FTP Server. |
void |
setPort(int newPort)
Method which set the FTP port. |
void |
setUserName(java.lang.String newUser)
Method which set the username to logging into FTP Server. |
void |
uploadLocalFile(java.lang.String remoteFileName,
java.lang.String localPath)
Method for upload a local file to FTP server. |
void |
writeExternal(java.io.ObjectOutput oos)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public C1 c1
| Constructor Detail |
public FTPClient()
| Method Detail |
public void addStatusListener(StatusListener l)
public void removeStatusListener(StatusListener l)
public boolean connect()
public void disconnect()
public void uploadLocalFile(java.lang.String remoteFileName,
java.lang.String localPath)
remoteFileName - Remote file name.localPath - The path of local file.
public void downloadRemoteFile(java.lang.String remotePath,
java.lang.String localPath)
remotePath - The remote path.localPath - The local path.public void changeWorkingDirectory(java.lang.String remotePath)
public void changeToParentDirectory()
public 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 name of a remote file.newPath - The new name of a remote file.public void removeRemoteDirectory(java.lang.String remotePath)
remotePath - The path of remote directory.public void makeRemoteDirectory(java.lang.String remotePath)
remotePath - The path of new remote directory.public java.lang.String getFileList()
public java.lang.String getCurrentWorkingDirectory()
public void setHostName(java.lang.String newHost)
newHost - The FTP Server host name.public java.lang.String getHostName()
public void setPort(int newPort)
newPort - The FTP port.public int getPort()
public void setUserName(java.lang.String newUser)
newUser - The username to logging into FTP Server.public java.lang.String getUserName()
public void setPassword(java.lang.String newPass)
newPass - The password to logging into FTP Server.public java.lang.String getPassword()
public void addPropertyChangeListener(java.beans.PropertyChangeListener pcl)
public void removePropertyChangeListener(java.beans.PropertyChangeListener pcl)
public void setLicenseKey(java.lang.String licenseKey)
public java.lang.String getLicenseKey()
public void writeExternal(java.io.ObjectOutput oos)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOException
public void readExternal(java.io.ObjectInput ois)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOException
java.lang.ClassNotFoundException
|
ElegantJCharts Java API Specification v2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||