org.oddjob.net.ftp
Class FTPPut

java.lang.Object
  extended by org.oddjob.net.ftp.FTPPut
All Implemented Interfaces:
FTPCommand, Stoppable

public class FTPPut
extends Object
implements FTPCommand, Stoppable

Description

FTP command to transfer a file to the server.
Author:
rob

Constructor Summary
FTPPut()
           
 
Method Summary
 boolean executeWith(FTPClient client)
          Execute the command.
 File getFile()
           
 InputStream getInput()
           
 String getRemote()
           
 void setFile(File file)
           
 void setInput(InputStream input)
           
 void setRemote(String as)
           
 void stop()
          Stop executing.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FTPPut

public FTPPut()
Method Detail

executeWith

public boolean executeWith(FTPClient client)
                    throws IOException
Description copied from interface: FTPCommand
Execute the command.

Specified by:
executeWith in interface FTPCommand
Parameters:
client - The client session.
Returns:
true if OK, false otherwise.
Throws:
IOException

stop

public void stop()
          throws FailedToStopException
Description copied from interface: Stoppable
Stop executing. This method should not return until the Stoppable has actually stopped.

Specified by:
stop in interface Stoppable
Throws:
FailedToStopException

toString

public String toString()
Overrides:
toString in class Object

getRemote

public String getRemote()

setRemote

public void setRemote(String as)

getInput

public InputStream getInput()

setInput

public void setInput(InputStream input)

getFile

public File getFile()

setFile

public void setFile(File file)