| sun.net.TransferProtocolClient sun.net.ftp.FtpClient
FtpClient | public class FtpClient extends TransferProtocolClient (Code) | | This class implements the FTP client.
version: 1.49, 08/19/02 author: Jonathan Payne |
Constructor Summary | |
public | FtpClient(String host) New FTP client connected to host host. | public | FtpClient(String host, int port) New FTP client connected to host host, port port. | public | FtpClient() Create an uninitialized FTP client. |
FTP_ERROR | static int FTP_ERROR(Code) | | |
FTP_PORT | final public static int FTP_PORT(Code) | | |
FTP_SUCCESS | static int FTP_SUCCESS(Code) | | |
FTP_TRY_AGAIN | static int FTP_TRY_AGAIN(Code) | | |
ftpProxyPort | public static int ftpProxyPort(Code) | | |
lastReplyCode | int lastReplyCode(Code) | | The last reply code from the ftp daemon.
|
useFtpProxy | public static boolean useFtpProxy(Code) | | |
welcomeMsg | public String welcomeMsg(Code) | | Welcome message from the server, if any.
|
FtpClient | public FtpClient(String host, int port) throws IOException(Code) | | New FTP client connected to host host, port port.
|
FtpClient | public FtpClient()(Code) | | Create an uninitialized FTP client.
|
cd | public void cd(String remoteDirectory) throws IOException(Code) | | CD to a specific directory on a remote FTP server
|
closeServer | public void closeServer() throws IOException(Code) | | issue the QUIT command to the FTP server and close the connection.
|
getFtpProxyHost | public static String getFtpProxyHost()(Code) | | the host to use, or null if none has been specified |
getFtpProxyPort | public static int getFtpProxyPort()(Code) | | the proxy port to use. Will default reasonably if not set. |
getUseFtpProxy | public static boolean getUseFtpProxy()(Code) | | if the networking layer should send ftp connections througha proxy |
openServer | public void openServer(String host, int port) throws IOException(Code) | | open a FTP connection to host host on port port.
|
|
|