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.7 $
Author:
Bruce Blackshaw

Constructor Summary
FTPControlSocket(java.net.InetAddress remoteAddr, int controlPort, java.io.PrintWriter log, int timeout)
          Constructor.
FTPControlSocket(java.lang.String remoteHost, int controlPort, java.io.PrintWriter log, int timeout)
          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,
                        int controlPort,
                        java.io.PrintWriter log,
                        int timeout)
                 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
log - the new logging stream

FTPControlSocket

public FTPControlSocket(java.net.InetAddress remoteAddr,
                        int controlPort,
                        java.io.PrintWriter log,
                        int timeout)
                 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
log - the new logging stream
Method Detail

logout

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

java.io.IOException

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-2003 Enterprise Distributed Technologies Ltd. All Rights Reserved.