com.glub.secureftp.bean
Interface FTPData

All Known Implementing Classes:
FTPRead, FTPWrite

public interface FTPData

The FTPData interface is used to handle the transfer of data from the FTP server.

Since:
2.1.2
Version:
$Revision: 47 $, $Date: 2009-05-16 10:10:12 -0700 (Sat, 16 May 2009) $

Method Summary
 void abortComplete()
          Called when an aborted transfer is complete.
 void abortTransfer()
          Abort the data transfer.
 void doTransfer()
          Handle the data transfer.
 Socket getControlSocket()
          Get the control socket (used for abort).
 void setControlSocket(Socket control)
          Set the control socket (used for abort).
 

Method Detail

setControlSocket

void setControlSocket(Socket control)
Set the control socket (used for abort).

Parameters:
control - the control socket

getControlSocket

Socket getControlSocket()
Get the control socket (used for abort).

Returns:
the control socket.

doTransfer

void doTransfer()
                throws FTPException
Handle the data transfer.

Throws:
FTPException - if the FTP server returns an error.

abortTransfer

void abortTransfer()
                   throws FTPException
Abort the data transfer.

Throws:
FTPException - if the FTP server returns an error.

abortComplete

void abortComplete()
Called when an aborted transfer is complete. This should not be called directly.



Copyright © 2000-08 Glub Tech, Inc. All Rights Reserved.