Java org.apache.commons.net.ftp FTP fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.net.ftp FTP fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.net.ftp FTP.

The text is from its open source code.

Subclass

org.apache.commons.net.ftp.FTP has subclasses.
Click this link to see all its subclasses.

Implementation

org.apache.commons.net.ftp.FTP has the following implementations.
Click this link to see all its implementation.

Field

intDEFAULT_PORT
The default FTP control port (21).
intASCII_FILE_TYPE
A constant used to indicate the file(s) being transfered should be treated as ASCII.
intEBCDIC_FILE_TYPE
A constant used to indicate the file(s) being transfered should be treated as EBCDIC.
intBINARY_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.
intLOCAL_FILE_TYPE
A constant used to indicate the file(s) being transfered should be treated as a local type.
intFILE_STRUCTURE
A constant used to indicate a file is to be treated as a continuous sequence of bytes.
intSTREAM_TRANSFER_MODE
A constant used to indicate a file is to be transfered as a stream of bytes.
intBLOCK_TRANSFER_MODE
A constant used to indicate a file is to be transfered as a series of blocks.
intCOMPRESSED_TRANSFER_MODE
A constant used to indicate a file is to be transfered as FTP compressed data.

Constructor

FTP()
The default FTP constructor.

Method

voidconnect(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.
voiddisconnect()
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.
InetAddressgetRemoteAddress()
intgetReplyCode()
Returns the integer value of the reply code of the last FTP reply.
intpass(String password)
A convenience method to send the FTP PASS command to the server, receive the reply, and return the reply code.
intuser(String username)
A convenience method to send the FTP USER command to the server, receive the reply, and return the reply code.