org.oddjob.net.ftp
Class FTPPut
java.lang.Object
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
FTPPut
public FTPPut()
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)