| java.lang.Object com.enterprisedt.net.ftp.FTPDataSocket
FTPDataSocket | public class FTPDataSocket (Code) | | Supports client-side FTP DataSocket in Passive and Active Mode.
Wrapper for Socket and ServerSocket. Methods are package access
only - not for public use.
author: Vladyslav Skarzhevsky version: $Revision: 1.1.1.1 $ |
Method Summary | |
void | close() Closes underlying sockets. | InputStream | getInputStream() If active mode, accepts the FTP server's connection - in PASV,
we are already connected. | 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. |
FTPDataSocket | FTPDataSocket(ServerSocket s)(Code) | | Create socket wrapper for Active connection.
|
FTPDataSocket | FTPDataSocket(Socket s)(Code) | | Create socket wrapper for PASV connection.
|
getInputStream | InputStream getInputStream() throws IOException(Code) | | If active mode, accepts the FTP server's connection - in PASV,
we are already connected. Then gets the input stream of
the connection
input stream for underlying socket. |
getOutputStream | OutputStream getOutputStream() throws IOException(Code) | | If active mode, accepts the FTP server's connection - in PASV,
we are already connected. Then gets the output stream of
the connection
output stream for underlying socket. |
setTimeout | void setTimeout(int millis) throws IOException(Code) | | 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.
Parameters: millis - The length of the timeout, in milliseconds |
|
|