com.enterprisedt.net.ftp
Class FTPActiveDataSocket

java.lang.Object
  |
  +--com.enterprisedt.net.ftp.FTPActiveDataSocket
All Implemented Interfaces:
FTPDataSocket

public class FTPActiveDataSocket
extends java.lang.Object
implements FTPDataSocket

Active data socket handling class

Version:
$Revision: 1.1 $
Author:
Bruce Blackshaw

Field Summary
 
Fields inherited from interface com.enterprisedt.net.ftp.FTPDataSocket
cvsId
 
Method Summary
 void close()
          Closes underlying sockets
 java.io.InputStream getInputStream()
          If active mode, accepts the FTP server's connection - in PASV, we are already connected.
 java.io.OutputStream getOutputStream()
          If active mode, accepts the FTP server's connection - in PASV, we are already connected.
 void setTimeout(int millis)
          Set the TCP timeout on the underlying control socket.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setTimeout

public void setTimeout(int millis)
                throws java.io.IOException
Set the TCP timeout on the underlying control socket. If a timeout is set, then any operation which takes longer than the timeout value will be killed with a java.io.InterruptedException.

Specified by:
setTimeout in interface FTPDataSocket
Parameters:
millis - The length of the timeout, in milliseconds
java.io.IOException

getOutputStream

public java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
If active mode, accepts the FTP server's connection - in PASV, we are already connected. Then gets the output stream of the connection

Specified by:
getOutputStream in interface FTPDataSocket
Returns:
output stream for underlying socket.
java.io.IOException

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
If active mode, accepts the FTP server's connection - in PASV, we are already connected. Then gets the input stream of the connection

Specified by:
getInputStream in interface FTPDataSocket
Returns:
input stream for underlying socket.
java.io.IOException

close

public void close()
           throws java.io.IOException
Closes underlying sockets

Specified by:
close in interface FTPDataSocket
java.io.IOException


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