Tools
Class FTP

java.lang.Object
  extended by Tools.FTP

public class FTP
extends java.lang.Object

Title: FTP

Description: FTP....

Copyright: Copyright (c) 2003

Company: N/A

Version:
1.0 A class to actually put or get a file from an FTP server
Author:
Sean Lykken & J. Babendreier

Field Summary
private static int BUFFER_SIZE
           
private  sun.net.ftp.FtpClient client
           
 
Constructor Summary
FTP(java.lang.String serverLoc, java.lang.String usr, java.lang.String pass)
           
 
Method Summary
 void downloadToFile(java.lang.String serverFile, java.lang.String path, java.lang.String localFile)
           
 void getFile(java.lang.String fileName, java.lang.String path)
           
 void putFile(java.lang.String fileName, java.lang.String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

client

private sun.net.ftp.FtpClient client

BUFFER_SIZE

private static int BUFFER_SIZE
Constructor Detail

FTP

public FTP(java.lang.String serverLoc,
           java.lang.String usr,
           java.lang.String pass)
    throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

putFile

public void putFile(java.lang.String fileName,
                    java.lang.String path)
             throws java.lang.Exception
Throws:
java.lang.Exception

getFile

public void getFile(java.lang.String fileName,
                    java.lang.String path)
             throws java.lang.Exception
Throws:
java.lang.Exception

downloadToFile

public void downloadToFile(java.lang.String serverFile,
                           java.lang.String path,
                           java.lang.String localFile)
                    throws java.lang.Exception
Throws:
java.lang.Exception