public class FTPActiveDataSocket extends java.lang.Object implements FTPDataSocket
| Modifier and Type | Field and Description | 
|---|---|
| static java.lang.String | cvsIdRevision control id | 
| Constructor and Description | 
|---|
| FTPActiveDataSocket(java.net.ServerSocket sock)Constructor | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close()Closes underlying sockets | 
| void | closeChild()Closes child socket | 
| java.io.InputStream | getInputStream()If active mode, accepts the FTP server's connection - in PASV, we are
 already connected. | 
| int | getLocalPort()Returns the local port to which this socket is bound. | 
| 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 data socket(s). | 
public FTPActiveDataSocket(java.net.ServerSocket sock)
sock - the server socket to usepublic void setTimeout(int millis)
                throws java.io.IOException
setTimeout in interface FTPDataSocketmillis - The length of the timeout, in millisecondsjava.io.IOExceptionpublic int getLocalPort()
getLocalPort in interface FTPDataSocketpublic java.io.OutputStream getOutputStream()
                                     throws java.io.IOException
getOutputStream in interface FTPDataSocketjava.io.IOExceptionpublic java.io.InputStream getInputStream()
                                   throws java.io.IOException
getInputStream in interface FTPDataSocketjava.io.IOExceptionpublic void close()
           throws java.io.IOException
close in interface FTPDataSocketjava.io.IOExceptionpublic void closeChild()
                throws java.io.IOException
closeChild in interface FTPDataSocketjava.io.IOException