com.enterprisedt.net.ftp
Class FTPControlSocket

java.lang.Object
  |
  +--com.enterprisedt.net.ftp.FTPControlSocket

public class FTPControlSocket
extends java.lang.Object

Supports client-side FTP operations

Version:
$Revision: 1.3 $
Author:
Bruce Blackshaw

Constructor Summary
FTPControlSocket(java.net.InetAddress remoteAddr)
          Constructor.
FTPControlSocket(java.net.InetAddress remoteAddr, int controlPort)
          Constructor.
FTPControlSocket(java.lang.String remoteHost)
          Constructor.
FTPControlSocket(java.lang.String remoteHost, int controlPort)
          Constructor.
 
Method Summary
 void logout()
          Quit this FTP session and clean up.
protected  byte[] toByteArray(short value)
          Convert a short into a byte array
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FTPControlSocket

public FTPControlSocket(java.lang.String remoteHost)
                 throws java.io.IOException,
                        FTPException
Constructor. Performs TCP connection and sets up reader/writer
Parameters:
remoteHost - Remote hostname

FTPControlSocket

public FTPControlSocket(java.lang.String remoteHost,
                        int controlPort)
                 throws java.io.IOException,
                        FTPException
Constructor. Performs TCP connection and sets up reader/writer. Allows different control port to be used
Parameters:
remoteHost - Remote hostname
controlPort - port for control stream

FTPControlSocket

public FTPControlSocket(java.net.InetAddress remoteAddr)
                 throws java.io.IOException,
                        FTPException
Constructor. Performs TCP connection and sets up reader/writer
Parameters:
remoteAddr - Remote inet address

FTPControlSocket

public FTPControlSocket(java.net.InetAddress remoteAddr,
                        int controlPort)
                 throws java.io.IOException,
                        FTPException
Constructor. Performs TCP connection and sets up reader/writer. Allows different control port to be used
Parameters:
remoteAddr - Remote inet address
controlPort - port for control stream
Method Detail

logout

public void logout()
            throws java.io.IOException
Quit this FTP session and clean up.

toByteArray

protected byte[] toByteArray(short value)
Convert a short into a byte array
Parameters:
value - value to convert
Returns:
a byte array


Copyright (c) 2001 Enterprise Distributed Technologies Ltd. All Rights Reserved.