A B C D E F G I L M N O P R S T U W

A

abort - Variable in class com.myjavaworld.ftp.DataConnection
A flag for aborting the data transfer.
abort() - Method in class com.myjavaworld.ftp.DataConnection
Sets the abort flag to true.
abort() - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
abort() - Method in interface com.myjavaworld.ftp.FTPClient
Sends an abort command to the remote host.
accept() - Method in class com.myjavaworld.ftp.DataConnection
Listens for connections.
accept(Object) - Method in class com.myjavaworld.ftp.RemoteFileFilter
 
accept() - Method in class com.myjavaworld.ftp.SSLDataConnection
Listenes for connections.
accept(Object) - Method in class com.myjavaworld.util.DateFilter
 
accept(Object) - Method in interface com.myjavaworld.util.Filter
Whether or not the given object will pass through this filter.
accept(Object) - Method in class com.myjavaworld.util.RegexFilter
Checks to see if the given value can pass through this filter.
addControlConnectionListener(ControlConnectionListener) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
addControlConnectionListener(ControlConnectionListener) - Method in interface com.myjavaworld.ftp.FTPClient
Adds a listener that will be notified about the activities of ControlConnection associated with this FTPClient .
addDataConnectionListener(DataConnectionListener) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
addDataConnectionListener(DataConnectionListener) - Method in interface com.myjavaworld.ftp.FTPClient
Adds a DataConnection Listener to this FTPClient.
addFTPConnectionListener(FTPConnectionListener) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
addFTPConnectionListener(FTPConnectionListener) - Method in interface com.myjavaworld.ftp.FTPClient
Adds the given FTPConnectionListener to the list of registered listeners.
allocate(long) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
allocate(long) - Method in interface com.myjavaworld.ftp.FTPClient
Allocates the specified number of bytes on the remote system.
AS400FTPClient - Class in com.myjavaworld.ftp
An FTP client implementation that can be used with AS/400 systems.
AS400FTPClient() - Constructor for class com.myjavaworld.ftp.AS400FTPClient
Creates a new instance of AS400FTPClient
available() - Method in class com.myjavaworld.ftp.FromNetASCIIInputStream
Returns the number of bytes that can be read without blocking EXCEPT when newline conversions have to be made somewhere within the available block of bytes.
available() - Method in class com.myjavaworld.ftp.ToNetASCIIInputStream
 

B

bind() - Method in class com.myjavaworld.ftp.DataConnection
Binds a server socket on the local host on a free port.
bind() - Method in class com.myjavaworld.ftp.SSLDataConnection
Binds a server socket on the local host on a free port.
bufferSize - Variable in class com.myjavaworld.ftp.DefaultFTPClient
Buffer size for transferring data over the network.

C

client - Variable in class com.myjavaworld.ftp.ControlConnection
FTPClient object that created this ControlConnection.
client - Variable in class com.myjavaworld.ftp.DataConnection
A reference to the FTPClient that created this DataConnection.
close() - Method in class com.myjavaworld.ftp.ControlConnection
Closes this ControlConnection by closing the socket to the remote host and its associated strems.
close() - Method in class com.myjavaworld.ftp.DataConnection
Closes this data connection and open streams, if any.
close() - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
close() - Method in class com.myjavaworld.ftp.FromNetASCIIOutputStream
Closes the stream, writing all pending data.
close() - Method in interface com.myjavaworld.ftp.FTPClient
Closes the control and data connections associated with this FTPClient.
close(Closeable) - Static method in class com.myjavaworld.ftp.FTPUtil
 
close(Socket) - Static method in class com.myjavaworld.ftp.FTPUtil
 
close(ServerSocket) - Static method in class com.myjavaworld.ftp.FTPUtil
 
com.myjavaworld.ftp - package com.myjavaworld.ftp
This package contains the interfaces and default implementations for accessing a remote computer using file transfer protocol (FTP).
com.myjavaworld.ftp.examples - package com.myjavaworld.ftp.examples
 
com.myjavaworld.util - package com.myjavaworld.util
Contains Utility classes.
commandSent(ControlConnectionEvent) - Method in interface com.myjavaworld.ftp.ControlConnectionListener
Called by the ControlConnection when a command is sent to the remote host.
connect(String) - Method in class com.myjavaworld.ftp.ControlConnection
Connects to the given remote host on the default FTP port as defined in FTPConstants.DEFAULT_PORT.
connect(String, int) - Method in class com.myjavaworld.ftp.ControlConnection
Connects to the specified remote host on the specified port number.
connect(String, int) - Method in class com.myjavaworld.ftp.DataConnection
Connects to the specified IP address to the specified port number.
connect(InetAddress, int) - Method in class com.myjavaworld.ftp.DataConnection
Connects to the specified InetAddress to the specified port number.
connect(String) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
connect(String, int) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
connect(FTPHost) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
connect(String, int) - Method in class com.myjavaworld.ftp.ExplicitSSLControlConnection
Connects to the specified remote host on the specified port number.
connect(String) - Method in interface com.myjavaworld.ftp.FTPClient
Connects to the specified remote host host on the default FTP port.
connect(String, int) - Method in interface com.myjavaworld.ftp.FTPClient
Connects to the specfied remote host host, on the specified port number port.
connect(FTPHost) - Method in interface com.myjavaworld.ftp.FTPClient
Connects and logs in to the FTP host.
connect(String, int) - Method in class com.myjavaworld.ftp.ImplicitSSLControlConnection
Connects to the specified remote host on the specified port number.
connect(String, int) - Method in class com.myjavaworld.ftp.SSLDataConnection
Connects to the specified IP address to the specified port number.
connect(InetAddress, int) - Method in class com.myjavaworld.ftp.SSLDataConnection
Connects to the specified InetAddress to the specified port number.
connected - Variable in class com.myjavaworld.ftp.DefaultFTPClient
A flag that tells we are still connected to the remote host.
connectionClosed(FTPConnectionEvent) - Method in interface com.myjavaworld.ftp.FTPConnectionListener
Called when the connection is closed.
ConnectionException - Exception in com.myjavaworld.ftp
A General exception class to indicate connection failures.
ConnectionException() - Constructor for exception com.myjavaworld.ftp.ConnectionException
Constructs a ConnectionException object with no detailed message.
ConnectionException(String) - Constructor for exception com.myjavaworld.ftp.ConnectionException
Constructs a ConnectionException object with the specified detailed message.
connectionOpened(FTPConnectionEvent) - Method in interface com.myjavaworld.ftp.FTPConnectionListener
Called when a connection is opened.
ControlConnection - Class in com.myjavaworld.ftp
This class represents a Control Connection as specified in the FTP protocol specification.
ControlConnection(FTPClient) - Constructor for class com.myjavaworld.ftp.ControlConnection
Constructs a ControlConnection object.
controlConnection - Variable in class com.myjavaworld.ftp.DefaultFTPClient
A Control Connection object for sending commands and receiving replies.
ControlConnectionEvent - Class in com.myjavaworld.ftp
An event generated by objects of ControlConnection.
ControlConnectionEvent(Object, String) - Constructor for class com.myjavaworld.ftp.ControlConnectionEvent
Constructs a ControlConnectionEvent object with the specified source and message.
ControlConnectionListener - Interface in com.myjavaworld.ftp
A contract for implementations of ControlConnectionListener.
createDirectory(RemoteFile) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
createDirectory(RemoteFile) - Method in interface com.myjavaworld.ftp.FTPClient
Creates the specified remote directory dir on the remote host.
createFile(RemoteFile) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
createFile(RemoteFile) - Method in interface com.myjavaworld.ftp.FTPClient
Creates an empty file with the given name on the remote host.
createRemoteFile(String) - Method in class com.myjavaworld.ftp.DefaultListParser
 
