public class FTPGet extends Object implements FTPCommand, Stoppable
Constructor and Description |
---|
FTPGet() |
Modifier and Type | Method and Description |
---|---|
boolean |
executeWith(org.apache.commons.net.ftp.FTPClient client)
Execute the command.
|
File |
getFile() |
OutputStream |
getOutput() |
String |
getRemote() |
void |
setFile(File file) |
void |
setOutput(OutputStream output) |
void |
setRemote(String as) |
void |
stop()
Stop executing.
|
String |
toString() |
public boolean executeWith(org.apache.commons.net.ftp.FTPClient client) throws IOException
FTPCommand
executeWith
in interface FTPCommand
client
- The client session.IOException
public void stop() throws FailedToStopException
Stoppable
stop
in interface Stoppable
FailedToStopException
public String getRemote()
public void setRemote(String as)
public File getFile()
public void setFile(File file)
public OutputStream getOutput()
public void setOutput(OutputStream output)