Example usage for Java org.apache.commons.net.ftp FTP fields, constructors, methods, implement or subclass
The text is from its open source code.
int | DEFAULT_PORT The default FTP control port (21). |
int | ASCII_FILE_TYPE A constant used to indicate the file(s) being transfered should be treated as ASCII. |
int | EBCDIC_FILE_TYPE A constant used to indicate the file(s) being transfered should be treated as EBCDIC. |
int | BINARY_FILE_TYPE A constant used to indicate the file(s) being transfered should be treated as a binary image, i.e., no translations should be performed. |
int | LOCAL_FILE_TYPE A constant used to indicate the file(s) being transfered should be treated as a local type. |
int | FILE_STRUCTURE A constant used to indicate a file is to be treated as a continuous sequence of bytes. |
int | STREAM_TRANSFER_MODE A constant used to indicate a file is to be transfered as a stream of bytes. |
int | BLOCK_TRANSFER_MODE A constant used to indicate a file is to be transfered as a series of blocks. |
int | COMPRESSED_TRANSFER_MODE A constant used to indicate a file is to be transfered as FTP compressed data. |
FTP() The default FTP constructor. |
void | connect(InetAddress host, int port) Opens a Socket connected to a remote host at the specified port and originating from the current host at a system assigned port. |
void | disconnect() Closes the control connection to the FTP server and sets to null some internal data so that the memory may be reclaimed by the garbage collector. |
InetAddress | getRemoteAddress() |
int | getReplyCode() Returns the integer value of the reply code of the last FTP reply. |
int | pass(String password) A convenience method to send the FTP PASS command to the server, receive the reply, and return the reply code. |
int | user(String username) A convenience method to send the FTP USER command to the server, receive the reply, and return the reply code. |