createRemoteFile(String, boolean) - Method in class com.myjavaworld.ftp.DefaultListParser
 
createRemoteFile(String, String) - Method in class com.myjavaworld.ftp.DefaultListParser
 
createRemoteFile(String, String, boolean) - Method in class com.myjavaworld.ftp.DefaultListParser
 
createRemoteFile(RemoteFile, String) - Method in class com.myjavaworld.ftp.DefaultListParser
 
createRemoteFile(RemoteFile, String, boolean) - Method in class com.myjavaworld.ftp.DefaultListParser
 
createRemoteFile(String) - Method in class com.myjavaworld.ftp.DosListParser
 
createRemoteFile(String, boolean) - Method in class com.myjavaworld.ftp.DosListParser
 
createRemoteFile(String, String) - Method in class com.myjavaworld.ftp.DosListParser
 
createRemoteFile(String, String, boolean) - Method in class com.myjavaworld.ftp.DosListParser
 
createRemoteFile(RemoteFile, String) - Method in class com.myjavaworld.ftp.DosListParser
 
createRemoteFile(RemoteFile, String, boolean) - Method in class com.myjavaworld.ftp.DosListParser
 
createRemoteFile(String) - Method in interface com.myjavaworld.ftp.ListParser
Creates a RemoteFile object.
createRemoteFile(String, boolean) - Method in interface com.myjavaworld.ftp.ListParser
Creates a RemoteFile object.
createRemoteFile(String, String) - Method in interface com.myjavaworld.ftp.ListParser
Creates a RemoteFile object.
createRemoteFile(String, String, boolean) - Method in interface com.myjavaworld.ftp.ListParser
Creates a RemoteFile object.
createRemoteFile(RemoteFile, String) - Method in interface com.myjavaworld.ftp.ListParser
Creates a RemoteFile object
createRemoteFile(RemoteFile, String, boolean) - Method in interface com.myjavaworld.ftp.ListParser
Creates a RemoteFile object.

D

dataChannelUnencrypted - Variable in class com.myjavaworld.ftp.DefaultFTPClient
A flag to determine if the data channel will be encrypted or not.
DataConnection - Class in com.myjavaworld.ftp
A DataConnection object is used to transfer data over the data connection in an FTP process.
DataConnection(FTPClient) - Constructor for class com.myjavaworld.ftp.DataConnection
Constructs a DataConnection object.
dataConnection - Variable in class com.myjavaworld.ftp.DefaultFTPClient
A DataConnection object used for transferring data to/from the remote system.
DataConnectionEvent - Class in com.myjavaworld.ftp
An event generated by data connections to notify the status of data transfer.
DataConnectionEvent(Object, int, long) - Constructor for class com.myjavaworld.ftp.DataConnectionEvent
Constructs a DataConnectionEvent.
DataConnectionListener - Interface in com.myjavaworld.ftp
A contract for implementations who are interested in receiving notifications about the progress of data transfers.
dataTransferAborted(DataConnectionEvent) - Method in interface com.myjavaworld.ftp.DataConnectionListener
Indicates that a data transfer was aborted by the user.
dataTransferError(DataConnectionEvent) - Method in interface com.myjavaworld.ftp.DataConnectionListener
Indicates that the data transfer could not be completed because of some error.
dataTransferFinished(DataConnectionEvent) - Method in interface com.myjavaworld.ftp.DataConnectionListener
Indicates a data transfer has finished.
dataTransferProgress(DataConnectionEvent) - Method in interface com.myjavaworld.ftp.DataConnectionListener
Indicates that a data transfer is still in progress.
dataTransferStarted(DataConnectionEvent) - Method in interface com.myjavaworld.ftp.DataConnectionListener
Indicates a new data transfer has started.
DateFilter - Class in com.myjavaworld.util
 
DateFilter(Date, Date) - Constructor for class com.myjavaworld.util.DateFilter
Creates an instance of DateFilter.
DEFAULT_BUFFER_SIZE - Static variable in interface com.myjavaworld.ftp.FTPConstants
A constant to represent default buffer size to use while sending and receiving data.
DEFAULT_IMPLICIT_SSL_PORT - Static variable in interface com.myjavaworld.ftp.FTPConstants
Default port number to connect to when making an implicit SSL connection.
DEFAULT_MODE - Static variable in interface com.myjavaworld.ftp.FTPConstants
Default mode.
DEFAULT_PORT - Static variable in interface com.myjavaworld.ftp.FTPConstants
A constant to represent the default FTP port.
DEFAULT_STRUCTURE - Static variable in interface com.myjavaworld.ftp.FTPConstants
Default structure.
DEFAULT_TIMEOUT - Static variable in interface com.myjavaworld.ftp.FTPConstants
A constant that represents default time out.
DEFAULT_TYPE - Static variable in interface com.myjavaworld.ftp.FTPConstants
Default type.
DefaultFTPClient - Class in com.myjavaworld.ftp
The default implementation of FTPClient.
DefaultFTPClient() - Constructor for class com.myjavaworld.ftp.DefaultFTPClient
Constructs an DefaultFTPClient object that is not connected to any host.
DefaultListParser - Class in com.myjavaworld.ftp
The default implementation of ListParser interface.
DefaultListParser() - Constructor for class com.myjavaworld.ftp.DefaultListParser
 
