com.ibm.di.protocols
Class FTP

java.lang.Object
  extended by com.ibm.di.protocols.FTP

public class FTP
extends Object


Constructor Summary
FTP()
           
 
Method Summary
 boolean cd(String path)
           
 boolean close()
           
 boolean connect(String host)
           
 boolean connect(String host, int port)
           
 Object[] dir()
           
 boolean get(String remoteFile, String localFile)
           
 Exception getLastError()
           
 String getResponse()
           
 boolean login(String username, String password)
           
 boolean put(String localFile, String remoteFile)
           
 boolean setAscii()
           
 boolean setBinary()
           
 boolean setLastErr(Exception e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FTP

public FTP()
Method Detail

connect

public boolean connect(String host)

connect

public boolean connect(String host,
                       int port)

login

public boolean login(String username,
                     String password)

close

public boolean close()

setBinary

public boolean setBinary()

setAscii

public boolean setAscii()

get

public boolean get(String remoteFile,
                   String localFile)

put

public boolean put(String localFile,
                   String remoteFile)

cd

public boolean cd(String path)

getResponse

public String getResponse()

dir

public Object[] dir()

setLastErr

public boolean setLastErr(Exception e)

getLastError

public Exception getLastError()