org.oddjob.net.ftp
Class FTPPwd

java.lang.Object
  extended by org.oddjob.net.ftp.FTPPwd
All Implemented Interfaces:
FTPCommand

public class FTPPwd
extends Object
implements FTPCommand

Description

FTP command to get the current remote present working directory.
Author:
rob

Constructor Summary
FTPPwd()
           
 
Method Summary
 boolean executeWith(FTPClient client)
          Execute the command.
 String getPwd()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FTPPwd

public FTPPwd()
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

getPwd

public String getPwd()

toString

public String toString()
Overrides:
toString in class Object