DefaultRemoteFile - Class in com.myjavaworld.ftp
The default implementation of RemoteFile interface.
DefaultRemoteFile(String) - Constructor for class com.myjavaworld.ftp.DefaultRemoteFile
Constructs a DefaultRemoteFile object.
DefaultRemoteFile(String, boolean) - Constructor for class com.myjavaworld.ftp.DefaultRemoteFile
Constructs a DefaultRemoteFile object.
DefaultRemoteFile(String, String) - Constructor for class com.myjavaworld.ftp.DefaultRemoteFile
Constructs a DefaultRemoteFile object.
DefaultRemoteFile(String, String, boolean) - Constructor for class com.myjavaworld.ftp.DefaultRemoteFile
Constructs a DefaultRemoteFile object.
DefaultRemoteFile(String, String, boolean, long, long, String) - Constructor for class com.myjavaworld.ftp.DefaultRemoteFile
Constructs a DefaultRemoteFile object.
DefaultRemoteFile(String, String, boolean, long, long, String, int, String, String) - Constructor for class com.myjavaworld.ftp.DefaultRemoteFile
Creates an instance of DefaultRemoteFile.
delete(RemoteFile) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
delete(RemoteFile) - Method in interface com.myjavaworld.ftp.FTPClient
Deletes the specified path from the remote system.
deleteDirectory(RemoteFile) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
deleteDirectory(RemoteFile) - Method in interface com.myjavaworld.ftp.FTPClient
Deletes the specified directory dir on the remote system.
deleteFile(RemoteFile) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
deleteFile(RemoteFile) - Method in interface com.myjavaworld.ftp.FTPClient
Deletes the specified file, file from the remote system.
DirList - Class in com.myjavaworld.ftp.examples
This example demonstrates how to connect to an FTP site and list the contents of a directory.
DirList() - Constructor for class com.myjavaworld.ftp.examples.DirList
 
disconnect() - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
disconnect() - Method in interface com.myjavaworld.ftp.FTPClient
Sends a quit command to the remote system and closes the control connection and data connection associated with this FTPClient.
DosListParser - Class in com.myjavaworld.ftp
An implementation of ListParser interface used to parse the directory listing of FTP servers, which produce the output in MS-DOS format.
DosListParser() - Constructor for class com.myjavaworld.ftp.DosListParser
 
download(File, boolean) - Method in class com.myjavaworld.ftp.DataConnection
Reads the stream over this data connection and saves it in the specified local file destination.
download(RemoteFile, File, int, boolean) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
Download - Class in com.myjavaworld.ftp.examples
This example demonstrates how to connect to an FTP site and download a file to the local system.
Download() - Constructor for class com.myjavaworld.ftp.examples.Download
 
download(RemoteFile, File, int, boolean) - Method in interface com.myjavaworld.ftp.FTPClient
Copies the contents of the source to the local file destination.

E

EOL - Static variable in interface com.myjavaworld.ftp.FTPConstants
A constant that represents a Telnet End Of Line (EOL).
equals(Object) - Method in class com.myjavaworld.ftp.DefaultRemoteFile
 
executeCommand(String) - Method in class com.myjavaworld.ftp.ControlConnection
Executes the given command command.
executeCommand(String) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
executeCommand(String) - Method in interface com.myjavaworld.ftp.FTPClient
Executes the given command returns the response back.
ExplicitSSLControlConnection - Class in com.myjavaworld.ftp
This class represents a Control Connection as specified in the FTP protocol specification.
ExplicitSSLControlConnection(FTPClient) - Constructor for class com.myjavaworld.ftp.ExplicitSSLControlConnection
Creates an instance of ExplicitSSLControlConnection.
explicitSSLProtocol - Variable in class com.myjavaworld.ftp.DefaultFTPClient
The SSL protocol to use for negotiating Explicit SSL connections.

F

Filter - Interface in com.myjavaworld.util
 
fireCommandSent(ControlConnectionEvent) - Method in class com.myjavaworld.ftp.ControlConnection
Used to notify registered listeners that a command was sent to the remote host.
fireConnectionClosed(FTPConnectionEvent) - Method in class com.myjavaworld.ftp.DefaultFTPClient
Fires the connection closed event to all registered listeners.
fireConnectionOpened(FTPConnectionEvent) - Method in class com.myjavaworld.ftp.DefaultFTPClient
Fires the ConnectionOpened event to all registered listeners.
fireDataTransferAborted(DataConnectionEvent) - Method in class com.myjavaworld.ftp.DataConnection
Notifies the registered listeners that the data transfer has aborted.
fireDataTransferFinished(DataConnectionEvent) - Method in class com.myjavaworld.ftp.DataConnection
Notifies the registered listeners that the data transfer has finished.
fireDataTransferProgress(DataConnectionEvent) - Method in class com.myjavaworld.ftp.DataConnection
Notifies the registered listeners that the data transfer is in progress.
fireDataTransferStarted(DataConnectionEvent) - Method in class com.myjavaworld.ftp.DataConnection
Notifies the registered listeners that the data transfer has started.
fireReplyReceived(ControlConnectionEvent) - Method in class com.myjavaworld.ftp.ControlConnection
Used to notify the registered listeners that a reply was received from the remote host.
FromNetASCIIInputStream - Class in com.myjavaworld.ftp
This class wraps an input stream, replacing all occurrences of <CR><LF> (carriage return followed by a linefeed), which is the NETASCII standard for representing a newline, with the local line separator representation.
FromNetASCIIInputStream(InputStream) - Constructor for class com.myjavaworld.ftp.FromNetASCIIInputStream
Creates a FromNetASCIIInputStream instance that wraps an existing InputStream.
FromNetASCIIOutputStream - Class in com.myjavaworld.ftp
This class wraps an output stream, replacing all occurrences of <CR><LF> (carriage return followed by a linefeed), which is the NETASCII standard for representing a newline, with the local line separator representation.
FromNetASCIIOutputStream(OutputStream) - Constructor for class com.myjavaworld.ftp.FromNetASCIIOutputStream
Creates a FromNetASCIIOutputStream instance that wraps an existing OutputStream.
FTPClient - Interface in com.myjavaworld.ftp
A contract for FTPClient implementation classes.
FTPConnectionEvent - Class in com.myjavaworld.ftp
An event object to represent FTPconnection stats.
FTPConnectionEvent(Object, String) - Constructor for class com.myjavaworld.ftp.FTPConnectionEvent
Creates an instance of FTPConnectionEvent.
FTPConnectionListener - Interface in com.myjavaworld.ftp
A contract for implementations of FTPConnectionListeners.
FTPConstants - Interface in com.myjavaworld.ftp
A Utility class that defines useful constants that are used in FTP process.
FTPException - Exception in com.myjavaworld.ftp
An exception thrown to indicate the command sent was not understood by the remote host or no action is taken because of some reason.
FTPException() - Constructor for exception com.myjavaworld.ftp.FTPException
Constructs an FTPException object with "000" as the error code and no descriptive message.
FTPException(String) - Constructor for exception com.myjavaworld.ftp.FTPException
Constructs an FTPException object with the reply received from the remote FTP host.
FTPHost - Class in com.myjavaworld.ftp
A class that encapsulates the information of an FTP server.
FTPHost() - Constructor for class com.myjavaworld.ftp.FTPHost
Constructs an FTPHost object.
FTPHost(String, String, String) - Constructor for class com.myjavaworld.ftp.FTPHost
Constructs an FTPHost object.
FTPHost(String, String, String, String) - Constructor for class com.myjavaworld.ftp.FTPHost
Constructs an FTPHost object.
FTPHost(String, int, String, String, String) - Constructor for class com.myjavaworld.ftp.FTPHost
Constructs an FTPHost object.
FTPUtil - Class in com.myjavaworld.ftp
An utility class
FTPUtil() - Constructor for class com.myjavaworld.ftp.FTPUtil
 

