Uses of Class
com.enterprisedt.net.ftp.FTPException
Packages that use FTPException
Package
Description
FileTransferClient is the key
class for edtFTPj/Free and provides basic FTP features.-
Uses of FTPException in com.enterprisedt.net.ftp
Subclasses of FTPException in com.enterprisedt.net.ftpModifier and TypeClassDescriptionclassThrown when an FTP transfer has been closed by the serverclassThrown when an FTP transfer has been cancelledclassA malformed reply was received from the serverMethods in com.enterprisedt.net.ftp that throw FTPExceptionModifier and TypeMethodDescriptionprotected voidFTPClient.abort()Abort the current actionvoidSupply account information string to the server.voidFTPClient.cancelResume()voidFTPClientInterface.cancelResume()Cancel the resume.voidFTPClient.cdup()voidFTPClientInterface.cdup()Change the remote working directory to the parent directoryvoidFileTransferClient.changeDirectory(String directoryName) Change directory on the FTP server.voidFileTransferClientInterface.changeDirectory(String directoryName) Change directory on the FTP server.voidFileTransferClient.changeToParentDirectory()Change to parent directory on the FTP server.voidFileTransferClientInterface.changeToParentDirectory()Change to parent directory on the FTP server.voidvoidChange the remote working directory to that suppliedprotected voidFileTransferClient.checkConnection(boolean shouldBeConnected) Checks if the client has connected to the server and throws an exception if it hasn't.protected voidFTPClient.checkConnection(boolean shouldBeConnected) Checks if the client has connected to the server and throws an exception if it hasn't.protected FTPTransferTypeFTPClient.chooseTransferMode(String filename) Switch the transfer mode if requested and if necessaryvoidFileTransferClient.connect()Make a connection to the FTP server.voidFileTransferClientInterface.connect()Make a connection to the FTP server.voidFTPClient.connect()Connects to the server at the address and port number defined in the constructor.voidFTPClientInterface.connect()Connects to the server at the address and port number defined in the constructor.protected voidFTPClient.createDataSocket()Set up the data socketprotected com.enterprisedt.net.ftp.internal.FTPDataSocketFTPControlSocket.createDataSocketPASV()Request a data socket be created on the server, connect to it and return our connected socket.voidFileTransferClient.createDirectory(String directoryName) Create directory on the FTP server.voidFileTransferClientInterface.createDirectory(String directoryName) Create directory on the FTP server.voidvoidDelete the specified remote filevoidFileTransferClient.deleteDirectory(String directoryName) Delete directory on the FTP server.voidFileTransferClientInterface.deleteDirectory(String directoryName) Delete directory on the FTP server.voidFileTransferClient.deleteFile(String remoteFileName) Deletes a remote file.voidFileTransferClientInterface.deleteFile(String remoteFileName) Deletes a remote file.String[]FTPClient.dir()String[]String[]String[]FTPClientInterface.dir()List current directory's contents as an array of strings of filenames.String[]List a directory's contents as an array of strings of filenames.String[]List a directory's contents as an array of strings.FTPFile[]FTPClient.dirDetails(String dirname) voidFTPClient.dirDetails(String dirname, DirectoryListCallback lister) FTPFile[]FTPClientInterface.dirDetails(String dirname) List a directory's contents as an array of FTPFile objects.voidFTPClientInterface.dirDetails(String dirname, DirectoryListCallback lister) List a directory's contents via a callback.FTPFile[]FTPClient.dirDetailsM(String dirname) Uses the MLSD command to find out details about the named directory.FTPFile[]FileTransferClient.directoryList()List the current directory on the FTP server.FTPFile[]FileTransferClient.directoryList(String directoryName) List a directory on the FTP server.voidFileTransferClient.directoryList(String directoryName, DirectoryListCallback lister) List a directory on the FTP server.FTPFile[]FileTransferClientInterface.directoryList()List the current directory on the FTP server.FTPFile[]FileTransferClientInterface.directoryList(String directoryName) List a directory on the FTP server.voidFileTransferClientInterface.directoryList(String directoryName, DirectoryListCallback lister) List a directory on the FTP server.String[]FileTransferClient.directoryNameList()List the names of files and directories in the current directory on the FTP server.String[]FileTransferClient.directoryNameList(String directoryName, boolean isLongListing) List the names of files and directories of a directory on the FTP server.String[]FileTransferClientInterface.directoryNameList()List the names of files and directories in the current directory on the FTP server.String[]FileTransferClientInterface.directoryNameList(String directoryName, boolean isLongListing) List the names of files and directories of a directory on the FTP server.voidFileTransferClient.disconnect()Disconnect from the FTP server.voidFileTransferClient.disconnect(boolean immediate) Disconnect from the FTP server.voidFileTransferClientInterface.disconnect()Disconnect from the FTP server.voidFileTransferClientInterface.disconnect(boolean immediate) Disconnect from the FTP server.byte[]FileTransferClient.downloadByteArray(String remoteFileName) Download a file from the FTP server into a byte array.byte[]FileTransferClientInterface.downloadByteArray(String remoteFileName) Download a file from the FTP server into a byte array.voidFileTransferClient.downloadFile(String localFileName, String remoteFileName) Download a file from the FTP server .voidFileTransferClient.downloadFile(String localFileName, String remoteFileName, WriteMode writeMode) Download a file from the FTP server .voidFileTransferClientInterface.downloadFile(String localFileName, String remoteFileName) Download a file from the FTP server .voidFileTransferClientInterface.downloadFile(String localFileName, String remoteFileName, WriteMode writeMode) Download a file from the FTP server .FileTransferClient.downloadStream(String remoteFileName) Download a file from the FTP server as a stream.FileTransferClientInterface.downloadStream(String remoteFileName) Download a file from the FTP server as a stream.static voidFileTransferClient.downloadURLFile(String localFileName, String ftpURL) Downloads the given file to the given FTP URL.static FileTransferInputStreamFileTransferClient.downloadURLStream(String ftpURL) Open an InputStream for the given FTP URL.FileTransferClient.executeCommand(String command) Request that the remote server execute the literal command supplied.FileTransferClientInterface.executeCommand(String command) Request that the remote server execute the literal command supplied.FTPClient.executeCommand(String command) Request that the remote server execute the literal command supplied.FTPClientInterface.executeCommand(String command) Request that the remote server execute the literal command supplied.booleanDetermine if a remote file exists.booleanDetermine if a remote file exists.booleanDeprecated.Use existsFile(String).booleanDoes the named file exist in the current server directory?booleanFTPClient.existsDirectory(String remoteDirectory) Use to find out if a directory exists or not.booleanFTPClient.existsFile(String remoteFile) Use to find out if a file exists or not.String[]FTPClient.features()Get the server supplied featuresFTPClient.fileDetails(String name) Uses the MLST command to find out details about the named file.voidFTPClient.get(OutputStream destStream, String remoteFile) byte[]voidvoidFTPClientInterface.get(OutputStream destStream, String remoteFile) Get data from the FTP server.byte[]Get data from the FTP server.voidGet data from the FTP server.FileTransferClient.getModifiedTime(String remoteFileName) Get the modified-time of a remote file.FileTransferClientInterface.getModifiedTime(String remoteFileName) Get the modified-time of a remote file.FileTransferClient.getRemoteDirectory()Get the current remote directory.FileTransferClientInterface.getRemoteDirectory()Get the current remote directory.longGet the size of a remote file.longGet the size of a remote file.FileTransferClient.getSystemType()Get a string that represents the remote system that the client is logged into.FileTransferClientInterface.getSystemType()Get a string that represents the remote system that the client is logged into.Get the help text for the specified commandprotected voidRequest to the server that the get is set upprotected StringRequest the server to set up the putvoidFTPClient.keepAlive()Tries to keep the current connection alive by sending an innocuous command to signal that the client is still activevoidFTPClientInterface.keepAlive()Tries to keep the current connection alive by some means, usually by sending an innocuous commmand.Deprecated.As of FTP 1.1, replaced byFTPClient.dir(String)Deprecated.As of FTP 1.1, replaced byFTPClient.dir(String,boolean)voidLogin into an account on the FTP server.voidLogin into an account on the FTP server.voidFileTransferClient.manualLogin()Perform a manual login using the credentials that have been set.voidvoidCreate the specified remote working directoryGet modification time for a remote file.voidFTPClient.noOp()Send the NOOP messagevoidFTPClient.noOperation()Send a "no operation" message that does nothing.voidSupplies the password for a previously supplied username to log into the FTP server.protected voidFTPClient.postTransferChecks(byte[] localBytes, String remotePath, FTPTransferType transferType, boolean append) Can be overridden by subclasses to do any necessary post transfer checking.protected voidFTPClient.postTransferChecks(String localPath, String remotePath, FTPTransferType transferType, boolean append) Can be overridden by subclasses to do any necessary post transfer checking.protected static voidFileTransferClient.prepareURLTransfer(URL url, FileTransferClientInterface client) FTPClient.put(InputStream srcStream, String remoteFile) FTPClient.put(InputStream srcStream, String remoteFile, boolean append) Put data onto the FTP server.Put data onto the FTP server.FTPClientInterface.put(InputStream srcStream, String remoteFile) Put a stream of data onto the FTP server.FTPClientInterface.put(InputStream srcStream, String remoteFile, boolean append) Put a stream of data onto the FTP server.Put a local file onto the FTP server.Put a local file onto the FTP server.FTPClient.pwd()FTPClientInterface.pwd()Get the current remote working directoryvoidFTPClient.quit()voidFTPClientInterface.quit()Quit the FTP sessionvoidFTPClient.quitImmediately()voidFTPClientInterface.quitImmediately()Quit the FTP session immediately.Issue arbitrary ftp commands to the FTP server.Issue arbitrary ftp commands to the FTP server.protected voidReconnect to the servervoidRename a remote file or directory.voidRename a remote file or directory.voidvoidRename a file or directoryvoidFTPClient.resetTransferMode(FTPTransferType previousType) Reset the transfer mode back to what it should be, if it has changed.voidFTPClient.restart(long size) Issue the RESTart command to the remote server.voidFTPClient.resume()voidFTPClientInterface.resume()Make the next file transfer (put or get) resume.voidFTPClient.resumeNextDownload(long offset) voidFTPClientInterface.resumeNextDownload(long offset) Make the next download resume at a specific point.voidvoidDelete the specified remote working directoryFTPClient.sendCommand(String command) Send a command to the server and get the replyFTPControlSocket.sendCommand(String command) Send a command to the FTP server and return the server's reply as a structured reply objectvoidFTPClient.sendServerWakeup()Wake up the server during a transfer to prevent a timeout from occuring.voidFTPClient.setActiveIPAddress(String activeIP) We can force PORT to send a fixed IP address, which can be useful with certain NAT configurations.voidFTPClient.setActivePortRange(int lowest, int highest) Force a certain range of ports to be used in active mode.voidAdvancedFTPSettings.setConnectMode(FTPConnectMode mode) Set the data transfer mode to either active (PORT) or passive (PASV).voidFileTransferClient.setContentType(FTPTransferType type) Set the transfer type for all connections, either ASCII or binary.voidFileTransferClientInterface.setContentType(FTPTransferType type) Set the transfer type for all connections, either ASCII or binary.voidFTPClient.setControlEncoding(String controlEncoding) Set the control socket's encoding.voidFTPClientInterface.setControlEncoding(String controlEncoding) Set the encoding used on the control channel.voidFTPClient.setControlPort(int controlPort) Deprecated.UseFTPClientInterface.setRemotePort(int)instead.protected voidFTPControlSocket.setDataPort(InetAddress host, int portNo) Sets the data port on the server, that is, sends a PORT command.voidFileTransferClient.setModifiedTime(String remoteFileName, Date modifiedTime) Set the modified-time of a remote file.voidFileTransferClientInterface.setModifiedTime(String remoteFileName, Date modifiedTime) Set the modified-time of a remote file.voidFTPClient.setModTime(String remoteFile, Date modTime) voidFTPClientInterface.setModTime(String path, Date modTime) Set the last modified time (UTC) for the supplied file.voidFileTransferClient.setNetworkBufferSize(int networkBufferSize) Set the size of the network buffers (SO_SNDBUF and SO_RCVBUF).voidFileTransferClientInterface.setNetworkBufferSize(int networkBufferSize) Set the size of the network buffers (SO_SNDBUF and SO_RCVBUF).voidFileTransferClient.setPassword(String password) Set the password of the user to log in with.voidFileTransferClientInterface.setPassword(String password) Set the password of the user to log in with.voidDeprecated.voidFTPClient.setRemoteAddr(InetAddress remoteAddr) Set the remote addressvoidFileTransferClient.setRemoteHost(String remoteHost) Set the IP address or name of the remote host This may only be done if the client is not already connected to the server.voidFileTransferClientInterface.setRemoteHost(String remoteHost) Set the IP address or name of the remote host This may only be done if the client is not already connected to the server.voidFTPClient.setRemoteHost(String remoteHost) voidFTPClientInterface.setRemoteHost(String remoteHost) Set the IP address or name of the remote host This may only be done if the client is not already connected to the server.voidFileTransferClient.setRemotePort(int remotePort) Set the port to connect to on the remote server.voidFileTransferClientInterface.setRemotePort(int remotePort) Set the port to connect to on the remote server.voidFTPClient.setRemotePort(int remotePort) Set the control to connect to on the remote server.voidFTPClientInterface.setRemotePort(int remotePort) Set the port to connect to on the remote server.voidFileTransferClient.setTimeout(int timeout) Set the timeout for socket connections.voidFileTransferClientInterface.setTimeout(int timeout) Set the timeout for socket connections.voidFTPClientInterface.setTimeout(int millis) Set the timeout on the underlying sockets and other resources that may be used.voidFTPClient.setType(FTPTransferType type) Set the transfer typevoidFTPClientInterface.setType(FTPTransferType type) Set the transfer typevoidFileTransferClient.setUserName(String userName) Set the name of the user to log in with.voidFileTransferClientInterface.setUserName(String userName) Set the name of the user to log in with.booleanRun a site-specific command on the server.longlongGet the size of a remote file.FTPClient.stat()Sends stat message to enquire about the status of a transfer.FTPClient.system()Get the type of the OS at the serverFTPClientInterface.system()Get a string representing the remote systemFileTransferClient.uploadFile(String localFileName, String remoteFileName) Upload a file to the FTP server.FileTransferClient.uploadFile(String localFileName, String remoteFileName, WriteMode writeMode) Upload a file to the FTP server.FileTransferClientInterface.uploadFile(String localFileName, String remoteFileName) Upload a file to the FTP server.FileTransferClientInterface.uploadFile(String localFileName, String remoteFileName, WriteMode writeMode) Upload a file to the FTP server.FileTransferClient.uploadStream(String remoteFileName) Upload a file to the FTP server by writing to a stream.FileTransferClient.uploadStream(String remoteFileName, WriteMode writeMode) Upload a file to the FTP server by writing to a stream.FileTransferClientInterface.uploadStream(String remoteFileName) Upload a file to the FTP server by writing to a stream.FileTransferClientInterface.uploadStream(String remoteFileName, WriteMode writeMode) Upload a file to the FTP server by writing to a stream.static voidFileTransferClient.uploadURLFile(String localFileName, String ftpURL) Uploads the given file to the given FTP URL.static FileTransferOutputStreamFileTransferClient.uploadURLStream(String ftpURL) Open an OutputStream for the given FTP URL.voidSupply the user name to log into an account on the FTP server.voidFTPClient.validateReply(FTPReply reply, String expectedReplyCode) Validate an FTPReplyvoidFTPClient.validateReply(FTPReply reply, String[] expectedReplyCodes) Validate an FTPReplyFTPControlSocket.validateReply(FTPReply reply, String expectedReplyCode) Validate the response the host has supplied against the expected reply.FTPControlSocket.validateReply(FTPReply reply, String[] expectedReplyCodes) Validate the response the host has supplied against the expected reply.FTPControlSocket.validateReply(String reply, String[] expectedReplyCodes) Validate the response the host has supplied against the expected reply.voidFTPClient.validateTransfer()Validate that the put() or get() was successful.protected voidFTPClient.validateTransferOnError(IOException ex) Validate a transfer when an error has occurred on the data channel.Constructors in com.enterprisedt.net.ftp that throw FTPExceptionModifierConstructorDescriptionAbstractFTPInputStream(FTPClient client, String remoteFile) Constructor.Deprecated.use setter methods to set propertiesDeprecated.use setter methods to set propertiesDeprecated.use setter methods to set propertiesDeprecated.use setter methods to set propertiesFTPClient(InetAddress remoteAddr) Deprecated.use setter methods to set propertiesFTPClient(InetAddress remoteAddr, int controlPort) Deprecated.use setter methods to set propertiesFTPClient(InetAddress remoteAddr, int controlPort, int timeout) Deprecated.use setter methods to set propertiesFTPClient(InetAddress remoteAddr, int controlPort, int timeout, String encoding) Deprecated.use setter methods to set propertiesprotectedFTPControlSocket(InetAddress remoteAddr, int controlPort, int timeout, String encoding, FTPMessageListener messageListener) Constructor.protectedFTPControlSocket(InetAddress remoteAddr, StreamSocket controlSock, int timeout, String encoding, FTPMessageListener messageListener) Constructs a newFTPControlSocketusing the givenSocketobject.FTPFileFactory(String system) ConstructorFTPInputStream(FTPClient client, String remoteFile) Constructor.FTPInputStream(FTPClient client, String remoteFile, long offset) Constructor.FTPOutputStream(FTPClient client, String remoteFile) Constructor.FTPOutputStream(FTPClient client, String remoteFile, boolean append) Constructor.