|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--javatools.ftp.Ftp
| Field Summary | |
(package private) FTPClient |
ftpClient
|
| Constructor Summary | |
Ftp(java.lang.String sHost,
java.lang.String sUserID,
java.lang.String sPassword)
Constructs/Creates an FTP Session with a Nominated Host |
|
| Method Summary | |
void |
deleteFile(java.lang.String sDirectory,
java.lang.String sFile)
Delete a File from the Nominated Host |
java.util.Vector |
directoryList(java.lang.String sDirectory)
Retrieves a Directory List from the nominated Host |
void |
getFile(java.lang.String sDirectory,
java.lang.String sFile,
FTPVisitor ftpVisitor)
Process a File from the Nominated Host |
void |
log(java.lang.String sMessage)
Log Writer |
void |
sendCommand(java.lang.String sCommand)
Send an FTP Directory (MKD - Make a directory) |
void |
sendFile(java.lang.String sDirectory,
java.lang.String sFile,
FTPSender ftpSender)
Send a File to the Nominated Host |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
FTPClient ftpClient
| Constructor Detail |
public Ftp(java.lang.String sHost,
java.lang.String sUserID,
java.lang.String sPassword)
throws java.lang.Exception
sHost - The name of the HostsUserID - The FTP UseridsPassword - The FTP Password
java.lang.Exception - if things go wrong| Method Detail |
public java.util.Vector directoryList(java.lang.String sDirectory)
throws java.lang.Exception
sDirectory - the name of the Nominated Directory
java.lang.Exception - if things go wrong
public void getFile(java.lang.String sDirectory,
java.lang.String sFile,
FTPVisitor ftpVisitor)
throws java.lang.Exception
sDirectory - the name of the Nominated DirectorysFile - the name of the File within the DirectoryftpVisitor - factory to process the File
java.lang.Exception - if things go wrong
public void sendFile(java.lang.String sDirectory,
java.lang.String sFile,
FTPSender ftpSender)
throws java.lang.Exception
sDirectory - the name of the Nominated DirectorysFile - the name of the File within the DirectoryftpSender - factory to send the File
java.lang.Exception - if things go wrong
public void deleteFile(java.lang.String sDirectory,
java.lang.String sFile)
throws java.lang.Exception
sDirectory - the name of the Nominated DirectorysFile - the name of the File within the Directory
java.lang.Exception - if things go wrong
public void sendCommand(java.lang.String sCommand)
throws java.lang.Exception
sCommand - the Command
java.lang.Exception - if things go wrongpublic void log(java.lang.String sMessage)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||