G

getAccount() - Method in class com.myjavaworld.ftp.FTPHost
Returns the account name.
getAttributes() - Method in class com.myjavaworld.ftp.DefaultRemoteFile
 
getAttributes() - Method in interface com.myjavaworld.ftp.RemoteFile
Returns the attributes of this file in standard unix format.
getBufferSize() - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
getBufferSize() - Method in interface com.myjavaworld.ftp.FTPClient
Returns the current buffer size being used by this FTPClient .
getBytesTransferred() - Method in class com.myjavaworld.ftp.DataConnectionEvent
Returns the number of bytes transferred.
getDateFilter() - Method in class com.myjavaworld.ftp.RemoteFileFilter
Returns the date filter.
getDescription() - Method in class com.myjavaworld.ftp.DefaultListParser
 
getDescription() - Method in class com.myjavaworld.ftp.DosListParser
 
getDescription() - Method in interface com.myjavaworld.ftp.ListParser
Returns the description of this parser.
getEndDate() - Method in class com.myjavaworld.util.DateFilter
 
getErrorCode() - Method in exception com.myjavaworld.ftp.FTPException
Returns the error or reply code.
getExplicitSSLProtocol() - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
getExplicitSSLProtocol() - Method in interface com.myjavaworld.ftp.FTPClient
Returns the SSL protocol that is in use for negotiating Explicit SSL connections.
getExtension() - Method in class com.myjavaworld.ftp.DefaultRemoteFile
 
getExtension() - Method in interface com.myjavaworld.ftp.RemoteFile
Returns the extension of this file.
getGroup() - Method in class com.myjavaworld.ftp.DefaultRemoteFile
 
getGroup() - Method in interface com.myjavaworld.ftp.RemoteFile
Returns the group name to which the owner of this file belongs to.
getHelp() - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
getHelp() - Method in interface com.myjavaworld.ftp.FTPClient
Executes the HELP command on the remote host and returns the response back.
getHostName() - Method in class com.myjavaworld.ftp.FTPHost
Returns the host name
getId() - Method in class com.myjavaworld.ftp.DataConnectionEvent
Returns the ID ot type of this event.
getLastModified() - Method in class com.myjavaworld.ftp.DefaultRemoteFile
 
getLastModified() - Method in interface com.myjavaworld.ftp.RemoteFile
Returns the last modified date of this file in milli seconds.
getLinkCount() - Method in class com.myjavaworld.ftp.DefaultRemoteFile
 
getLinkCount() - Method in interface com.myjavaworld.ftp.RemoteFile
Returns the number of links that point to this file.
getListenerList() - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
getListenerList() - Method in interface com.myjavaworld.ftp.FTPClient
Returns the list of registered listeners.
getListParser() - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
getListParser() - Method in interface com.myjavaworld.ftp.FTPClient
Returns the current ListParser in use by this FTPClient.
getLocalAddress() - Method in class com.myjavaworld.ftp.ControlConnection
Returns the InetAddress of the local host.
getLocalAddress() - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
getLocalAddress() - Method in interface com.myjavaworld.ftp.FTPClient
Returns the InetAddress of the local host.
getLocalHost() - Method in class com.myjavaworld.ftp.ControlConnection
Returns the host name of the local host.
getLocalHost() - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
getLocalHost() - Method in interface com.myjavaworld.ftp.FTPClient
Returns the host name or IP address of the local host.
getLocalIPAddress() - Method in class com.myjavaworld.ftp.ControlConnection
Returns the IP address of the local host.
getLocalIPAddress() - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
getLocalIPAddress() - Method in interface com.myjavaworld.ftp.FTPClient
Returns the IP address of the local host in xxx.xxx.xxx.xxx format.
getLocalPort() - Method in class com.myjavaworld.ftp.ControlConnection
Retruns the local port number to which this ControlConnection is connected to.
getLocalPort() - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
getLocalPort() - Method in interface com.myjavaworld.ftp.FTPClient
Returns the local port number used by the control connection.
getMessage() - Method in class com.myjavaworld.ftp.ControlConnectionEvent
Gets the descriptive message of this event.
getMessage() - Method in class com.myjavaworld.ftp.FTPConnectionEvent
Returns the message string that describes this connection event.
getMode() - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
getMode() - Method in interface com.myjavaworld.ftp.FTPClient
Returns the current mode in use.
getMode(int) - Static method in class com.myjavaworld.ftp.FTPUtil
Returns the mode code.
getName() - Method in class com.myjavaworld.ftp.DefaultListParser
 
getName() - Method in class com.myjavaworld.ftp.DefaultRemoteFile
 
getName() - Method in class com.myjavaworld.ftp.DosListParser
 
getName() - Method in interface com.myjavaworld.ftp.ListParser
Gets the name of this ListParser
getName() - Method in interface com.myjavaworld.ftp.RemoteFile
Returns the name of this remote file.
getNormalizedName() - Method in class com.myjavaworld.ftp.DefaultRemoteFile
 
getNormalizedName() - Method in interface com.myjavaworld.ftp.RemoteFile
Returns the normalized name of this remote file.
getNormalizedPath() - Method in class com.myjavaworld.ftp.DefaultRemoteFile
 
getNormalizedPath() - Method in interface com.myjavaworld.ftp.RemoteFile
Returns the normalized path.
getOtherProperties() - Method in class com.myjavaworld.ftp.DefaultRemoteFile
 
getOtherProperties() - Method in interface com.myjavaworld.ftp.RemoteFile
Returns additional properties of this file if any.
getOwner() - Method in class com.myjavaworld.ftp.DefaultRemoteFile
 
getOwner() - Method in interface com.myjavaworld.ftp.RemoteFile
Returns the owner of this file.
getPassword() - Method in class com.myjavaworld.ftp.FTPHost
Returns the password
getPath() - Method in class com.myjavaworld.ftp.DefaultRemoteFile
 
