com.myjavaworld.ftp
Interface FTPConstants

All Known Implementing Classes:
AS400FTPClient, ControlConnection, DataConnection, DefaultFTPClient, ExplicitSSLControlConnection, ImplicitSSLControlConnection, SSLDataConnection

public interface FTPConstants

A Utility class that defines useful constants that are used in FTP process.

Version:
2.0
Author:
Sai Pullabhotla, psai [at] jMethods [dot] com

Field Summary
static int DEFAULT_BUFFER_SIZE
          A constant to represent default buffer size to use while sending and receiving data.
static int DEFAULT_IMPLICIT_SSL_PORT
          Default port number to connect to when making an implicit SSL connection.
static int DEFAULT_MODE
          Default mode.
static int DEFAULT_PORT
          A constant to represent the default FTP port.
static int DEFAULT_STRUCTURE
          Default structure.
static int DEFAULT_TIMEOUT
          A constant that represents default time out.
static int DEFAULT_TYPE
          Default type.
static String EOL
          A constant that represents a Telnet End Of Line (EOL).
static int MODE_BLOCK
          A constant to represent BLOCK mode.
static int MODE_COMPRESSED
          A Constant to represent COMPRESSED mode.
static int MODE_STREAM
          A constant to represent STREAM mode.
static int STRUCTURE_FILE
          A constant for representing FILE structure.
static int STRUCTURE_PAGE
          A constant to represent PAGE structure.
static int STRUCTURE_RECORD
          A constant to represent RECORD structure.
static int TYPE_ASCII
          A constant to represent ASCII representation type.
static int TYPE_BINARY
          A constant to represent BINARY representation type.
static int TYPE_EBCDIC
          A constant to represent EBCDIC representation type.
static int TYPE_IMAGE
          A constant to represent IMAGE representation type.
static int TYPE_LOCAL
          A constant to represent local representation type.
static int USE_EXPLICIT_SSL
          An SSL usage constant to represent use explicit SSL.
static int USE_IMPLICIT_SSL
          An SSL usage constant to represent use implicit SSL.
static int USE_NO_SSL
          An SSL usage constant to represent do not use SSL.
static int USE_SSL_IF_AVAILABLE
          An SSL usage constant to represent use SSL if available.
 

Field Detail

EOL

static final String EOL
A constant that represents a Telnet End Of Line (EOL). All commands sent over the control connection must end with this character or sequence of characters.

See Also:
Constant Field Values

DEFAULT_PORT

static final int DEFAULT_PORT
A constant to represent the default FTP port. Default FTP port is 21.

See Also:
Constant Field Values

DEFAULT_TIMEOUT

static final int DEFAULT_TIMEOUT
A constant that represents default time out. Default time out is 5 minutes.

See Also:
Constant Field Values

DEFAULT_BUFFER_SIZE

static final int DEFAULT_BUFFER_SIZE
A constant to represent default buffer size to use while sending and receiving data. The default value is 16 KB. i.e. 16 * 1024 bytes.

See Also:
Constant Field Values

TYPE_ASCII

static final int TYPE_ASCII
A constant to represent ASCII representation type.

See Also:
Constant Field Values

TYPE_BINARY

static final int TYPE_BINARY
A constant to represent BINARY representation type.

See Also:
Constant Field Values

TYPE_EBCDIC

static final int TYPE_EBCDIC
A constant to represent EBCDIC representation type.

See Also:
Constant Field Values

TYPE_LOCAL

static final int TYPE_LOCAL
A constant to represent local representation type.

See Also:
Constant Field Values

TYPE_IMAGE

static final int TYPE_IMAGE
A constant to represent IMAGE representation type. This is an alias for TYPE_BINARY.

See Also:
Constant Field Values

DEFAULT_TYPE

static final int DEFAULT_TYPE
Default type. Default is set to TYPE_BINARY.

See Also:
Constant Field Values

STRUCTURE_FILE

static final int STRUCTURE_FILE
A constant for representing FILE structure.

See Also:
Constant Field Values

STRUCTURE_RECORD

static final int STRUCTURE_RECORD
A constant to represent RECORD structure.

See Also:
Constant Field Values

STRUCTURE_PAGE

static final int STRUCTURE_PAGE
A constant to represent PAGE structure.

See Also:
Constant Field Values

DEFAULT_STRUCTURE

static final int DEFAULT_STRUCTURE
Default structure. Value is STRUCTURE_FILE.

See Also:
Constant Field Values

MODE_STREAM

static final int MODE_STREAM
A constant to represent STREAM mode.

See Also:
Constant Field Values

MODE_BLOCK

static final int MODE_BLOCK
A constant to represent BLOCK mode.

See Also:
Constant Field Values

MODE_COMPRESSED

static final int MODE_COMPRESSED
A Constant to represent COMPRESSED mode.

See Also:
Constant Field Values

DEFAULT_MODE

static final int DEFAULT_MODE
Default mode. Value is MODE_STREAM.

See Also:
Constant Field Values

USE_NO_SSL

static final int USE_NO_SSL
An SSL usage constant to represent do not use SSL.

See Also:
Constant Field Values

USE_SSL_IF_AVAILABLE

static final int USE_SSL_IF_AVAILABLE
An SSL usage constant to represent use SSL if available.

See Also:
Constant Field Values

USE_IMPLICIT_SSL

static final int USE_IMPLICIT_SSL
An SSL usage constant to represent use implicit SSL.

See Also:
Constant Field Values

USE_EXPLICIT_SSL

static final int USE_EXPLICIT_SSL
An SSL usage constant to represent use explicit SSL.

See Also:
Constant Field Values

DEFAULT_IMPLICIT_SSL_PORT

static final int DEFAULT_IMPLICIT_SSL_PORT
Default port number to connect to when making an implicit SSL connection.

See Also:
Constant Field Values


Copyright © 2000-2012 jMethods, Inc.. All Rights Reserved.