|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

java.lang.Objecttoolbox.ftp.FTPPutClientCommonsImpl
public class FTPPutClientCommonsImpl
Implementation of the FTPPutClient interface that employs the Apache Commons Net FTP package.
| Constructor Summary | |
|---|---|
FTPPutClientCommonsImpl()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
destroy()
Destroy this client. |
java.lang.String |
getName()
Return the name of this client. |
void |
init(java.lang.String name,
java.util.Map props,
FTPManager manager)
Initialise this client with a reference to the manager that created it. |
void |
putLocalFile(java.lang.String localFileName,
java.lang.String remoteFileName)
Store a single file from the configured local directory and place the file in the configured remote directory. |
void |
putLocalFiles()
Store all the files from the configured local directory and place them in the configured remote directory. |
void |
putLocalFiles(int fileCount)
Store n number of files from the configured local directory and place them in the configured remote directory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FTPPutClientCommonsImpl()
| Method Detail |
|---|
public void init(java.lang.String name,
java.util.Map props,
FTPManager manager)
init in interface FTPPutClientname - String containing the name of this client.props - Map instance containing the client configuration
properties.manager - FTPManager instance that created this client.public java.lang.String getName()
getName in interface FTPPutClient
public void putLocalFile(java.lang.String localFileName,
java.lang.String remoteFileName)
throws FTPException
putLocalFile in interface FTPPutClientlocalFileName - String containing the name of the local file.remoteFileName - String containing the name of the remote file.
FTPException - if the file cannot be stored.
public void putLocalFiles()
throws FTPException
putLocalFiles in interface FTPPutClientFTPException - if the files cannot be retrieved.
public void putLocalFiles(int fileCount)
throws FTPException
putLocalFiles in interface FTPPutClientfileCount - int indicating the maximum number of files to store.
Pass -1 to store all files.
FTPException - if the files cannot be retrieved.public void destroy()
destroy in interface FTPPutClient
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||