getPath() - Method in interface com.myjavaworld.ftp.RemoteFile
Returns the full path of this remote file.
getPattern() - Method in class com.myjavaworld.util.RegexFilter
Returns the current pattern being used by this filter.
getPort() - Method in class com.myjavaworld.ftp.FTPHost
Returns the port number.
getPortCommand(String, int) - Static method in class com.myjavaworld.ftp.FTPUtil
 
getProxy() - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
getProxy() - Method in interface com.myjavaworld.ftp.FTPClient
Returns the current proxy configuration, if any.
getRegexFilter() - Method in class com.myjavaworld.ftp.RemoteFileFilter
Returns the name filter.
getRemoteAddress() - Method in class com.myjavaworld.ftp.ControlConnection
Returns the remote host's InetAddress.
getRemoteAddress() - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
getRemoteAddress() - Method in interface com.myjavaworld.ftp.FTPClient
Returns the Address of the remote host.
getRemoteHost() - Method in class com.myjavaworld.ftp.ControlConnection
Returns the fully qualified domain name of the remote host.
getRemoteHost() - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
getRemoteHost() - Method in interface com.myjavaworld.ftp.FTPClient
Returns the fully qaulified domain name of the remote host.
getRemoteIPAddress() - Method in class com.myjavaworld.ftp.ControlConnection
Returns the IP address of the remote host in xxx.xxx.xxx.xxx format.
getRemoteIPAddress() - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
getRemoteIPAddress() - Method in interface com.myjavaworld.ftp.FTPClient
Returns the IP address of the remote host in xxx.xxx.xxx.xxx format.
getRemotePort() - Method in class com.myjavaworld.ftp.ControlConnection
Returns the remote port number to which this ControlConnection is connected to.
getRemotePort() - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
getRemotePort() - Method in interface com.myjavaworld.ftp.FTPClient
Returns the remote port number to which the ControlConnection is established.
getReply() - Method in class com.myjavaworld.ftp.ControlConnection
reads a single FTP response from the remote host.
getSize() - Method in class com.myjavaworld.ftp.DefaultRemoteFile
 
getSize() - Method in interface com.myjavaworld.ftp.RemoteFile
Returns the size of this file in bytes.
getSSLContext() - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
getSSLContext() - Method in interface com.myjavaworld.ftp.FTPClient
Gets the SSLContext of this FTPclient.
getSSLSession() - Method in class com.myjavaworld.ftp.ControlConnection
Returns the SSLSession associated with this connection.
getSSLUsage() - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
getSSLUsage() - Method in interface com.myjavaworld.ftp.FTPClient
Returns the SSL usage of this FTPClient.
getStartDate() - Method in class com.myjavaworld.util.DateFilter
 
getStructure() - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
getStructure() - Method in interface com.myjavaworld.ftp.FTPClient
Returns the current structure in use.
getStructure(int) - Static method in class com.myjavaworld.ftp.FTPUtil
Returns the structure code.
getSystemInfo() - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
getSystemInfo() - Method in interface com.myjavaworld.ftp.FTPClient
Returns the remote host's information by executing the SYST command.
getTimeout() - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
getTimeout() - Method in interface com.myjavaworld.ftp.FTPClient
Returns the timeout setting of this FTP client.
getType() - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
getType() - Method in class com.myjavaworld.ftp.DefaultRemoteFile
 
getType() - Method in interface com.myjavaworld.ftp.FTPClient
Returns the current data representation type in use.
getType(int) - Static method in class com.myjavaworld.ftp.FTPUtil
Returns the type code for a given type.
getType() - Method in interface com.myjavaworld.ftp.RemoteFile
Returns the type of this file.
getUserName() - Method in class com.myjavaworld.ftp.FTPHost
returns the user name.
getVendor() - Method in class com.myjavaworld.ftp.DefaultListParser
 
getVendor() - Method in class com.myjavaworld.ftp.DosListParser
 
getVendor() - Method in interface com.myjavaworld.ftp.ListParser
Gets the vendor name of this parser.
getVersion() - Method in class com.myjavaworld.ftp.DefaultListParser
 
getVersion() - Method in class com.myjavaworld.ftp.DosListParser
 
getVersion() - Method in interface com.myjavaworld.ftp.ListParser
Gets the version of this parser.
getWorkingDirectory() - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
getWorkingDirectory() - Method in interface com.myjavaworld.ftp.FTPClient
Returns the current working directory.

I

ImplicitSSLControlConnection - Class in com.myjavaworld.ftp
This class represents a Control Connection as specified in the FTP protocol specification.
ImplicitSSLControlConnection(FTPClient) - Constructor for class com.myjavaworld.ftp.ImplicitSSLControlConnection
Creates an instance of ImplicitSSLControlConnection.
in - Variable in class com.myjavaworld.ftp.DataConnection
An InputStream object for reading binary data either from the remote host or from the local file system.
isAborted() - Method in class com.myjavaworld.ftp.DataConnection
Checks to see if the abort flag was set.
isConnected() - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
isConnected() - Method in interface com.myjavaworld.ftp.FTPClient
Checks whether or not this FTPClient is still connected to to the remote host.
isConversionRequired() - Static method in class com.myjavaworld.ftp.FromNetASCIIInputStream
Returns true if the NetASCII line separator differs from the system line separator, false if they are the same.
isDataChannelUnencrypted() - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
isDataChannelUnencrypted() - Method in interface com.myjavaworld.ftp.FTPClient
Tells whether or not the data channel encryption is ON.
isDirectory() - Method in class com.myjavaworld.ftp.DefaultRemoteFile
 
isDirectory() - Method in interface com.myjavaworld.ftp.RemoteFile
Tells whether this file is a directory or not.
isExclusionFilter() - Method in class com.myjavaworld.ftp.RemoteFileFilter
 
isFile() - Method in class com.myjavaworld.ftp.DefaultRemoteFile
 
isFile() - Method in interface com.myjavaworld.ftp.RemoteFile
Tells whether this file is a data file or not.
isLink() - Method in class com.myjavaworld.ftp.DefaultRemoteFile
 
isLink() - Method in interface com.myjavaworld.ftp.RemoteFile
Checkes to see if this file is symbolic link.
isLoggedIn() - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
isLoggedIn() - Method in interface com.myjavaworld.ftp.FTPClient
Checks wherher or not this client is logged in.
isPassive() - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
isPassive() - Method in interface com.myjavaworld.ftp.FTPClient
Tells whether or not the data connectons are opned in passive mode.
isPassiveIPSubstitutionEnabled() - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
isPassiveIPSubstitutionEnabled() - Method in interface com.myjavaworld.ftp.FTPClient
Tells whether or not the substitution of passive IP address is enabled.
isSecured() - Method in class com.myjavaworld.ftp.ControlConnection
Tells whether or not this ControlConnection is secured.
isSecured() - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
isSecured() - Method in interface com.myjavaworld.ftp.FTPClient
Tells whether this connection is secured.

L

list(RemoteFile) - Method in class com.myjavaworld.ftp.DataConnection
Parses the data received over this data connection to an array of RemoteFile objects.
list() - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
list(Filter) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
list(RemoteFile) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
list(RemoteFile, Filter) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
list() - Method in interface com.myjavaworld.ftp.FTPClient
Retrieves the contents (children) of the current working directory.
list(Filter) - Method in interface com.myjavaworld.ftp.FTPClient
Retrieves the children of the current working directory.
list(RemoteFile) - Method in interface com.myjavaworld.ftp.FTPClient
Returns the direct children of the specified directory.
list(RemoteFile, Filter) - Method in interface com.myjavaworld.ftp.FTPClient
Returns the direct children of the specified directory.
listenerList - Variable in class com.myjavaworld.ftp.ControlConnection
List of registered listeners that are willing to get notifications about the activity of this ControlConnection.
listenerList - Variable in class com.myjavaworld.ftp.DataConnection
A List of registered listeners that are interested in receiving notifications about the activities of this DataConnection.
listenerList - Variable in class com.myjavaworld.ftp.DefaultFTPClient
List of registered listeners.
listParser - Variable in class com.myjavaworld.ftp.DefaultFTPClient
A ListParser object used to parse the directory listing produced by the remote host.
ListParser - Interface in com.myjavaworld.ftp
A contract for classes that are used to parse the directory listing produced by an FTP server.
loggedIn - Variable in class com.myjavaworld.ftp.DefaultFTPClient
A flag that tells if we are logged in to the remote host.
login(String, String, String) - Method in class com.myjavaworld.ftp.AS400FTPClient
 
login(String, String) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
login(String, String, String) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
login(String, String) - Method in interface com.myjavaworld.ftp.FTPClient
Logs in to the remote host with the specified user id and password.
login(String, String, String) - Method in interface com.myjavaworld.ftp.FTPClient
Logs in to the remote host with the specified user ID, pasword and account.

M

main(String[]) - Static method in class com.myjavaworld.ftp.DefaultListParser
 
main(String[]) - Static method in class com.myjavaworld.ftp.examples.DirList
 
main(String[]) - Static method in class com.myjavaworld.ftp.examples.Download
 
main(String[]) - Static method in class com.myjavaworld.ftp.examples.SSLDownload
 
main(String[]) - Static method in class com.myjavaworld.ftp.examples.Upload
 
markSupported() - Method in class com.myjavaworld.ftp.ToNetASCIIInputStream
Returns false.
mode - Variable in class com.myjavaworld.ftp.DefaultFTPClient
Data transfer mode.
MODE_BLOCK - Static variable in interface com.myjavaworld.ftp.FTPConstants
A constant to represent BLOCK mode.
MODE_COMPRESSED - Static variable in interface com.myjavaworld.ftp.FTPConstants
A Constant to represent COMPRESSED mode.
MODE_STREAM - Static variable in interface com.myjavaworld.ftp.FTPConstants
A constant to represent STREAM mode.
MODES - Static variable in class com.myjavaworld.ftp.FTPUtil
Codes for modes.
mountStructure(String) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
mountStructure(String) - Method in interface com.myjavaworld.ftp.FTPClient
Sends a SMNT command with the specified path to mount.

N

noop() - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
noop() - Method in interface com.myjavaworld.ftp.FTPClient
Sends a No-Operation command to the remote system.

O

out - Variable in class com.myjavaworld.ftp.DataConnection
An OutputStream object used to write binary data to the remote host or to the local file system.

P

parse(RemoteFile, BufferedReader) - Method in class com.myjavaworld.ftp.DefaultListParser
 
parse(RemoteFile, String) - Method in class com.myjavaworld.ftp.DefaultListParser
 
parse(RemoteFile, BufferedReader) - Method in class com.myjavaworld.ftp.DosListParser
 
parse(RemoteFile, String) - Method in class com.myjavaworld.ftp.DosListParser
 
parse(RemoteFile, BufferedReader) - Method in interface com.myjavaworld.ftp.ListParser
Parses the directory listing returned by an FTP server into an array of RemoteFile objects.
parse(RemoteFile, String) - Method in interface com.myjavaworld.ftp.ListParser
Parses a line of output in to a RemoteFile object.
parseAddress(String) - Static method in class com.myjavaworld.ftp.FTPUtil
Extracts the host address from the reply of a PASV command.
parseAttributes(String) - Static method in class com.myjavaworld.ftp.FTPUtil
 
parsePath(String) - Static method in class com.myjavaworld.ftp.FTPUtil
Extracts the path from the given string.
parsePort(String) - Static method in class com.myjavaworld.ftp.FTPUtil
 
passive - Variable in class com.myjavaworld.ftp.DefaultFTPClient
Whether or not to open data connections in passive mode.
passiveIPSubstitutionEnabled - Variable in class com.myjavaworld.ftp.DefaultFTPClient
Flag that determines if passive connections IP address should be substituted with the original server's IP address.
proxy - Variable in class com.myjavaworld.ftp.DefaultFTPClient
The proxy server to use when connecting to the FTP server

R

read() - Method in class com.myjavaworld.ftp.FromNetASCIIInputStream
Reads and returns the next byte in the stream.
read(byte[]) - Method in class com.myjavaworld.ftp.FromNetASCIIInputStream
Reads the next number of bytes from the stream into an array and returns the number of bytes read.
read(byte[], int, int) - Method in class com.myjavaworld.ftp.FromNetASCIIInputStream
Reads the next number of bytes from the stream into an array and returns the number of bytes read.
read() - Method in class com.myjavaworld.ftp.ToNetASCIIInputStream
Reads and returns the next byte in the stream.
read(byte[]) - Method in class com.myjavaworld.ftp.ToNetASCIIInputStream
Reads the next number of bytes from the stream into an array and returns the number of bytes read.
read(byte[], int, int) - Method in class com.myjavaworld.ftp.ToNetASCIIInputStream
Reads the next number of bytes from the stream into an array and returns the number of bytes read.
reader - Variable in class com.myjavaworld.ftp.ControlConnection
A Reader object for receiving replies from the remote host.
RECEIVE - Static variable in class com.myjavaworld.ftp.DataConnectionEvent
A constant to indicate that data is being received from the remote host.
RegexFilter - Class in com.myjavaworld.util
 
RegexFilter(String, int) - Constructor for class com.myjavaworld.util.RegexFilter
Creates an instance of RegexFilter.
reinitialize() - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
reinitialize() - Method in interface com.myjavaworld.ftp.FTPClient
Sends a reinitialize command to the remote host.
RemoteFile - Interface in com.myjavaworld.ftp
Objects of this class represent a file on the remote FTP server.
RemoteFileFilter - Class in com.myjavaworld.ftp
An implementation of Filter to filter files on the FTP host.
RemoteFileFilter(RegexFilter, DateFilter) - Constructor for class com.myjavaworld.ftp.RemoteFileFilter
Creates an instance of RemoteFileFilter.
RemoteFileFilter(RegexFilter, DateFilter, boolean) - Constructor for class com.myjavaworld.ftp.RemoteFileFilter
 
removeControlConnectionListener(ControlConnectionListener) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
removeControlConnectionListener(ControlConnectionListener) - Method in interface com.myjavaworld.ftp.FTPClient
Removes the given listener from the list of registered listenerrs.
removeDataConnectionListener(DataConnectionListener) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
removeDataConnectionListener(DataConnectionListener) - Method in interface com.myjavaworld.ftp.FTPClient
Removes the given data connection listener from the registered list of listeners.
removeFTPConnectionListener(FTPConnectionListener) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
removeFTPConnectionListener(FTPConnectionListener) - Method in interface com.myjavaworld.ftp.FTPClient
Unregisters the given listener from the list of listeners.
rename(RemoteFile, RemoteFile) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
rename(RemoteFile, RemoteFile) - Method in interface com.myjavaworld.ftp.FTPClient
Renames a file or directory, from to to.
reply - Variable in class com.myjavaworld.ftp.DefaultFTPClient
Stores that last reply received from the remote host.
replyReceived(ControlConnectionEvent) - Method in interface com.myjavaworld.ftp.ControlConnectionListener
Called by the ControlConnection when a reply is received from the remote host.
restart(long) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
restart(long) - Method in interface com.myjavaworld.ftp.FTPClient
Sends a RESTART command to the remote host with the specified number of bytes.

S

SEND - Static variable in class com.myjavaworld.ftp.DataConnectionEvent
A constant to indicate that data is being sent to the remote host.
sendCommand(String) - Method in class com.myjavaworld.ftp.ControlConnection
Sends the given command command, to the remote host over this ControlConnection.
server - Variable in class com.myjavaworld.ftp.DataConnection
A ServerSocket object used in active mode of data transfers.
setAccount(String) - Method in class com.myjavaworld.ftp.FTPHost
Sets the account to the given account.
setAttributes(String) - Method in class com.myjavaworld.ftp.DefaultRemoteFile
 
setAttributes(String) - Method in interface com.myjavaworld.ftp.RemoteFile
Sets the attributes on this file to the given attributes.
setBufferSize(int) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
setBufferSize(int) - Method in interface com.myjavaworld.ftp.FTPClient
Sets the buffer size to use for transferring data over the data connection.
setDataChannelUnencrypted(boolean) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
setDataChannelUnencrypted(boolean) - Method in interface com.myjavaworld.ftp.FTPClient
Sets/unsets the flag to encrypt the data channel.
setDateFilter(DateFilter) - Method in class com.myjavaworld.ftp.RemoteFileFilter
Sets the date filter to the given filter.
setEndDate(Date) - Method in class com.myjavaworld.util.DateFilter
 
setExclusionFilter(boolean) - Method in class com.myjavaworld.ftp.RemoteFileFilter
 
setExplicitSSLProtocol(String) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
setExplicitSSLProtocol(String) - Method in interface com.myjavaworld.ftp.FTPClient
Sets the SSL protocol to use when negotiating an Explicit SSL connection.
setHostName(String) - Method in class com.myjavaworld.ftp.FTPHost
Sets the host name to the given hostName.
setListParser(ListParser) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
setListParser(ListParser) - Method in interface com.myjavaworld.ftp.FTPClient
Sets the ListParser to the specified listParser .ListParser objects are used to parsre the contents of a remote directory in to RemoteFile objects.
setMode(int) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
setMode(int) - Method in interface com.myjavaworld.ftp.FTPClient
Sets the mode in which data is transferred to the given mode .
setPassive(boolean) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
setPassive(boolean) - Method in interface com.myjavaworld.ftp.FTPClient
If true, marks that the data is to be transgerrred over a passive data connection.
setPassiveIPSubstitutionEnabled(boolean) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
setPassiveIPSubstitutionEnabled(boolean) - Method in interface com.myjavaworld.ftp.FTPClient
Sets or unsets the flag that determines whether or not to ignore the response (the IP address portion) of PASV command and substitute it with the original server IP address when making a PASSIVE data connection.
setPassword(String) - Method in class com.myjavaworld.ftp.FTPHost
Sets the password to the given password.
setPattern(String, int) - Method in class com.myjavaworld.util.RegexFilter
Sets the pattern to be used by this filter to the given pattern.
setPattern(Pattern) - Method in class com.myjavaworld.util.RegexFilter
Sets the pattern to be used by this filter to the given pattern.
setPort(int) - Method in class com.myjavaworld.ftp.FTPHost
Sets the port number to the given port.
setProxy(Proxy) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
setProxy(Proxy) - Method in interface com.myjavaworld.ftp.FTPClient
Sets the proxy server to use when making the control/data connections.
setRegexFilter(RegexFilter) - Method in class com.myjavaworld.ftp.RemoteFileFilter
Sets the name filter to the given filter.
setSiteParameter(String) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
setSiteParameter(String) - Method in interface com.myjavaworld.ftp.FTPClient
Sends a SITE command with the specified parameter(s).
setSSLContext(SSLContext) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
setSSLContext(SSLContext) - Method in interface com.myjavaworld.ftp.FTPClient
Sets the SSLContext of this FTPClient to the given context.
setSSLUsage(int) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
setSSLUsage(int) - Method in interface com.myjavaworld.ftp.FTPClient
Sets the SSL usage of this client to the given value.
setStartDate(Date) - Method in class com.myjavaworld.util.DateFilter
 
setStructure(int) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
setStructure(int) - Method in interface com.myjavaworld.ftp.FTPClient
Sets the structure to the specified structure.
setTimeout(int) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
setTimeout(int) - Method in interface com.myjavaworld.ftp.FTPClient
Sets the timeout for this FTPClient to the specified timeout.
setToParentDirectory() - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
setToParentDirectory() - Method in interface com.myjavaworld.ftp.FTPClient
Sets the remote working directory to the parent directory of the current working directory.
setType(int) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
setType(int) - Method in interface com.myjavaworld.ftp.FTPClient
Sets the data representation type to the given type.
setUserName(String) - Method in class com.myjavaworld.ftp.FTPHost
Sets the user name to the given userName.
setWorkingDirectory(RemoteFile) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
setWorkingDirectory(RemoteFile) - Method in interface com.myjavaworld.ftp.FTPClient
Sets the remote working directory to the specified directory dir.
socket - Variable in class com.myjavaworld.ftp.ControlConnection
A Socket that represents a connection to the remote host.
socket - Variable in class com.myjavaworld.ftp.DataConnection
A Socket that represents a data connection.
sslContext - Variable in class com.myjavaworld.ftp.DefaultFTPClient
SSL context
SSLDataConnection - Class in com.myjavaworld.ftp
A DataConnection object is used to transfer data over the data connection in an FTP process.
SSLDataConnection(FTPClient) - Constructor for class com.myjavaworld.ftp.SSLDataConnection
Constructs a DataConnection object.
SSLDownload - Class in com.myjavaworld.ftp.examples
This example demonstrates how to connect to an FTP site and download a file to the local system using SSL.
SSLDownload() - Constructor for class com.myjavaworld.ftp.examples.SSLDownload
 
sslUsage - Variable in class com.myjavaworld.ftp.DefaultFTPClient
SSL usage of this ftp client.
stderr(String) - Method in class com.myjavaworld.ftp.ControlConnection
Prints the given string to standard error.
stdout(String) - Method in class com.myjavaworld.ftp.ControlConnection
Prints a given string to the standard output.
stdout(String) - Method in class com.myjavaworld.ftp.DataConnection
Writes the given message to the standard output.
structure - Variable in class com.myjavaworld.ftp.DefaultFTPClient
Structure.
STRUCTURE_FILE - Static variable in interface com.myjavaworld.ftp.FTPConstants
A constant for representing FILE structure.
STRUCTURE_PAGE - Static variable in interface com.myjavaworld.ftp.FTPConstants
A constant to represent PAGE structure.
STRUCTURE_RECORD - Static variable in interface com.myjavaworld.ftp.FTPConstants
A constant to represent RECORD structure.
STRUCTURES - Static variable in class com.myjavaworld.ftp.FTPUtil
Codes for structures.

T

timeout - Variable in class com.myjavaworld.ftp.DefaultFTPClient
Timeout for this FTPClient.
ToNetASCIIInputStream - Class in com.myjavaworld.ftp
This class wraps an input stream, replacing all singly occurring <LF> (linefeed) characters with <CR><LF> (carriage return followed by linefeed), which is the NETASCII standard for representing a newline.
ToNetASCIIInputStream(InputStream) - Constructor for class com.myjavaworld.ftp.ToNetASCIIInputStream
Creates a ToNetASCIIInputStream instance that wraps an existing InputStream.
ToNetASCIIOutputStream - Class in com.myjavaworld.ftp
This class wraps an output stream, replacing all singly occurring <LF> (linefeed) characters with <CR><LF> (carriage return followed by linefeed), which is the NETASCII standard for representing a newline.
ToNetASCIIOutputStream(OutputStream) - Constructor for class com.myjavaworld.ftp.ToNetASCIIOutputStream
Creates a ToNetASCIIOutputStream instance that wraps an existing OutputStream.
toString() - Method in class com.myjavaworld.ftp.ControlConnectionEvent
Converts this event object to a String and returns it.
toString() - Method in class com.myjavaworld.ftp.DataConnectionEvent
String rpresentation of this event.
toString() - Method in class com.myjavaworld.ftp.DefaultRemoteFile
 
toString() - Method in class com.myjavaworld.ftp.FTPHost
Returns a string representation of this FTPHost.
type - Variable in class com.myjavaworld.ftp.DefaultFTPClient
Data representation type.
TYPE_ASCII - Static variable in interface com.myjavaworld.ftp.FTPConstants
A constant to represent ASCII representation type.
TYPE_BINARY - Static variable in interface com.myjavaworld.ftp.FTPConstants
A constant to represent BINARY representation type.
TYPE_EBCDIC - Static variable in interface com.myjavaworld.ftp.FTPConstants
A constant to represent EBCDIC representation type.
TYPE_IMAGE - Static variable in interface com.myjavaworld.ftp.FTPConstants
A constant to represent IMAGE representation type.
TYPE_LOCAL - Static variable in interface com.myjavaworld.ftp.FTPConstants
A constant to represent local representation type.
TYPE_NAMES - Static variable in class com.myjavaworld.ftp.FTPUtil
Names for data representation types.
TYPES - Static variable in class com.myjavaworld.ftp.FTPUtil
Codes for data representation types.

U

upload(File, long) - Method in class com.myjavaworld.ftp.DataConnection
Sends the contents of the specified local file src to the remote host.
upload(File, RemoteFile, int, boolean, long) - Method in class com.myjavaworld.ftp.DefaultFTPClient
 
Upload - Class in com.myjavaworld.ftp.examples
This example demonstrates how to connect to an FTP site and upload a file to the FTP server.
Upload() - Constructor for class com.myjavaworld.ftp.examples.Upload
 
upload(File, RemoteFile, int, boolean, long) - Method in interface com.myjavaworld.ftp.FTPClient
copies the contents of local file source to the specified remote file destination.
USE_EXPLICIT_SSL - Static variable in interface com.myjavaworld.ftp.FTPConstants
An SSL usage constant to represent use explicit SSL.
USE_IMPLICIT_SSL - Static variable in interface com.myjavaworld.ftp.FTPConstants
An SSL usage constant to represent use implicit SSL.
USE_NO_SSL - Static variable in interface com.myjavaworld.ftp.FTPConstants
An SSL usage constant to represent do not use SSL.
USE_SSL_IF_AVAILABLE - Static variable in interface com.myjavaworld.ftp.FTPConstants
An SSL usage constant to represent use SSL if available.

W

workingDirectory - Variable in class com.myjavaworld.ftp.DefaultFTPClient
Keep track of the current working directory on the remote host.
write(int) - Method in class com.myjavaworld.ftp.FromNetASCIIOutputStream
Writes a byte to the stream.
write(byte[]) - Method in class com.myjavaworld.ftp.FromNetASCIIOutputStream
Writes a byte array to the stream.
write(byte[], int, int) - Method in class com.myjavaworld.ftp.FromNetASCIIOutputStream
Writes a number of bytes from a byte array to the stream starting from a given offset.
write(int) - Method in class com.myjavaworld.ftp.ToNetASCIIOutputStream
Writes a byte to the stream.
write(byte[]) - Method in class com.myjavaworld.ftp.ToNetASCIIOutputStream
Writes a byte array to the stream.
write(byte[], int, int) - Method in class com.myjavaworld.ftp.ToNetASCIIOutputStream
Writes a number of bytes from a byte array to the stream starting from a given offset.
writer - Variable in class com.myjavaworld.ftp.ControlConnection
A Writer object that sends commands to the remote host.

A B C D E F G I L M N O P R S T U W

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